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 Wendy Smoak <We...@asu.edu> on 2003/06/20 01:24:53 UTC

How to make CalcClient respond to GET/POST requests?

I'm new (again) to Axis, having successfully done a .jws service once in the
past but then wandered away to work on other things.  So now I have a
requirement to accept some XML over HTTP (eventually HTTPS), turn it into a
Java object and then use the existing DAO layer to write a database record.

First, do I have the right acronym?  I think Axis running under Tomcat will
do this, but stop me now if I ought to be using JMS or one of the other
zillion acronyms I'm vaguely aware of.

Axis is installed, happyaxis.jsp is happy, etc.  I copied Calculator.java to
Calculator.jws and can view the WSDL.  In preparation for my own web service
that needs to respond to GET or POST requests, I would like to figure out
how to add two numbers with the parameters on the URL.

I tried:
http://localhost/axis/Calculator.jws?operation=add&i1=5&i2=6
And got
AXIS error: invoking via GET
No method!

Do I need to add a method to Calculator.jws?  Is this possible?

Thanks,
-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Public Affairs, Information Resources Management
Arizona State University, Tempe AZ 


Re: How to make CalcClient respond to GET/POST requests?

Posted by Ingrid Falk <in...@loria.fr>.
>>>>> "Wendy" == Wendy Smoak <We...@asu.edu> writes:


    Wendy> I tried:
    Wendy> http://localhost/axis/Calculator.jws?operation=add&i1=5&i2=6
    Wendy> And got AXIS error: invoking via GET No method!

Maybe:

http://localhost/axis/Calculator.jws?method=add&i1=5&i2=6 ??
                                     ^^^^^^
Ingrid