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
- [REST] Can I input parameter in URL when using REST sty... James Gan
- Re: [REST] Can I input parameter in URL when using... Kinichiro Inoguchi
- Re: [REST] Can I input parameter in URL when u... Kinichiro Inoguchi
- Re: [REST] Can I input parameter in URL when using... Deepal Jayasinghe
