The remote server returned an error: (415) Unsupported Media Type. Response Url: http://myserver/api/somefunction Status Code: UnsupportedMediaType Response Body: The server cannot service the request because the media type is unsupported.
This error happens due to invalid body content type.
Select correct body content type from the dropdown or you can enter directly in the request header. If you set contenttype in Headers grid then content type supplied in Dropdown is ignored.
Method-1 : Select from predefined list
Here is how you set content type from predefined selection list
Method-2 : Supply content type in Headers Grid
Another way of supplying content type is directly via headers grid as below. This is useful when you cant find ContentType in predefined list (Method-1)