Hello, We are creating WSDL dynamically from Java; XML is mapped by XmlBeans. The SOAP binding is BARE, document and literal. Unfortunately, it seems that the same element (the same Qname) is declared several times in different schema within the same WSDL.
For instance, the first time by BankListReponse is declared: <wsdl:types> <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.X.com/is/xml/core/service/bank" xmlns="http://www.X.com/is/xml/core/service/bank" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="BankListRequest"> <xsd:complexType> <xsd:sequence/> </xsd:complexType> </xsd:element> <xsd:element name="BankListResponse" nillable="true"/> </xsd:schema> ... The element is not completely declared. Later in the same WSDL, I can find its complete definition: <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.X.com/is/xml/core/service/bank" xmlns="http://www.X.com/is/xml/core/service/bank" xmlns:ban="http://www.X.com/is/xml/core/model/bank" xmlns:rep="http://www.X.com/is/xml/core/model/util/report" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:import namespace="http://www.X.com/is/xml/core/model/util/report"/> <xsd:import namespace="http://www.X.com/is/xml/core/model/bank"/> <xsd:element name="BankListResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="report" type="rep:Report"/> <xsd:element name="banks"> <xsd:complexType> <xsd:sequence maxOccurs="unbounded" minOccurs="0"> <xsd:element name="bank" type="ban:Bank"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> The bug seems to be the same as http://jira.codehaus.org/browse/XFIRE-1071. Do you have any idea why the declaration of my elements are split like that? Note that I've discovered this bug when using WSDL2Java. Web services can be called by CXF/Xfire clients. SOAPUI is also able to create sample requests based on the wrong WSDL. Thank you! -- View this message in context: http://cxf.547215.n5.nabble.com/Original-global-element-found-in-file-exception-in-WSDL2Java-tp2855513p2855513.html Sent from the cxf-user mailing list archive at Nabble.com.
