java2wsdl produces different wsdl in 1.2.1 than in 1.1
------------------------------------------------------
Key: AXIS-2355
URL: http://issues.apache.org/jira/browse/AXIS-2355
Project: Apache Axis
Type: Bug
Components: WSDL processing
Versions: 1.2.1
Reporter: Parag Bhogte
I am excited to move to new version, mainly for JDK 5 compatibility. This
allows us to use new technologies such as EJB 3.0. However, as we are releasing
new versions of our software, we do not want to break existing clients who are
used to the old style wsdl. If we made major changes to the wsdl, they will
have to make major changes to the client which may or may not be using Java &
Axis. This is not good for business.
Looks like when I use java2wsdl in 1.2.1 it gives me different result than 1.1.
Is there any option to generate old-style wsdl? I am already using -T 1.1 for
wsdl generation.
The changes:
1. There is new attribute in the header:
xmlns:apachesoap="http://xml.apache.org/xml-soap"
2. Instead of
<element maxOccurs="unbounded" name="displayAttributes" nillable="true"
type="tns1:NamedValue"/>
I get
<element name="displayAttributes" nillable="true"
type="impl:ArrayOf_tns1_NamedValue"/>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.xxx.com/sms/api/r06_02/XXXService">
<import namespace="http://www.xxx.com/sms/api/r06_02/model"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns1_NamedValue">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:NamedValue[]"/>
</restriction>
</complexContent>
</complexType>
3. Instead of
<wsdl:fault name="APINetworkException">
<wsdlsoap:fault
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://www.xxx.com/sms/api/r06_02/XXXService" use="encoded"/>
</wsdl:fault>
I get
<wsdl:fault name="APINetworkException">
<wsdlsoap:fault
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
name="APINetworkException"
namespace="http://www.xxx.com/sms/api/r06_02/XXXService" use="encoded"/>
</wsdl:fault>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira