How to send soap call using content-type = Application/soap+xml

Ben138
Mega Expert

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

6 REPLIES 6

Maik Skoddow
Tera Patron
Tera Patron

Hi,

 

Provided link refers to Rest message , But I need for Soap message.

Sorry, my bad.

If you want to set your accept header, you can do this via scripting.

MaikSkoddow_0-1666764752178.png

 

Add in that script via s.setRequestHeader(); what you need.

Also see https://developer.servicenow.com/dev.do#!/reference/api/quebec/server/sn_ws-namespace/c_SOAPMessageV... 

Maik 

 

Hi ,

 

I tried using script but still facing error in sending ,

 

Ben138_0-1667196343265.png

Ben138_1-1667196473983.png

Ben138_2-1667196515188.png