• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSimport of Amazon Webservices

 
yogesh.lr kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am studying Webservices up and running and trying to execute the exmaples which involve Amazon's e-commerce webservice.
I am using the following command to import the wsdl:
java -Xmx1024M -cp "C:\Program Files\Java\jdk1.7.0_21\lib\tools.jar" com.sun.tools.internal.ws.WsImport -keep -p awsClient / http://ecs.amazonaws.com/AWSECommerceService/AWSECommerceService.wsdl

but when i execute the command i get the following error:
parsing WSDL...


[ERROR] com.sun.istack.internal.SAXParseException2; ecs.amazonaws.com

Failed to read the WSDL document: http://ecs.amazonaws.com/AWSECommerceService/A
WSECommerceService.wsdl, because 1) could not find the document; /2) the documen
t could not be read; 3) the root element of the document is not <wsdl:definition
s>.


[ERROR] duplicate "message" entity: "CreatePartyRequest"
line 232 of file:/C:/Documents%20and%20Settings/***/****/****/wsdl/Party.wsdl
This is the wsdl folder of another project on my computer.

The project is not even loaded in Eclipse when i am executing the command.

Can someone please help me to get rid of this error message.

Thanks.
 
yogesh.lr kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please provide a response , i still dont have any luck after trying few options.
 
Steven Taylor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am able to generate the code using the below command

wsimport -d c:\ws http://ecs.amazonaws.com/AWSECommerceService/AWSECommerceService.wsdl
 
yogesh.lr kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steven Taylor wrote:I am able to generate the code using the below command

wsimport -d c:\ws http://ecs.amazonaws.com/AWSECommerceService/AWSECommerceService.wsdl


Thanks for the response Steve, but my issue is the command is searching for other wsdls that are present on my machine and thorwing the above error
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you actually tried the command Steven posted? It's quite different from what you did.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic