Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » You may have mapped two namespaces with elements of the same name to the same package name
You may have mapped two namespaces with elements of the same name to the same package name [message #698089] Mon, 18 July 2011 14:35 Go to next message
Eclipse UserFriend
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 #698968 is a reply to message #698089] Wed, 20 July 2011 11:00 Go to previous messageGo to next message
Eclipse UserFriend
anyone? Smile
Re: You may have mapped two namespaces with elements of the same name to the same package name [message #714005 is a reply to message #698968] Tue, 09 August 2011 11:06 Go to previous messageGo to next message
Eclipse UserFriend
bump! Still looking for help with this...
icon12.gif  Re: You may have mapped two namespaces with elements of the same name to the same package name [message #725836 is a reply to message #714005] Thu, 15 September 2011 19:01 Go to previous message
Eclipse UserFriend
I had the same problem.
Try using Axis2:
* Download Axis2
* Set preferences for Axis2 - Window->Preferences->Web Services->Axis2 Pref
* When generating Java Bean Skeleton, set "Web Service Runtime" to Axis2 (link)

This worked for me.

HTH

[Updated on: Thu, 15 September 2011 19:01] by Moderator

Previous Topic:[353775] Allowing Java content in Static Web projects
Next Topic:Help! Class not found java.lang.class
Goto Forum:
  


Current Time: Sun Jul 13 09:28:57 EDT 2025

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

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

Back to the top