[ 
http://jira.codehaus.org/browse/XFIRE-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicholas Kum updated XFIRE-1071:
--------------------------------

    Attachment: WSDLBuilder.java.patch

Nicholas Kum, Jenke Chen 09-AUG-2007

The method createDocLitPart in
xfire-1.2.6/xfire-core/src/main/org/codehaus/xfire/wsdl11/builder/WSDLBuilder.java
has been modified to not add a global schema element if the global schema
element is already defined in the schema.
This modification was necessary because if you are injecting
XML schemas into the WSDL and have XML schema validation enabled
then you have to have the global schema element already defined
in the schema for validation to pass.


> 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, WSDLBuilder.java.patch
>
>
> 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

Reply via email to