Show TOC Start of Content Area

Function documentation Logical Ports  Locate the document in its SAP Library structure

Use

A logical port (LP) is always associated with a Service Endpoint Interface (SEI). It acts as a configuration for a particular SEI, since the configuration contained in the LP can be:

·        An HTTP proxy

·        User authentication information

·        protocol configuration

A client may either reference a LP by name, when the exact port required is known, or may take the default logical port and let the container determine which one is the best match.

By default, for each existing WSDL port, an LP is created that copies the features from the underlying port and binding. Later, the LP can be copied or a new one can be generated based on a binding or port of an existing or new WSDL. Therefore, you may have multiple LPs based on a WSDL binding or WSDL port.

Activities

Regardless whether you are using a deployable or a standalone proxy, the logical ports are obtained in the same way from the service interface:

·        For container-managed port access:

FooSEI fosei = (FooSEI)fsi.getLogicalPort(FooSEI.class);

·        For client-managed port access:

FooSEI fosei = (FooSEI)fsi.getLogicalPort(“Port_Name”, FooSEI.class);

 

End of Content Area