I am new to Axis2, i therefore have no idea whether this is expected behavior or a bug. The included WSDL generates duplicated classes for the elements called "SecondElement" and "ThirdElement". The only difference between the two generate classes are the namespace. Also, class for the structure that contains them "XSDComplexType", has duplicate methods for both elements.
Thanks Andreas WDSL: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/Test/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Test" targetNamespace="http://www.example.org/Test/"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/Test/"> <xsd:complexType name="XSDComplexType"> <xsd:sequence> <xsd:element name="FirstElement" type="xsd:string"> </xsd:element> <xsd:element name="SecondElement" type="xsd:string"> </xsd:element> <xsd:element name="SecondElement"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="64"></xsd:maxLength> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="ThirdElement"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="64"></xsd:maxLength> <xsd:pattern value="[0-9A-F]{6}" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="NewOperationRequest"> <wsdl:part name="NewOperationRequest" type="tns:XSDComplexType" /> </wsdl:message> <wsdl:message name="NewOperationResponse"> <wsdl:part name="NewOperationResponse" type="xsd:string" /> </wsdl:message> <wsdl:portType name="Test"> <wsdl:operation name="NewOperation"> <wsdl:input message="tns:NewOperationRequest" /> <wsdl:output message="tns:NewOperationResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="TestSOAP" type="tns:Test"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="NewOperation"> <soap:operation soapAction="http://www.example.org/Test/NewOperation" /> <wsdl:input> <soap:body namespace="http://www.example.org/Test/" use="literal" /> </wsdl:input> <wsdl:output> <soap:body namespace="http://www.example.org/Test/" use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Test"> <wsdl:port binding="tns:TestSOAP" name="TestSOAP"> <soap:address location="http://www.example.org/" /> </wsdl:port> </wsdl:service> </wsdl:definitions> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
