You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jabber Worky <ja...@gmail.com> on 2007/06/18 08:12:01 UTC
Axis1.4 - Axis121 compatibility
Hi
I have a arrays-related question during migration from Axis 1.2.1 to Axis1.4.
When used with a default mode, wrapArrays=false, Wsdl2Java of 1.2.1
and 1.4 generate different code (datatypes & signatures - please see
WSDL example below). Is there way to enforce 1.4 to generate it in an
old fasion, as 121 does, to insure backward compatibility with
existing code (note: no "-w" <i.e. wrapArrays=false>, option was used
with 121)?
Very appreation for any inputs,
Sincerely,
Jabb.
--------------------------------------------------------------------
<wsdl:definitions targetNamespace="http://my.example"
xmlns:tns="http://my.example"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://my.example"
targetNamespace="http://my.example"
elementFormDefault="qualified">
<xsd:complexType name="EntryTypeWItem">
<xsd:sequence>
<xsd:element name="mykey" type="xsd:string"/>
<xsd:element name="myval" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EntryTypeW">
<xsd:sequence>
<xsd:element name="item" type="tns:EntryTypeWItem"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<complexType name="TypeW">
<sequence>
<element name="my_field" type="tns:EntryTypeW"
nillable="true" minOccurs="0"
maxOccurs="1" />
</sequence>
</complexType>
<complexType name="JustSomeComplex">
<sequence>
<element name="f1" type="tns:TypeW"
nillable="true" minOccurs="0"
maxOccurs="1" />
<element name="f2" type="xsd:int"
nillable="true" minOccurs="0"
maxOccurs="1" />
<element name="f3" type="xsd:string"
nillable="true" minOccurs="0"
maxOccurs="1" />
</sequence>
</complexType>
<element name="JustSomeComplex_element">
<complexType>
<sequence>
<element name="typeW_field" type="tns:JustSomeComplex"
nillable="true" minOccurs="0"
maxOccurs="1"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="TypeWRequest">
<wsdl:part name="parameters" element="tns:JustSomeComplex_element"/>
</wsdl:message>
<wsdl:message name="TypeWResponse">
<wsdl:part name="parameters" element="tns:JustSomeComplex_element"/>
</wsdl:message>
<wsdl:portType name="TypeW_port">
<wsdl:operation name="typeW_op">
<wsdl:input name="TypeWRequest"
message="tns:TypeWRequest"/>
<wsdl:output name="TypeWResponse"
message="tns:TypeWResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TypeW_binding" type="tns:TypeW_port">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="typeW_op">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="TypeWRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="TypeWResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TypeW_service">
<wsdl:port name="TypedefPOJO_WRAP" binding="tns:TypeW_binding">
<wsdlsoap:address location="http://localhost:7001/services/TypeW"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org