[jboss-user] [JBoss Web Services] - Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?
Jim Ma
do-not-reply at jboss.com
Thu Jun 17 22:14:52 EDT 2010
Jim Ma [http://community.jboss.org/people/jim.ma] replied to the discussion
"Replacing REPLACE_WITH_ACTUAL_URL in wsprovide?"
To view the discussion, visit: http://community.jboss.org/message/548618#548618
--------------------------------------------------------------
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
[http://community.jboss.org/message/548618#548618]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100617/7cfa99ba/attachment.html
More information about the jboss-user
mailing list