Community

Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?

reply from Jim Ma in JBoss Web Services - View the full discussion

I mean you do not need to change the REPLACE_WITH_ACTUAL_URL in wsprovide . You can just set the endpoint address in client side , below is the example to set the address:

 

         Service service = Service.create(wsdlLocation, new QName(""));
         echoPort = service.getPort(EchoPortType.class);
 
 
         ((BindingProvider)echoPort).getRequestContext().put(
                    BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                    "http://"+getInteropServerHost()+":8080/echo"
            );
 

 

Does this work for your case ?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community