I have created a sample jax-ws soap webservice exported into a WAR and deployed it in a JBOSS EAP7 server .
When I am trying access - http://contextpath/HelloWorldService it is giving me HTTP method not allowed .
This HTTP get method has cookie setting updated
like
request.CookieContainer = new CookieContainer();
request.UseDefaultCredentials = true;
Same service is working find on weblogic . T
Can you please suggest change needs to be done to access .
Only class I have --
package org.jboss.samples.webservices;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.servlet.http.HttpServlet;
@WebService()
public class HelloWorld extends HttpServlet {
@WebMethod()
public String sayHello(String name) {
System.out.println("Hello: " + name);
return "Hello " + name + "!";
}
}
My web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>HelloWorld</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<display-name>HelloWorldService</display-name>
<servlet-name>HelloWorldService</servlet-name>
<servlet-class>org.jboss.samples.webservices.HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldService</servlet-name>
<url-pattern>/HelloWorldService</url-pattern>
</servlet-mapping>
</web-app>