Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3297

javax.xml.ws.service getport not generate correct wsdl url

XMLWordPrintable

      JBoss 6 run on localhost:8080

      Webservice call by jboss ejb url http://locahost:9090/webservice/HelloService?wsdl

      The code in EJB to build webservice port is:

      URL wsdlUrl = new("http://locahost:9090/webservice/HelloService?wsdl);

      Service service = Service.create(wsdlUrl,serviceName);

      HelloServicePortType helloPort = service.getPort(HelloServicePortType.class);

      at the first time call the helloPort generate correct, it use http://locahost:9090/webservice/HelloService?wsdl as wsdl location

      then every call after first time call the wsdl location auto change to http://locahost:8080/webservice/HelloService?wsdl.

      The code run on JBoss 5 fine, when migrate to JBoss 6, the problem happen.

      This also happens in JBoss7.

              rhn-engineering-ema Jim Ma
              nathanlive nathan wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: