Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

soap encoded array of complex type, impossible to map?

Hello,

can anyone please tell me if the XI has problems (or is unable) to read from soap-encoded arrays of a complex type.

As far as I know this is conform to SOAP 1.1

We developed this webservice for a client, who says, he cannot map this kind of array in his XI.

Would it be better to do it this way ?

<complexType name="ActivityList">

<sequence>

<element name="ActivityEl" maxOccurs="unbounded" type="Activity"/>

</sequence>

</complexType>

Excerpt of the WSDL:

<wsdl:message name="getDataForPbnrResponse">

<wsdl:part name="getDataForPbnrReturn" type="impl:ArrayOf_tns1_Activity"/>

</wsdl:message>

<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ipslsv01vm02:9080/axis/services/QEC-Service">

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="ArrayOf_tns1_Activity">

<complexContent>

<restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:Activity[]"/>

</restriction>

</complexContent>

</complexType>

<complexType name="ArrayOf_tns1_ActivityFeedback">

<complexContent>

<restriction base="soapenc:Array">

<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ActivityFeedback[]"/>

</restriction>

</complexContent>

</complexType>

</schema>

Part ot the response:

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

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<ns1:getDataForPbnrResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://ipslsv01vm02:9080/axis/services/QEC-Service">

<getDataForPbnrReturn xsi:type="soapenc:Array" soapenc:arrayType="ns3:Activity[7]" xmlns:ns2="http://www.w3.org/2002/12/soap-encoding" xmlns:ns3="urn:BeanService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

<item href="#id0"/>

<item href="#id1"/>

<item href="#id2"/>

<item href="#id3"/>

<item href="#id4"/>

<item href="#id5"/>

<item href="#id6"/>

</getDataForPbnrReturn>

</ns1:getDataForPbnrResponse>

<multiRef id="id5" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:Activity" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="urn:BeanService">

<FIN xsi:type="xsd:string">---</FIN>

<VIN xsi:type="xsd:string"></VIN>

-


cut -


<ursache xsi:type="xsd:string"></ursache>

</multiRef>

</soapenv:Body>

</soapenv:Envelope>

Thanks in advance!

Not what you were looking for? View more on this topic or Ask a question