Ok if currentBalanceTest holds a string parameter, your URL should look like this:

http://localhost:8080/axis/GetInventory.jws?method=currentBalanceTest&item=xxx&qty=5

Somewhere in you servlet you should have something like this:

String item = request.getParameter("item");
int qty = Integer.parseInt(request.getParameter("qty"));


There might be some typing mistake in th code sample but the whole idea is there.

Hope it helps!


-----
Sochea MEAS, intern
LMC/JG/A department
Ericsson Communication Canada

telephone: 514-345-7900 ext. 3432
email: [EMAIL PROTECTED]


-----Original Message-----
From: Larry [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: Newbie: Easy Question on HTTP calls to service



I am experimenting with .jws deployment to get my feet wet before going forward with 
the more robust deployment.
I am testing using http calls like:
http://localhost:8080/axis/GetInventory.jws?method=currentBalanceTest
Which works fine.  I can also create test java clients that can call and receive data.
But I can only figure out how to send PARAMETERS with the java client method.
Assuming "currentBalanceTest" has a string parameter called "item" and an int 
parameter called "quantity", can one use a regular http call to get the response or is 
it not possible?  How would that be formatted?
http://localhost:8080/axis/GetInventory.jws?method=currentBalanceTest???????????????????

Larry

_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

Reply via email to