Forum Discussion

aditya_gupta41's avatar
aditya_gupta41
Contributor
4 years ago

How can I hardcode Endpoint in SOAP Execute Snap?

Is there any way by which I can achieve passing hardcoded endpoint value to SOAP Execute?
Or in other way, can i pass hardcoded values of Request properties?

3 Replies

    • del's avatar
      del
      Contributor III

      @aditya.gupta41,

      I believe you can achieve this by editing the service endpoint in the WSDL file. This may require downloading a copy of the WSDL, edit the endpoint in the file, then store it in a location the SOAP Execute snap can access - such as SLDB or local system.

      Optionally, you may can send your SOAP XML payload using REST POST - which allows setting the endpoint in the snap configuration. But this option can be tedious, having to build the XML first, and defeats the benefits that the SOAP Execute provides.

  • Rather than hardcoding the endpoint, I converted SOAP request in REST API, and provided Content-Type as application/soap+xml. This worked for me.