3 Replies Latest reply on Nov 14, 2005 11:08 PM by jason.greene

    Modifying the ws4ee webservice port

    upankar

      Hi..
      In Jboss4.0.2 , When I have the ws4ee WebServicePort and catalina http port both as same, the web service works fine. However, if i change the web service port to different from http port, web service calls result in connection refused exception. Deployment looks fine, and also the WSDL soap address element seems to have the new web-service port reflected in it as expected.

      Below is from the client code,

      ServiceFactory factory = null;
      Service wsService=null;
      factory=ServiceFactory.newInstance();
      wsService = factory.createService(new URL(wsdlLocation), beanName);
      Call wsCall = wsService.createCall(portName,methodName);

      Till the above, it goes fine . However the next line , as shown below, fails :

      wsCall.invoke(arg) ;

      The same piece of code works fine when we have webservice and http port as same. Can anyone please suggest what is wrong here ?

      Also, is there a way to get the wsdl published to a different port from the standard http port in jboss ? Since we have few war components that shall also be using that http port, i want the webservice clients to go to a different port to get the wsdl so that there is no congestion as such.

      Thanks in advance.

        • 1. Re: Modifying the ws4ee webservice port
          bogsolomon

          SOAP for webservices in the default implementation uses HTTP for transmission. The Web Service will be deployed on a different port and it will not respond on your HTTP port, but at the same time it needs an HTTP port open for the same port it is located in.

          Basically you are sending an Http request to the server on the web service port, but there is nothing listening there so you get a connection refused. The simplest way to solve it would be to deploy another JBoss instance that would use another Http port and deploy the webservice on it, this would assume you don't communicate with the other "Http" wars. Not sure if and how you can specify to the same JBoss instance to open 2 Http ports

          • 2. Re: Modifying the ws4ee webservice port
            upankar

            Ya.. I guess two http ports in one jboss instance - one port for web apps, another for web service is what i need to have. Anyone .. any idea of accomplishing this ?

            • 3. Re: Modifying the ws4ee webservice port
              jason.greene

              Configure another tomcat http connector and it will work.

              -Jason