Hi, James.

Yes you can put parameters like you mentioned.
Your http://localhost:9080/axis2/rest/MyService1/echo?element=15
will work fine.

This error is caused because of NULL response SOAP body, I think.
I'm not sure though, Axis2 does NOT permit NULL response SOAP body.

Regards,
kinichiro

--- James Gan <[EMAIL PROTECTED]> wrote:

> Hi, dear all
> 
> After installing AXIS war in Websphere Application Server, I can
> visit
> Version service by inputting its address in the address bar of
> browser. But
> I'm wondering if I can input parameters while visiting follow service
> created by me.
> 
> public class MyService1 {
>     public void ping(int element) {
> 
>     }
> 
>     public int echo(int element) {
>         return element * element;
>     }
> }
> 
> I input http://localhost:9080/axis2/rest/MyService1/ping?element=15
> in the
> address bar of firefox. Then I got follow error information:
> 
> *Error Message: *Invalid message addition , operation context
> completed;
> nested exception is: org.apache.axis2.AxisFault: Invalid message
> addition ,
> operation context completed
> *Error Code: *500
> *Target Servlet: *AxisRESTServlet
> *Error Stack: *
> org.apache.axis2.AxisFault: Invalid message addition , operation
> context
> completed; nested exception is:
>      org.apache.axis2.AxisFault: Invalid message addition , operation
> context completed
>      at
> org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(
> RESTUtil.java:141)
>      at org.apache.axis2.transport.http.AxisRESTServlet.doGet(
> AxisRESTServlet.java:36)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(
> ServletWrapper.java:1282)
>      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(
> ServletWrapper.java:673)
> 
> Is it feasible in AXIS2?
> 
> Thanks a lot!
> James Gan
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to