8 Replies Latest reply on Feb 20, 2014 11:17 AM by Glauber Silva

    Incorrect soap:address generated for JAX-WS service

    abhi0123 Newbie

      Hi,

      I am running the server in standalone preview mode at http port 9090. I have changed every reference of 8080 to 9090 (except for 2 backup files) but stil the WSDL soap:address gets generated with 8080.

       

      grep:

      {code}

      abhijit@abhijit-lenovo:jboss$ grep -lR 8080 .

      ./domain/configuration/domain (copy).xml

      ./domain/configuration/domain-preview (copy).xml

      abhijit@abhijit-lenovo:jboss$ ls

      bin            docs               LICENSE.txt  standalone

      bundles        domain             modules      welcome-content

      copyright.txt  jboss-modules.jar  README.txt

      {code}

       

      The service:

      {code}

      @WebService(name = "movieServiceJaxWs", serviceName = "movieService", portName = "movieServicePort", targetNamespace = "http://name.app.abhi/movieservice/jaxws")

      public class MovieServicePortTypeImpl implements MovieServicePortType {

       

          private MovieServiceImpl movieService = new MovieServiceImpl();

       

          @Override

          @WebMethod

          public SortedSet<Movie> getMovieSet(String path) throws IOException {

          return movieService.getMovieSet(path);

          }

      }

      {code}

       

      wsdl:

      {code}

      <wsdl:service name="movieService"><wsdl:port binding="tns:movieServiceSoapBinding" name="movieServicePort"><soap:address location="http://localhost:8080/movieservicejaxws"/></wsdl:port></wsdl:service>

      {code}

       

      log:


      {code}

      21:31:10,918 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "movie-service-jaxws-1.0-SNAPSHOT.war"

      21:31:12,622 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-4) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

      21:31:12,633 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-4) Add Service

      id=MovieServiceJaxWs

      address=http://localhost:8080/movieservicejaxws

      implementor=name.app.abhi.movieservice.jaxws.service.impl.MovieServicePortTypeImpl

      invoker=org.jboss.wsf.stack.cxf.InvokerJSE

      serviceName={http://name.app.abhi/movieservice/jaxws}movieService

      portName={http://name.app.abhi/movieservice/jaxws}movieServicePort

      wsdlLocation=null

      mtomEnabled=false

      {code}