5 Replies Latest reply on Sep 4, 2006 8:22 AM by Thomas Diesler

    soap:address URL change

    Paul Anderson Newbie

      I am using JBoss 4.0.4 with JBossWS 1.0.2. The example below uses JSR-181.

      import java.lang.String;
      import java.rmi.RemoteException;
      import java.util.Map;
      import javax.annotation.Resource;
      import javax.jws.WebMethod;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;
      import javax.xml.ws.handler.MessageContext;
      import javax.xml.ws.WebServiceContext;

      @WebService(name="TestWebService", targetNamespace="http://www.company.com/department/testwebservice/", serviceName="TestWebService")
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      public class TestWebService {

      WebServiceContext wsContext;

      public String hello(String name) throws RemoteException {
      return "Hello "+name+"!";

      When the web service is deployed JBoss generates the WSDL from the Java annotations and the SOAP:ADDRESS tag is:

      <soap:address location="http://server:8080/user/TestWebService" />

      How can I change the port (8080) in this URL? Because I'm not planing to publicly have port 8080 open on my production server. Is there away to change this port? Also how come the JBossWS engine does not look at the web.xml for this to create the path to the webservice?