cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to expose pipeline as an interface for external client to call?

shaqirah
New Contributor II

Hi, I have requirement to create a simple SOAP web service in snaplogic designer and expose the pipeline to external (eg:- Postman).
Which Snaps that I can use in the pipeline in order to receive the value from Postman?
Any suggestion or sample pipeline that I can use is appreciated.

Thanks in advance

8 REPLIES 8

Hi,

Good day, or you can uses the xml generator snap if you want some dynamic/custom xml. The XML generator supports velocity template

~EmEm

SpiroTaleski
Valued Contributor

@shaqirah

Please find the attached sample pipeline:

testMapper_2022_01_27.slp (8.3 KB)

Regards,
Spiro Taleski

@Spiro_Taleski May I know how the structure of the XML payload looks like? I have tested the sample pipeline, but getting error.

SpiroTaleski
Valued Contributor
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:cus="urn:ws.solvedirect.com/webservices/custom"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
        <HelloWorldReq>
            <FileName>TestFile</FileName>
            <Status>Fail</Status>
        </HelloWorldReq>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>