Duplicate Global Elements when injecting XSD into WSDL
------------------------------------------------------
Key: XFIRE-1071
URL: http://jira.codehaus.org/browse/XFIRE-1071
Project: XFire
Issue Type: Bug
Affects Versions: 1.2.6
Environment: Linux asu-61.corp.peace.com 2.6.9-55.ELsmp #1 SMP Fri Apr
20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
xfire
jaxb2
XML Schema first development
XML Schema validation enabled
Spring Container which is configured using
org.codehaus.xfire.spring.ServiceBean in an applicationContext.xml file
Reporter: Nicholas Kum
Assignee: Dan Diephouse
Attachments: code.tar.gz
I am getting a generated global element which is conflicting with the global
element defined in the XML Schema.
e.g.
...
<xsd:element name="ServiceValidationFault"
type="tns:serviceValidationFaultDetailComplexType">
</xsd:element>
<xsd:element name="ServiceValidationFault"
type="ns1:serviceValidationFaultDetailComplexType"/>
...
This makes the WSDL invalid and we are causing problems when we try testing the
web service using soapUI.
soapUI complains:
Thu Aug 02 11:17:34 NZST 2007:INFO:Loading schema types from
[http://localhost:8080/peace/services/AccountsReceivableService?wsdl]
Thu Aug 02 11:17:34 NZST 2007:INFO:Getting schema
http://localhost:8080/peace/services/AccountsReceivableService?wsdl
Thu Aug 02 11:17:34 NZST 2007:INFO:schema for
[http://www.servicevalidationfaultdetail.webservice.peace.com] contained [{}]
namespaces
Thu Aug 02 11:17:34 NZST 2007:INFO:schema for
[http://www.financialtransaction.accountsreceivable.webservice.peace.com]
contained [{}] namespaces
Thu Aug 02 11:17:34 NZST 2007:WARN:Error:
http://localhost:8080/peace/services/AccountsReceivableService?wsdl:0: error:
sch-props-correct.2: Duplicate global element: [EMAIL
PROTECTED]://www.servicevalidationfaultdetail.webservice.peace.com (Original
global element found in file:
http_3A_2F_2Flocalhost_3A8080_2Fpeace_2Fservices/AccountsReceivableService_3Fwsdl)
Thu Aug 02 11:17:34 NZST 2007:ERROR:Loading of definition failed for
[http://localhost:8080/peace/services/AccountsReceivableService?wsdl];
com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading schema
types
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email