1 Reply Latest reply: Feb 21, 2013 9:12 AM by jtahlborn RSS

    Is this OK?

    507066
      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>

      ?