getTCPIPLocation()

The ServiceLib function getTCPIPLocation returns the host name and port number that provide access to an EGL service by way of TCP/IP.

  ServiceLib.getTCPIPLocation(variable ServiceOrInterface in)
  returns (string String)
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 returned string, whose format is as follows:
  host:portNumber

host is the TCP/IP host name that refers to the machine where the service runs. portNumber is the number of the TCP/IP port that provides access to the service.

The format (including the intervening colon) is equivalent to that of field tcpipLocation in the complex property @EGLBinding. You can specify that property when defining a Service part.

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
setTCPIPLocation()

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