Let's see how to create and configure an outbound SOAP message.
Navigate to (settings) >> WEB SERVICES >> Outbound >> Select SOAP.
Click New SOAP and enter the following details:
Name: Provide a name for the SOAP service.
WSDL URL: If using an external WSDL contract, enter the API endpoint URL.
Download WSDL : If Download WSDL is enabled, the WSDL from the external URL is downloaded/retrieved. The same is displayed in the Editor.
Authentication Type: Select the required authentication method if the WSDL retrieval requires credentials.
Credentials: Provide authentication details as needed.
Execute in Bridge: Choose the option to execute the SOAP service via the Bridge, then select the appropriate Bridge ID, if applicable.
Click Save.
Go to the SOAP Functions section.
Click Generate SOAP Functions. This will parse the WSDL contract and list the available APIs.
If you want to create a new API message manually, click SOAP Function in the top-right corner to configure a SOAP message from scratch.
To execute the select API message from the list, the following fields will be automatically populated:
Name
Binding
Operation
SOAP Action
Endpoint
Message
Fill in the other fields to execute the function:
Authentication Type: Select the authentication type.
Credential: Select the credential for authentication. The first credential provided during SOAP outbound creation is auto-selected but can be overwritten.
Connection Timeout: Set connection timeout (in milliseconds).
Click Send to call the API endpoint and receive a response in XML format.
If you make changes to the WSDL contract, click Regenerate Sample SOAP Messages to refresh the function definitions.
Existing SOAP messages will not be deleted.
New APIs/messages will be added if detected.
Modified messages will be updated automatically based on the latest WSDL.
Click Send to call the API endpoint and receive a response in XML format.
Go to SOAP configuration.
Under the SOAP Library on the left side, enable or disable the SOAP message.
Function Level: Enables or disables specific API functions within a SOAP message.
Go to the SOAP Functions section.
Select a message and enable or disable specific API functions.
Click the Delete icon on the top-right of the SOAP message page.
To delete a specific API message inside a WSDL:
Go to the SOAP Functions section.
Select an API message and click the Delete icon on the top-right.
Use the unique ID assigned to the SOAP configuration to trigger the service.
Syntax
OutboundSOAP.execute("<soap_config_id>", <variables>);
Sample Request
let requestData = {};requestData["inputNumber"] = "100";OutboundSOAP.execute(31453000002078039, requestData);
Use the WSDL name, function name, and required variables to trigger the service.
Syntax
OutboundSOAP.executeByName("wsdl_name", "function_name", "{var1}:{val1}");
Sample Request
let numberToConvert = {};numberToConvert["number"] = "100";OutboundSOAP.executeByName("NumberToWordService", "convertNumberToWord", numberToConvert);
Converting Numbers to Words
Sample Request:
<soapenv:Header/><soapenv:Body><num:NumberToWords><num:ubiNum>123</num:ubiNum></num:NumberToWords></soapenv:Body></soapenv:Envelope>
Sample Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><NumberToWordsResponse xmlns="http://www.dataaccess.com/webservicesserver/"><NumberToWordsResult>One Hundred Twenty-Three</NumberToWordsResult></NumberToWordsResponse></soapenv:Body></soapenv:Envelope>
You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.