Mapping the portType to a Service Definition Interface
WSDL2Java uses the portType and binding in the WSDL document to create the Service Definition Interface (SDI). The Service Definition Interface specifies the input and output messages of the request-response pairs for an operation and the service name and port.
The following WSDL code shows the specification of the input and output messages, Login and LoginResponse, and the binding of this request-response pair to the login operation:
An application uses this information to construct an interface to access the operations available from the service using a remote procedure call (RPC), as shown in the following code:
In the example, the remote procedure call, login( ), submits a request, passing a Login object as a parameter, and returns a LoginResponse object in response from the BIRT iHub defined by ActuateSoapPort in the SDI.