Javascript rest resource xmlhttp request


(N Wallis) #1

Hi there, 

 

I would like to make some soap api calls from inside a javascript rest resource.  However, I am seeing the following error in the logs:

 

"Your browser does not support xmlhttp requests"

 

Is it even possible to do this?  It feels like it should be. 

 

Thanks, 

Nathan


(Bart Banda) #2

I've done it before, but I remember that I needed to set some headers as well for the SOAP API endpoint to support it. 

 

Maybe test doing the SOAP API call in something like Postman (https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en) and then try and convert a successful request together with headers and everything into the REST asset?