VeloX Docs

Client-side plugins

SOAP Client plugin

Call an operation of a SOAP web service described by WSDL and map its request and response parameters.

Overview

SOAP Client plugin can be found in HTTP Targets tab on the left panel of Designer Section. It reads the WSDL of a SOAP web service, calls the selected operation with the data mapped to its import parameters and returns the response through its export parameters.

It is a client (target) plugin: map fields from a server plugin or from other client plugins of the project to its import parameters, and map its export parameters to the plugins that follow it. One SOAP Client plugin calls one operation of one web service. Add several plugins to the project to call several operations.

Configuration

To configure the plugin:

  1. Click Connection on the plugin.
  2. Enter the Service URL: of the web service, for example https://<host>/<path>/Service.svc. The plugin appends ?wsdl to read the service description. URLs you used before are suggested as you type.
  3. Specify the LogLevel.
  4. Click Get Metadata.
    The plugin reads the WSDL and shows the Soap Version: of the service (Soap11, Soap12 or Both).
  5. Select the operation you want to call from the operations list.

The plugin header shows SOAP-IN with the service name and the selected operation.

One plugin calls one operation. If you select another operation after you have added parameters to the canvas, the plugin asks for confirmation and removes all items.

Connection parameters

Option Description
Service URL: Address of the web service. It must start with http:// or https://; otherwise the field is marked as invalid and Get Metadata does nothing. The same URL is used to read the WSDL and, at run time, to send the request.
LogLevel How much the plugin writes to the log for each call: None, Short or Full. See Log.
Soap Version: Read-only. The SOAP version of the bindings found in the WSDL. It decides how the request is built at run time.

How the WSDL is read

  • The WSDL is downloaded with HTTP GET from the Service URL: with the query string ?WSDL. Any query string already in the URL is replaced. The WSDL cannot be loaded from a local file.
  • XML schemas that the WSDL references through schemaLocation are downloaded too, so the machine running the Designer must be able to reach them.
  • All operations of all port types in the WSDL are listed in one list. If two port types have an operation with the same name, only the first is listed. You do not select a service, port or binding.
  • The plugin expects document/literal operations in the "wrapped" style: each input and output message has one part that refers to an element whose type is a sequence of child elements. These child elements become the import and export parameters.
  • Complex types (including types derived by extension, whose base type fields are added first) and enumerations defined in the schemas are recognized. A complex type that only wraps one repeating element is shown as an array of that element.
  • Services you connected to are remembered in the Designer user settings, so their URLs are suggested the next time.

The metadata is stored in the project when you save it. At run time the plugin does not read the WSDL again. If the service interface changes, click Get Metadata again and check the mapping.

Advanced

Expand Advanced to:

  • Click Create Template to save the plugin as a template.
  • Click Notes to add notes to the plugin.

Fields

After you select the operation, the plugin shows the Operation: item with Import Parameters (the request) and Export Parameters (the response).

  1. Click Fields on the plugin, or Parameters on the Import Parameters and Export Parameters items, to choose the parameters to show on the canvas. The Import and Export tabs list the parameters of the operation. Complex types and enumerations are marked as ComplexType and Enumeration.
  2. For a complex type, click Fields on its item to choose its fields.
  3. Map source fields to the import parameters and the export parameters to target plugins.

Supported data types include STRING, BOOLEAN, INT, INTEGER, LONG, SHORT, BYTE, DECIMAL, DOUBLE, FLOAT, DATE, DATETIME, TIME, BASE64BINARY, HEXBINARY, unsigned integer types, enumerations and complex types. A complex type that occurs more than once is handled as a table.

Values are passed as text. The plugin does not convert data types: the source value must already be in the format the service expects (for example an XML Schema date such as 2024-01-31).

How parameters are mapped

Parameter kind Import (request) Export (response)
Simple field Takes one value from the mapped source field. Returns the value of the response element.
Array of simple values Takes a list of values from the source. Each value is sent as a separate item element. Not returned as a list of values.
Complex type (structure) Each visible field takes one value from its source. Fields of the structure and of structures nested in it return one value each.
Complex type that occurs more than once (table) One request row is created for each row the source returns. Fields from the same source plugin are read row by row. One output row for each returned row. Structure fields mapped together with table fields are repeated in every row.

Field options

Import fields have these options:

  • Default Value: with No Default Value., Ignore Source. (use the default value and ignore the source value) and Only If Source Emty. (use the default value only if the source value is empty).
  • Convert To Upper Case: converts the value to upper case.

Export fields have the Remove Zeros: option that removes leading zeros from the returned value.

Markers on the fields show the options that are set: D (default value), U (upper case) and Z (remove zeros).

With Ignore Source. a field does not need a mapping. If every visible field of a table has Ignore Source., the table is sent with one row of default values.

Run-time behavior

  • The plugin builds the SOAP request from the mapped import parameters and sends it with HTTP POST to the service URL.
  • For SOAP 1.1 the request is sent as text/xml with the operation's SOAPAction header. For SOAP 1.2 it is sent as application/soap+xml. If the service supports both versions (Both), SOAP 1.2 is used.
  • The SOAP envelope always contains a WS-Addressing header with the operation action (Action) and the service URL (To).
  • The request body is the operation element in the target namespace of the WSDL. All import parameters of the operation are included; parameters and structure fields that are not mapped and have no default value are sent as empty elements.
  • Arrays of simple values use the http://schemas.microsoft.com/2003/10/Serialization/Arrays namespace, the format used by WCF services.
  • The plugin reads the operation result element from the response and fills the export parameters from it.
  • Special characters such as & in the response are handled correctly.
  • The request and response are logged under the operation name according to the LogLevel.

The plugin waits at most 5 seconds for the response. This limit cannot be changed. If the service does not answer in time, no error is raised: the export parameters stay empty and the project continues.

Errors and SOAP faults

  • If the service returns an HTTP error (a SOAP fault is normally returned with HTTP status 500), the plugin writes the response body, including the fault, and the error message to the log and raises an error.
  • Any other error, for example a response that does not contain the expected result element, is logged with its message and stack trace and also raises an error.
  • Errors while reading the WSDL in the Designer are shown in a message box.

Log

Each call writes one log entry under the operation name:

LogLevel Content
None Only the summary entry, no details.
Short Start and end time of the call and the error messages.
Full As Short, plus the full request XML, the response XML (or the error response body) and the exception details.

With Full the log contains the complete request and response, including any personal or confidential data they carry.

Prerequisites

  • The web service publishes its WSDL at <Service URL>?WSDL and the WSDL and its referenced schemas can be reached over HTTP or HTTPS from the machine running the Designer.
  • The VeloXi server can reach the service URL. For HTTPS the server certificate must be trusted by Windows on that machine.
  • The service accepts anonymous requests (see Limitations).

Limitations

  • No authentication: the plugin does not send user credentials, client certificates or tokens, and has no proxy settings.
  • No custom HTTP or SOAP headers can be added.
  • The WSDL is read only from a URL, not from a file. The endpoint address in the WSDL is not used: requests always go to the Service URL:.
  • Only document/literal wrapped operations are supported. RPC-style or multi-part messages are not.
  • Only operations with one result element in the response are mapped. Response structures are read to one level of nesting.
  • The response timeout is fixed at 5 seconds.
Esc