Skip to Content
0
Former Member
Feb 17, 2014 at 04:36 PM

WebService Transaction Output as XML with specified xsd

80 Views


Hello,

my intention is to call a transaction from outside via soap web service with xml output. Therefore I defined a xml output variable. I provided a xsd for this output, chose myRowList as Element Name and marked Validate XML on Execution. Calling my web service I get an exception: Transaction threw an unrecoverable exception. Here's my xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/2001/XMLSchema">

<xs:complexType name="myRowList">
<xs:sequence>
<xs:element name="MyTag1" type="xs:string" />
<xs:element name="MyTag2" type="xs:string" />
<xs:element name="MyTag3" type="xs:string" />
<xs:element name="MyTag4" type="xs:string" />
</xs:sequence>
</xs:complexType>

<xs:element name="myRowList">


<xs:complexType>
<xs:sequence>
<xs:element name="Row" type="s0:myRowList" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

And this is my transaction output (generated via Test-Button inside MII):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<Row>

<MyTag1>test</MyTag1>

<MyTag2>test</MyTag2>

<MyTag3>test</MyTag3>

<MyTag4>test</MyTag4>

</Row>

I'm using MII 14.0 SP4 Patch1. What went wrong?

Thanks in advance,

Holger