Show TOC Start of Content Area

Function documentation Service Endpoint Interface Locate the document in its SAP Library structure

Use

The Service Endpoint Interface (SEI) exposes the business methods provided by a particular Web service. It is generated from the WSDL port type and named after the port type. The way the methods are generated depends on the port type and the JAX-RPC 1.0 conventions.

Features

For SAP Web AS Java Web service clients, an additional option is provided – generation of RPC-style SEI for document/literal-style WSDLs. In this case, for each generated method that has only one wrapper parameter for the input and one wrapper parameter for the output, an additional method is generated that has the same name but the input and output parameters are unwrapped in the signature.

This graphic is explained in the accompanying text

package example.client;

 

public interface CalendarServiceRpc extends java.rmi.Remote,javax.xml.rpc.Stub {

 

  public float add(float p1, float p2) throws java.rmi.RemoteException;

  public float div(float p1, float p2) throws java.rmi.RemoteException;

 

}

 

Activities

The following settings can be configured in the Logical Port editor in the SAP NetWeaver Developer Studio:

·        Endpoint URL

This graphic is explained in the accompanying text

client._setProperty("javax.xml.rpc.service.endpoint.address",

"http://newhost.com:8080/webservice/newLocation");

·        HTTP proxy host and port

This graphic is explained in the accompanying text

port._setProperty("javax.xml.rpc.http.proxyhost","proxy");

port._setProperty("javax.xml.rpc.http.proxyport","8080");

·        HTTP Basic Authentication

This graphic is explained in the accompanying text

client._setProperty("javax.xml.rpc.security.auth.username","username");

client._setProperty("javax.xml.rpc.security.auth.password","password");

·        Request and response logging – specifies the streams in which the requests and responses are to be logged. This property should be set for debugging purposes only, otherwise it will decrease the server performance.

This graphic is explained in the accompanying text

client._setProperty("RequestLogging", System.out);

client._setProperty("ResponseLogging", System.out);

·        Socket timeout – specifies the connection timeout in milliseconds.

This graphic is explained in the accompanying text

client._setProperty("socketTimeout", "30000");

 

 

See also:

Programming a Web Service Client Application

 

End of Content Area