Skip to main content

SOAP

SOAP allows you to invoke web services and receive responses independent of language and platforms.

Network Connection needs

This integration needs network access to the server where the service is running.

See the Network access page for details about how to achieve that.

Credential configuration

To configure this credential you just need to fill the url field to connect the SOAP service.

Optionally you can set any of the extra config params you can see here.

Here you have an example of a filled credential configuration form in YepCode:

SOAP snippets available in editor

note

The title is the triggering text for YepCode to autocomplete the script

Integration

New integration from credential
const soapClient = await yepcode.integration.soap("credential-slug");
New integration from plain data
const soap = require('soap');
const soapClient = await soap.createClientAsync("http://example.com/wsdl?wsdl", {});

Security and credentials

If you server includes some security protocol, you may find information here to set your credentials with an already initialized client, for example:

New integration from credential with authentication data (username and password)
const soapClient = await yepcode.integration.soap("credential-slug");

soapClient.setSecurity(new soap.BasicAuthSecurity("username", "password"));

Calling methods

Call a method on the SOAP service
soapClient.MyFunctionNameAsync({ name: 'value' }).then((result) => {
// result is a javascript array containing result, rawResponse, soapheader, and rawRequest
// result is a javascript object
// rawResponse is the raw xml response string
// soapHeader is the response soap header as a javascript object
// rawRequest is the raw xml request string
})
Call a method using a specific service and port
soapClient.MyService.MyPort.MyFunctionName({name: 'value'}, function(err, result) {
// result is a javascript object
})