Webservice call - Unsupported Media Type - Unsupported Content-Type:application/json
Hi all, I am having some issues communicating with a webservice that our app is consuming. I keep getting the following error message: com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: application/json Supported ones are: [text/xml] My configuration is a webservice call with an operation based on a consumed webservice. This consumed webservice has a WSDL source file. I also have custom http header which contain a subscription key, authorization and content-type: text/xml. Can you please tell me if it’s possible to change this type from application/json to text/xml and if so, how? (excepting the already mentioned custom http header) Many thanks, Razvan
Can you post a screenshot of the microflow that calls your webservice? Defining the HTTP-header values correct is tricky. They may be case-sensitive.
You possibly need to use uppercase keys, like here: