Adapter: SOAP Web Service
Call a SOAP 1.1 or 1.2 web service: an operation body in an envelope with its SOAPAction, WS-Security UsernameToken, faults as errors, and WSDL operation listing.
Purpose
Call a SOAP web service, such as a payer's real-time eligibility service or a legacy partner interface. A send step posts an operation body in a SOAP 1.1 or 1.2 envelope to endpointUrl and returns the response Body as JSON. It is the counterpart of the Mirth Web Service Sender, and the Mirth importer maps that connector to it.
Auth
- HTTP
basicorbearerwithauthType. - WS-Security UsernameToken with
wsSecurity:PasswordText, orPasswordDigest(a SHA-1 digest of a fresh nonce, the created time and the password, so the password never travels). Set the user and password inwsSecurityCredentials;wsSecurityTimestampSecondsadds awsu:Timestamp. - Mutual TLS, a private CA and a proxy through the shared connection options.
How a send works
- The body is the step's
body, else abodyTemplate(the step's, then the profile's) with each{{field}}filled from the step input and XML-escaped, else the step input when it is XML text. - A body fragment is wrapped in an envelope for
soapVersion. A whole envelope is sent as it is; with WS-Security, the engine parses it and rebuilds it with the security header first in its ownHeader, so the payload's text is never searched for a place to put it. - The SOAPAction is the step's
soapAction, else the action the WSDL gives the step'soperation, elsedefaultSoapAction. SOAP 1.1 sends it in theSOAPActionheader; SOAP 1.2 sends it as theactionparameter ofapplication/soap+xml. - A response Fault fails the step. The error names the fault code and the HTTP status; the fault text, which can repeat a member id or a name, stays out of run history. A Client (1.1) or Sender (1.2) fault is not retried.
- Any other non-2xx answer fails the step too, without its body: 401 and 403 as authentication errors, other 4xx as rejected (not retried), and 408, 429 and 5xx as retryable.
list-operations reads the WSDL at wsdlUrl and lists each operation with its SOAPAction and SOAP version, and each service address. It does not generate code or check the body against the schema.
Settings
Auth is chosen with authType: none, basic, bearer (default none). Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.
| Setting | Type | Required | Default | Secret | Description |
|---|---|---|---|---|---|
endpointUrl | url | Yes | No | The service endpoint the envelope is posted to. Use https:// for PHI: plain http:// is accepted with a warning. | |
soapVersion | enum: 1.1, 1.2 | No | 1.1 | No | 1.1: text/xml with a SOAPAction header. 1.2: application/soap+xml with an action parameter. |
wsdlUrl | url | No | No | WSDL 1.1 to list operations from and look up a step's operation SOAPAction (often the endpoint with ?wsdl). | |
defaultSoapAction | string | No | No | SOAPAction when the step sets neither soapAction nor operation. | |
authType | enum: none, basic, bearer | No | none | No | HTTP authentication. Use the connection options for mutual TLS. |
credentials | object | No | |||
credentials.username | string | No | No | Used when authType is basic. | |
credentials.password | string | No | Yes | Used when authType is basic. | |
credentials.token | string | No | Yes | Used when authType is bearer. | |
wsSecurity | enum: none, PasswordText, PasswordDigest | No | none | No | WS-Security UsernameToken in the SOAP header. |
wsSecurityCredentials | object | No | The UsernameToken user and password. | ||
wsSecurityCredentials.username | string | No | No | ||
wsSecurityCredentials.password | string | No | Yes | ||
wsSecurityTimestampSeconds | number | No | No | Adds a wsu:Timestamp that expires this many seconds after it is created. | |
bodyTemplate | string | No | No | Operation body with {{field}} placeholders filled, XML-escaped, from the step input. A step's own bodyTemplate or body wins. | |
defaultHeaders | map | No | Yes | Extra HTTP headers on every call. | |
timeout | number | No | 30000 | No | Request timeout in milliseconds. |
tlsCaPem | string | No | Yes | PEM CA certificate(s) to verify the server against. See tlsCaMode. | |
tlsCaMode | enum: replace, add | No | No | Trust: replace = only this CA (default), add = the system CAs plus this CA. Needs tlsCaPem. | |
tlsClientCertPem | string | No | Yes | PEM client certificate, for servers that require mutual TLS. Set with tlsClientKeyPem. | |
tlsClientKeyPem | string | No | Yes | PEM private key for the client certificate (encrypted at rest). | |
tlsClientPfx | string | No | Yes | Client certificate and key as a base64 PKCS#12 (.p12 / .pfx) bundle, instead of the PEM pair. | |
tlsClientPassphrase | string | No | Yes | Passphrase of the PKCS#12 bundle. | |
tlsMinVersion | enum: TLSv1.2, TLSv1.3 | No | No | Lowest TLS version to accept (default TLSv1.2). | |
proxyUrl | url | No | No | HTTP(S) proxy, e.g. http://proxy.example.test:3128 (opens in a new tab). The proxy host must pass the SSRF rules (SSRF_ALLOWLIST for a private one). | |
proxyUsername | string | No | No | Proxy user (Basic auth). | |
proxyPassword | string | No | Yes | Proxy password. | |
noProxy | array of string | No | No | Hosts sent direct, not through the proxy: a name (and its subdomains), .suffix, host:port or *. |
Actions
A trailing ? marks an optional step parameter. A message can supply only the keys in the last column; everything else comes from the step.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
send | Post an operation body in a SOAP envelope and return the response Body as JSON. | body?, bodyTemplate?, soapAction?, operation? | body |
list-operations | List the WSDL's operations with their SOAPAction and SOAP version, and its service addresses. | None | None |
Minimal example
The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.
{
"name": "SOAP Web Service (example)",
"adapterType": "soap",
"config": {
"endpointUrl": "https://soap.example.test/endpoint"
}
}Limits
- Not supported: X.509 signing and encryption (BinarySecurityToken), MTOM and SOAP-with-attachments, WS-Addressing, WSDL 2.0, and following
wsdl:import. For a service that needs them, keep that connection on its current interface engine. endpointUrlandwsdlUrltakehttps://orhttp://, as Mirth's Web Service Sender and Generic REST do. Plain HTTP sends message content and credentials (WS-Security, basic or bearer) in clear text, so saving, validating or testing such a profile returns a warning, and a stronger one whenwsSecurityisPasswordText. Usehttps://for PHI. The SSRF checks apply to both.- Every XML the adapter reads (responses, WSDLs and the body it is about to send) is refused when it holds a DOCTYPE or entity declaration. Responses and WSDLs over 5 MB are refused: the engine stops reading as soon as the cap is passed.
- A send is never redirected to another origin (a 307 or 308 there is refused), so the envelope and its WS-Security password never follow it.
- A WSDL is cached for five minutes per profile and credentials (at most 100 entries). Test connection reads it fresh.
- The engine refuses a URL that resolves to a private address unless the host is in
SSRF_ALLOWLIST(see Environment variables).