This content has been marked as final.
Show 3 replies
-
1. Re: Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?
jim.ma Jun 16, 2010 11:27 PM (in response to tprickett)Setting the Endpoint address property in BindingProvider.getRequestContext can resolve your problem ?
-
2. Re: Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?
tprickett Jun 17, 2010 1:22 PM (in response to jim.ma)Thanks for the answer. Being new to JBoss, I'm not familiar with where I'd put that. Is there a handler or something that is called when doing a wsprovide where that code goes? If so, how do I configure wsprovide to identify the handler?
TIA
-
3. Re: Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?
jim.ma Jun 17, 2010 10:14 PM (in response to tprickett)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 ?