Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Getting Error 415 : Unsupported Media Type for a REST outbound message.

swathi52
Tera Expert

Hello Everyone,

I am trying to access one Endpoint through REST out bound message.

I am getting error 415 in my system.

When I try the same API and Request body in SOAP Ui , am getting result.

I am using PUT method here.

What could be the reason? Please suggest here.

 

Thanks

 

1 ACCEPTED SOLUTION

Hi Swathi,

Here are the screenshots. I too have Outbound REST message created. It has functions.

I am referring headers for the function. 

1) screenshot 1 is for rest message. you should see the http methods for this such as put, delete etc at the bottom

find_real_file.png

2) open the one which you are using example put method and add highlighted in bold

find_real_file.png

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

17 REPLIES 17

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Swathi,

Are you giving the correct http parameters etc while using from ServiceNow?

Are you sending data properly in json format? Which format the 3rd party is requesting?

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi Ankur,

 

Thanks for reply.

There are no http parameters fro this WSDL and am using JSON format. 3rd party created REST service only.

am using the same format in SOAP UI to access end point..am getting response properly.

Hi Swathi,

So what difference you noted between those the consuming API from postman and from servicenow

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

From Servicenow am getting error 415
where as in soap UI or postman am getting proper response.