SOAP is an XML-based messaging protocol for exchanging information among computers. It is an application of the XML specification. It can be used in a variety of messaging systems and can be delivered via a variety of transport protocols. Leapwork supports making the SOAP request using the HTTP Request building block.
User can perform operations to Create/Read/Update/Delete data (CRUD operations) using Soap API methods viz. POST & GET requests. To perform SOAP API calls, the following four things are required in Leapwork.
- URL: Give the SOAP endpoint as the URL. If you are using a WSDL, then give the path to the WSDL as the URL.
- Headers: Contains any optional attributes of the message used in processing the message, either at an intermediary point or at the ultimate end-point.
- Method: Choose one of the request method from the list of available methods POST or GET.
- Body: In the request body, give the SOAP Envelope and Body tags as required. Start by giving the SOAP Envelope tag, which is necessary, and define all the namespaces. Give the SOAP body. The name of the SOAP method (operation) should be specified in the SOAP body.
Please see below an example for HTTP Request block with various fields populated.
For any clarification, please contact our Priority Support.