Deprecated Component
The Document-Type Web Service Client communication point enables you to communicate with external Web services that have operations of the document style. The communication point can be used to build the XML document for a specified operation, for a pre-built document (as passed to the communication point), or constant string can be used. The communication point wraps this body in a SOAP envelope and submits it to the specified web service, and receives an XML document response containing the result of the call.
The communication point handles building simple documents. Namely, it supports building documents made up of XSI simple types. These documents may contain complex types composed of simple XSI types. Optional types and restrictions are also supported (though no checking of the restriction is performed). Unions and types requiring more than one occurrence are not supported. The documents are built from the parameter values specified in the communication point's WSDL configuration. The parameters can be hard-coded (constant strings or variables), or derived from the message (using message properties or message fields).
The communication point can be configured in three ways, as specified by the Configuration Method configuration property.
- The
WSDL
configuration method is recommended in most cases and makes configuring the communication point easy. When using this mode, the endpoint URL and parameter types are automatically configured from the WSDL and the WSDL configuration dialog can be used to select which service and operation defined in the WSDL is to be called. Using the WSDL mode also enables the SOAP body to be automatically built based on the types defined in the WSDL. - In situations where no WSDL is available for the web service to connect to,
Manual
configuration mode can be used. - The
Override
configuration method can be used to test the communication point when configured by a WSDL. This mode is mostly the same as when using the WSDL configuration method, but the endpoint is overridden as specified in theEndpoint URL
. The endpoint can instead be set to be a HTTP server and the request sent to this server can be examined to verify its correctness.
The Document-Type Web Service Client supports:
- WSDL 1.0 and 1.1.
- SOAP 1.1 and 1.2.
- HTTP and WS-Security UsernameToken authentication.
- Using the input message as the SOAP body or hard-coded in the configuration.
- Building SOAP body documents satisfying the types specified in the WSDL (with the restrictions specified above).
- Inserting the result document of the call into the input message or replacing the input message completely.
- Manually specifying a SOAP header (provided it is valid XML).
The communication point is usually used in Out->In mode. The output side sends a request to the web service and the input side receives the corresponding response. If the response is not of interest, output mode can be used.
Supported Operational Modes: Output, Out -> In.
Configuration Properties
Property |
Description |
---|---|
Definition |
The message definition to use when parsing. This property is only required if |
Configuration method |
Specifies the approach to use to configure this communication point.
|
WSDL Configuration |
Specify the WSDL and any WSDL-specific configuration. Click the Create Configuration link to display the Enter WSDL URI dialog: |
Authentication |
Specify the type of authentication to be used.
|
Username |
The username if using HTTP or WS-Security authentication. |
Password |
The password if using HTTP or WS-Security authentication. |
SOAP Header |
An optional, additional SOAP header. The specified header must be a valid XML document. This can be a static string or a message property. |
SOAP Body Type |
Specify how the SOAP Body document will be configured.
|
SOAP Body |
The SOAP body document. This field is only applicable if This is an XML document specifying the operation to call and containing all the parameters required by that operation. |
Endpoint URL |
The URL of the Web Service endpoint. This option is not applicable if Configuration method is set to If Configuration method is set to |
Operation namespace |
The unique namespace URI of the operation to call, if using manual configuration. |
Operation name |
The local name of the operation to call, if using manual configuration. |
SOAP Action URI |
The SOAP Action URI, if required (only when using manual configuration). This is the URI identifying the intent of the SOAP HTTP request. Leave this blank if not using a SOAP action (this is normally not required if doing an RPC call). |
Output message type |
Specify how the results of the web service call are handled.
|
Insert Field |
The field in which to insert the result of the web service call. Only available if |
Web Service Configuration
The Web Service Configuration dialog enables you to specify the desired service, operation, and parameters:
Property |
Description |
---|---|
WSDL URI |
The Uniform Resource Identifier (URI) of the WSDL for the web service to which you want to connect. To use a local file on the machine running Rhapsody use the file URI schema (for example This property is not applicable if Configuration method is set to |
Service |
The unique qualified name of the service in the WSDL to which you want to connect. Commonly a WSDL only describes one service, but if more than one is specified, select the relevant one here. |
Operation |
The name of the operation to call. All operations described for the given service in the WSDL are available for selection. The operation name normally describes the action the web service performs. |
Body Type |
Specify how the SOAP Body document will be configured.
|
Parameters |
The parameter values for the web service call. The parameters relate to the operation specified in the operation name field and the parameter names, types and modes are worked out from the WSDL. Each parameter can be specified as a static string (optionally containing variables) or from the message, as a message property, message field, or the entire message body (specify "<messagebody>"). |
SOAP Body |
The body of the SOAP message to be sent to the web service. This option is only available if |