This discussion is archived
1 Reply Latest reply: Feb 21, 2013 7:12 AM by jtahlborn RSS

Is this OK?

507066 Newbie
Currently Being Moderated
I have this WSDL:

<wsdl:message name="MyResponse">
<wsdl:part element="tns:MyResponse" name="parameters"/>
</wsdl:message>

<xsd:element name="MyResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="Q2:My_OUT_Type"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<complexType name="My_OUT_Type">
<sequence>
<element name="ID" type="integer" minOccurs="0" maxOccurs="unbounded"></element>
</sequence>
</complexType>

and Axis generates this 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><MyResponse xmlns="myns"><out xsi:type="xsd:integer" xmlns="">100228813</out></MyResponse></soapenv:Body></soapenv:Envelope>

is it OK or should it be:

<MyResponse xmlns="myns"><out><id>100228813</id></out></MyResponse>

?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points