How to send soap call using content-type = Application/soap+xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 09:52 PM
Hi Community,
I'm Try to send a soap request to one of 3rd part tool using soap outbond message. By default soap request is sending as content-type = text/xml , My 3rd party tool is rejecting content-type =text/xml it will only accept application/soap=xml as content type is option to send soap request with content-type = Application/soap+xml.
Thanks in Advance
With Regards,
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 09:57 PM
Hi
please follow the instructions on https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/outbound-rest/task/t...
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:53 PM
Hi,
Provided link refers to Rest message , But I need for Soap message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 11:16 PM
Sorry, my bad.
If you want to set your accept header, you can do this via scripting.
Add in that script via s.setRequestHeader(); what you need.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2022 11:09 PM
Hi ,
I tried using script but still facing error in sending ,