Hi everyone, I need some help on the API Platform. We have a legacy system which needs to make an API call but it only supports SOAP. Workato added the possibility to have a SOAP API Collection which would already solve one part of the puzzle. However, the second one is more tricky: as being a legacy system, the only authentication method is WSS. The API Gateway in Workato does not allow me to add a WSS client. Does anyone was already confronted with a similar issue and if yes, how did you solve it? Thanx in advance!
Hi laurent.glodt, I would suggest keeping Workato as the central integration platform and introducing a lightweight middleware layer to handle WS-Security authentication. The middleware would validate the incoming SOAP request and forward it to Workato API Gateway using a supported authentication method. This way, Workato can still handle the API exposure, business logic and orchestration, without requiring changes to the legacy system. If the legacy system also supports REST, that could be an even simpler alternative, avoiding the WS-Security complexity altogether.
Thank you francesco.baviello, I hoped not needing an additional gateway.. REST is unfortunately not an option. Best regards.
Hi laurent.glodt, there may be a way to do this without an extra gateway. It’s a workaround rather than a supported auth method, so worth prototyping first and no warranty implied. The API platform doesn’t validate WS-Security itself, but you can validate it in the recipe:
Use a regular API recipe collection instead of the WSDL-generated SOAP collection, with the trigger content type set to Text/XML. The recipe then gets the raw SOAP envelope, wsse:Security header included. The SOAP collection validates requests against the WSDL schema by default, and WSS headers are often sent with mustUnderstand="1". Either one could get the request rejected before your logic runs.
Parse the envelope with XML Tools and pull out Username, Password, Nonce and Created.
Validate them. For PasswordText, compare against a stored secret. For PasswordDigest, recompute Base64(SHA-1(nonce + created + password)) in a short Python step, reject stale timestamps, and log nonces in a data table to block replays.
On failure, return a SOAP Fault.
Serve the WSDL from a second recipe. The SOAP API recipe walkthrough in the docs shows the pattern: docs.workato.com/api-mgmt/api-recipes/soap-walkthrough.html
Caveats:
The API gateway still requires its own credential, so the legacy system needs to send a static api-token header. You can also restrict the application to the system’s IP addresses. If the client can’t add any HTTP header, this approach won’t work.
Don’t hard-code the password in the recipe. Use project properties or a secrets manager.
Turn on data masking for the recipe. Otherwise the raw envelope, password included, shows up in job history.
If your WSS policy uses XML signatures or encryption (X.509), this gets impractical and Fra’s middleware suggestion is the better route.
Your second option is to look at our on premise connector (opa), it can go on the same network as the Soap box, then you can do an unauthenticated connection to it, which then will take and connect into Workato. Good Luck!