Hello
I need help on the following problem. I was using axis 1.1 and we are in front of a change in the wsdl2java generated code.
We have lots of xsd simple types with string base class and a pattern facet.
With axis 1.1 we had a java class generated for this purpose.
With axis 1.3 we don't anymore have this class and have a String attribute in the Personne class
So my questions are :
Does anyone knows where this change comes from ?
Is it a bug or is it normal ?
Is there a way to get back to the previous behavior ?
Any help or information about this problem will be greatly appreciated.
Following is a sample which i used to reproduce the problem
-----------------------------------------------------------------------------------------------------------------
st13.wsdl
<?
xml version="1.0" encoding="UTF-8"?><
wsdl:definitions name="St13Service" targetNamespace="http://www.test.com" xmlns:tns ="http://www.test.com" xmlns:sns ="http://www.test.com/schema" xmlns:xsd ="http://www.w3.org/2001/XMLSchema" xmlns:wsdl ="http://schemas.xmlsoap.org/wsdl/" xmlns:soap ="http://schemas.xmlsoap.org/wsdl/soap/"><wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.test.com/schema"
xmlns:sns="http://www.test.com/schema"
>
<xsd:simpleType name="nom">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[EMAIL PROTECTED]"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="codePolitesse">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="monsieur"/>
<xsd:enumeration value="madame"/>
<xsd:enumeration value="mademasoielle"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="Test1Response" type="sns:personne"/>
<xsd:element name="Test1Request" type="xsd:string"/>
<xsd:complexType name="personne">
<xsd:sequence>
<xsd:element name="nom" type="sns:nom"></xsd:element>
<xsd:element name="prenom" type="xsd:string"></xsd:element>
<xsd:element name="politesse" type ="sns:codePolitesse"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="Test1Response">
<wsdl:part name="Test1Response" element="sns:Test1Response"/>
</wsdl:message>
<wsdl:message name="Test1Request">
<wsdl:part name="Test1Request" element="sns:Test1Request"/>
</wsdl:message>
<wsdl:portType name="St13Port">
<wsdl:operation name="Test1">
<wsdl:input message="tns:Test1Request"/>
<wsdl:output message="tns:Test1Response"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="St13Binding" type="tns:St13Port">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Test1">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="St13Service">
<wsdl:port name="St13Port" binding="tns:St13Binding">
<soap:address location="http://localhost:8080/axis/services/St13Port"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--------------------------------------------------------------------------------------------------------------------
With axis 1.1 wsdl2java st13.wsdl output
INFO: Loaded namespace-to-package mapping file "E:\Local-PVentrillon\Work\java\soapapi\src\com\NStoPkg.properties".
Parsing XML file: E:\Local-PVentrillon\Work\java\soapapi\src\com\test\st13.wsdl
Generating com\test\bean\CodePolitesse.java
Generating com\test\bean\Personne.java
Generating com\test\bean\Personne_Helper.java
Generating com\test\bean\Nom.java
Generating com\test\bean\Nom_Helper.java
Generating com\test\St13Service.java
Generating com\test\St13ServiceLocator.java
Generating com\test\St13Port.java
Generating com\test\St13BindingStub.java
Generating com\test\St13BindingSkeleton.java
Generating com\test\St13BindingImpl.java
Generating com\test\deploy.wsdd
Generating com\test\undeploy.wsdd
-------------------------------------------------------------------------------------------------------------------------------
With axis 1.3 wsdl2java output (no class com\test\bean\Nom.java generated)
Generating D:\tmp\com\test\www\schema\CodePolitesse.java
Generating D:\tmp\com\test\www\schema\Personne.java
Generating D:\tmp\com\test\www\schema\Personne_Helper.java
Generating D:\tmp\com\test\www\St13Service.java
Generating D:\tmp\com\test\www\St13ServiceLocator.java
Generating D:\tmp\com\test\www\St13Port.java
Generating D:\tmp\com\test\www\St13BindingStub.java
Generating D:\tmp\com\test\www\St13BindingSkeleton.java
Generating D:\tmp\com\test\www\St13BindingImpl.java
Generating D:\tmp\com\test\www\deploy.wsdd
Generating D:\tmp\com\test\www\undeploy.wsdd
