As far as I understand you are trying to get path information from the HTTP request string.
If this is the case, then you can do as follows:
1. Call getMessageContext() on the WebServiceContext that was injected into your endpoint class.
2. Call get on the message context retrieved in step 1 using the key MessageContext.PATH_INFO.
See the interface javax.xml.ws.handler.MessageContext for other data that can be retrieved from the MessageContext.
Joined: Jun 17, 2009
Thanks for responding.
When we are sending parameters as GET i.e. with query string service works fine.
When parameters are sent as POST method request.getParameter("paramname") returns null.
here is what i do
HttpServletRequest req = (HttpServletRequest) mc.get(MessageContext.SERVLET_REQUEST);
String xy = req.getParameter("num1");
this works when num1 is sent as get parameter
Joined: Oct 04, 2006
If you retrieve the value for MessageContext.QUERY_STRING from the MessageContext, do you see the parameters in the query string?