SOAP API- Response Method failed: with code: 415
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 09:04 PM
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
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 09:10 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:09 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:16 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:18 PM
Thanks.
You mean the config file that was used for the WSDL or something else ?