We have a JAX-WS Provider<Source> based webservice hosted in weblogic 10.3.
@WebServiceProvider(targetNamespace = "http://wl-spot.com/wsSamples/restfulWebService1", serviceName = "RestfulWS")
@BindingType(value = HTTPBinding.HTTP_BINDING)
public class RestfulWS implements Provider<Source> {
public RestfulWS()
{
System.out.println("Inside RestfulWS ctor");
}
public Source invoke(Source source) {
try {
System.out.println("Inside RestfulWS invoke;");
MessageContext messageContext = wsContext.getMessageContext();
String requestMethod = (String) messageContext.get(MessageContext.HTTP_REQUEST_METHOD);
String query = (String) messageContext.get(MessageContext.QUERY_STRING);
String path = (String) messageContext.get(MessageContext.PATH_INFO);
.....
....
Though we retrieve the querystrings and request method successfully,the path info is always getting retrieved as null.
The web.xml is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5">
<display-name>RestfulWSWebApp</display-name>
<servlet-mapping>
<servlet-name>RestfulWSServlethttp</servlet-name>
<url-pattern>/RestfulWS/*</url-pattern>
</servlet-mapping>
</web-app>
Where are we going wrong.
Any help is appreciated.