SOAP API- Response Method failed: with code: 415

Dinesh31
Kilo Explorer

Hi All,

 

I was trying to hit an application through SOAP Message in ServiceNow, the response of the function is throwing me an error [Method failed: (/services/BIDataService) with code: 415]. This is happening to all the functions under the same WSDL. 

When I tried the same thing in SOAPUI, i can able to see the response with the expected result. 

Not sure where the issue is? Help Needed.

Thanks

find_real_file.png

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Dinesh,

Compare what is the difference between the request which you are sending from ServiceNow and SOAPUI. That will help you understand

http status 415 means unsupported request format i.e. server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for your response. 

 

To start with, the input i used in ServiceNow is same as i used in SOAPUI.

 

In SOAPUI, i didn't add content type but after looking at few posts in community, i felt that this may fix to add in SNOW but it didnt. 

 

Can you please validate the content type tag that i added in header.  Let me know if i am missing any thing ??

 

Thanks!

Hi Dinesh,

If the same soap request is working in SOAP UI and not in ServiceNow then something to do with configuration changes.

Did you check the config changes

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks.

You mean the config file that was used for the WSDL or something else ?