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 Axis1.4 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>

because CXF 2.7.3 in myOutType.getID() returns an empty List<Integer> (0 
elements) although doesn't throw any parse exception?

Reply via email to