Skip to main content

How to specify a web service endpoint URL programmatically.

  • May 17, 2013
  • 0 replies
  • 0 views

Summary How to specify a web service endpoint URL programmatically.
Article Number 18167
Environment All Supported Operating Systems Artix 5.x Artix JAX-WS Runtime
Question/Problem Description How to specify a web service endpoint URL programmatically.
How to programmatically set a URL for web service endpoint.
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution

 It is possible to specified a URL when publishing the endpoint using the API below. This will override the URL specified in the WSDL file.

import javax.xml.ws.Endpoint;

 

//implementation object
Greeter greeterImpl = new GreeterImpl();

 

//the url to publish the enpoint
String address = "http://localhost:9000/myURL/SoapPort";

 

Endpoint.publish(address, greeterImpl);

For further information on publishing endpoints please see guide "Developing Artix Applications with JAX-WS" section "Publishing a Service".

Workaround
Notes
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 10 September 2011

#KnowledgeDocs
#Orbix