REST to SOAP
Examples of how to use Bi-direct to make REST API calls to a server that only supports SOAP requests.
Bi-Direct endpoint for REST to SOAP: https://tri-way.vercel.app/resttosoap
Just like a REST API call if you want to pass any data and the required data in the request body, you need to include a JSON object with the following keys:
Url: The endpoint URL of the SOAP API you want to use
Method: The HTTP method for the API call (POST, GET, PUT, DELETE, etc.)
Data (optional): The request body data for the POST or PUT request
Example of a POST request
Normally this is how a soap request looks like
Output for the above-given soap request will look something like this
Example of a POST request made using Bi-Direct
Headers
Request Body (POST request)
Note
The input data for the SOAP request is specified in the "Data"
property. The "NumberToWords"
property specifies the name of the SOAP operation, and the ubiNum
property specifies the input parameter. The "#"
property specifies the value of the input parameter, which is unsignedLong
. The "@"
the property specifies the namespace declaration for the NumberToWords
element.
Last updated