• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSimport of Amazon Webservices

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please provide a response , i still dont have any luck after trying few options.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you actually tried the command Steven posted? It's quite different from what you did.
 
reply
    Bookmark Topic Watch Topic
  • New Topic