Use Flow to get data from SOAP

#1

Hi there,

I’m trying to get some data from a webservice using the “SOAP” protocol in order to get an XML with data i would like to re-use in the flow.

Any idea how i can set up the request in a flow to get this data from the webservice ? (i have a password i will need to use in the request in order to authenticate with the webservice).

thank you in advance,

regards.

(Daniel Beckett) #2

@fdolin

The Webhook & HTTP service currently only recognises data sent in the following formats:

  • JSON (objects only, although the object may contain arrays)
  • XML
  • Form data
  • URL query string - you can make HTTP GET requests and use a query string in your URL. Note that values in the query string are only recognised in GET requests.

Does the web service have any way of sending data in one of the above formats?

#3

hi, unfortunately the webservice is only working with SOAP.
but i heard it’s possible to make requests to SOAP a webservice with a small javascript code.

any idea how i could do this ?

thanks

#4

Hi,

actually here is the php code piece sending a request to the soap webservice and returning answer to an XML file, which i would need to convert to javascript …
Any idea how i could do this ?

thanks in advance !

(Karen Barker) #5

Hi @fdolin,

I’m not 100% sure here as custom code is a little out of our remit. However, looking into this I don’t think it will be possible using our code service. I believe to be able to do this through javascript you would need to be able to access the XMLHttpRequest method which isn’t natively included in node.js which is all our code service recognises. :worried:

#6

hi,

actually my question is more about 'how to get an XML answer from a SOAP webservice".

I’ve seen i can do it with node.js but does Flowxo code option allows node.js ? or maybe ajax ?
if not, do you know the javascript code base to ask request to a soap webservice ?

thank you

(Karen Barker) #7

Hi @fdolin

Scripts run through the code service are executed in the Node.js runtime environment and can access the Request library. However currently there is no ability to add any additional libraries if these are required in the request.