setWebEndPoint()

The ServiceLib function setWebEndPoint sets the URL that provides access to a Web service.

  ServiceLib.setWebEndPoint(variable ServiceOrInterface in, 
  string, STRING in)
variable
A variable that your code uses to access the service. The variable may be of type Service or Interface. In the latter case, the interface type must be BasicInterface.
string
The URL. The format is equivalent to that of the field endpoint in the complex property @WebBinding, as used for Service parts. An example is here:
  http://www.ibm.com/myService

An exception of type ServiceBindingException occurs if the service has a different kind of binding than is required by the function.

Related concepts
EGL interfaces
EGL services and Web services

Related tasks
Creating an EGL Interface part
Creating an EGL Service part
Creating an Interface part from a Service part

Related reference
EGL library ServiceLib
EGL system exceptions
getWebEndPoint()

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.