You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Deepak T J <de...@yahoo.com> on 2005/07/14 18:28:53 UTC

urgent help needed - calling Amazon.com web service

Hi all
 
I got the WSDL file of AmazonWebService from    http://soap.amazon.com/schemas2/AmazonWebServices.wsdl

. I want to test a function 
 
 asinSearchRequest(amazon.ws.AsinRequest asinSearchRequest)  by writing a JAVA client code. I looked into the following site :
 
http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
 
This site gives the steps for testing a JAVA web service. In step 4 , we have to plug in some code into a java file created by WSDL2java. 
Since i dont have the webservice's java code how will i know which object instance i have to create( i dont have any java classes with me of amazon web service ). 
 
Can someone plz help me out in this. I have to submit the project tomorrow. 
 
ps : any code in this regard will be very helpful
 
bye
deepak


Deepak Thimma Janardanan
3rd yr,B.Tech
Departmetn of Computer Science
IITM, Chennai
		
---------------------------------
 Start your day with Yahoo! - make it your home page 

Re: urgent help needed - calling Amazon.com web service

Posted by Jeff Greif <jg...@alumni.princeton.edu>.
You do not need any access to the web service's java code (and the web 
service may not be implemented in Java).  The wsdl is sufficient for you 
to produce a client.

The concept is that wsdl2java generates from the Amazon .wsdl file all 
the java code you need to call the amazon services, except the main() 
function, which would invoke one of the methods on the stub class with 
some data you provide. 

Note that you will need a developer-token to use as a credential to 
access the service.  You must register for this token at the Amazon website.

Jeff

Deepak T J wrote:

>Hi all
> 
>I got the WSDL file of AmazonWebService from    http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
>
>. I want to test a function 
> 
> asinSearchRequest(amazon.ws.AsinRequest asinSearchRequest)  by writing a JAVA client code. I looked into the following site :
> 
>http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2
> 
>This site gives the steps for testing a JAVA web service. In step 4 , we have to plug in some code into a java file created by WSDL2java. 
>
>  
>