Tutorials‎ > ‎

Make a Web Service Call

You can make raw SOAP calls in Zynk by using the HTTP Task to send the SOAP request and then parsing the returned XML.

Create a SOAP request

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetQuote xmlns="http://www.webserviceX.NET/">
      <symbol>AAPL</symbol>
    </GetQuote>
  </soap:Body>
</soap:Envelope>

Save the above SOAP request out to a file location

Implementing the SOAP call in Zynk
  1. Drag the HTTP Task into the Workflow builder
  2. Set the Method property to POST
  3. Add a Header variable and set Content-Type=application/soap+xml; charset= utf-8
  4. Set the URL to the address of the Web service http://www.example.org/stock
  5. Set the Input File to soap_request.xml (or whatever you saved the above example file)
  6. Set the Output File to c:\\soap_response.xml
  7. Drag the Message Box task onto the Workflow builder and set the Input File to c:\soap_response.xml
  8. Run the Workflow and you should have the SOAP response returned in c:\soap_response.xml
Comments