Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]

0
After a webservice call we receive a web service response but we encounter the following error: com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/plain; charset=utf-8 Supported ones are: [text/xml]. When making the same webservice call in SOAPUI it works fine. What can cause this error? Thanks!
asked
2 answers
1

This is the response in SOAP:

So it looks like a normal response, but if you check the specifications, it is a text/xml and Mendix can not handle this when called in a microflow:

Unfortunately it is a general web service, called by multiple other companies as well. So we do not really have an influence on the web service specifications.

answered
0

I would inspect the result you got in SOAPUI. Because what Mendix is telling you is that it expected an xml response but got something different instead.

Regards,

Ronald

answered