Converting SOAP Response XML to JSON using XSJS

666 Views Asked by At

I'm having problems to convert an XML response file to JSON using XSJS, Any help will be appreciated. Thanks!

1

There are 1 best solutions below

0
On

It is actually pretty simple. While sending the request using XSJS to the server...your URL path should contain the format specifier. http://myhost:8000/exampleapp/resource.xsjs/some/more/options?$format=JSON or if you do not want to append to the URL then include the following line your request header accept: application/json