Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » "You may have mapped two namespaces with elements of the same name to the same package name&quo
"You may have mapped two namespaces with elements of the same name to the same package name&quo [message #699058] Wed, 20 July 2011 18:25 Go to next message
ben may is currently offline ben mayFriend
Messages: 12
Registered: July 2011
Junior Member
So first a little background:

http://www.eclipse.org/forums/index.php/m/698088/

In case anyone wants to try and replicate this, they will have to convince eclipse to "trust" the cert on this website, instructions for which are provided in the thread above.

I am trying to create a web service client based on the following WSDL:

https://ctms-services-pa-3-3.nci.nih.gov:1523/wsrf/services/cagrid/TrialRegistrationService?wsdl

<wsdl:definitions xmlns:binding="http://enterpriseservices.nci.nih.gov/PAServices/TrialRegistrationService/bindings" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="TrialRegistrationService" targetNamespace="http://enterpriseservices.nci.nih.gov/PAServices/TrialRegistrationService/service">
<wsdl:import location="https://ctms-services-pa-3-3.nci.nih.gov:1523/wsrf/share/schema/PAServices/TrialRegistrationService_bindings.wsdl" namespace="http://enterpriseservices.nci.nih.gov/PAServices/TrialRegistrationService/bindings"/>
<wsdl:service name="TrialRegistrationService">
<wsdl:port binding="binding:TrialRegistrationServicePortTypeSOAPBinding" name="TrialRegistrationServicePortTypePort">
<soap:address location="https://ctms-services-pa-3-3.nci.nih.gov:1523/wsrf/services/cagrid/TrialRegistrationService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


And when I try and create this web service client in my project based on this WSDL file I get the following error:

IWAB0399E Error in generating Java from WSDL:  org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: C:\Documents and Settings\ben\workspace\.metadata\.plugins\org.eclipse.jst.ws.axis.consumption.core\temp8498639644536005756\\Operation.java.  
Hint: you may have mapped two namespaces with elements of the same name to the same package name.
    org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: C:\Documents and Settings\ben\workspace\.metadata\.plugins\org.eclipse.jst.ws.axis.consumption.core\temp8498639644536005756\\Operation.java.
    Hint: you may have mapped two namespaces with elements of the same name to the same package name.
    at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:110)
    at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1405)
    at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
    at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
    at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:547)
    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:432)
    at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
    at java.lang.Thread.run(Unknown Source)


Now, I can save the "parent" WSDL locally and tweak it a little if this will solve the problem, but by and large I can't modify this service as its not mine. Smile Any help appreciated!
Re: "You may have mapped two namespaces with elements of the same name to the same package name [message #699060 is a reply to message #699058] Wed, 20 July 2011 18:31 Go to previous message
ben may is currently offline ben mayFriend
Messages: 12
Registered: July 2011
Junior Member
whoa that was weird... i dont know how i got a duplicate topic.
Previous Topic:Imported schema
Next Topic:javascript code completion/code navigation api
Goto Forum:
  


Current Time: Mon Nov 24 16:25:03 GMT 2014

Powered by FUDForum. Page generated in 0.75717 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software