You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Milan Tomic <to...@yahoo.com> on 2013/02/21 11:01:01 UTC

Axis1.4 <--> CXF not compatible or bug?

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?

Re: Axis1.4 <--> CXF not compatible or bug?

Posted by Aki Yoshida <el...@gmail.com>.
2013/2/21 Milan Tomic <to...@yahoo.com>:
> 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>

it should 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?