Post to a webservice with a specific Content-Type?
I try to Post to a web service with a connection to a web service where I must use a Content-Type to accept “application/json”. Defining this under the Custom HTTP Header option still result in “An error has occurred while handling the request.”. How can solve this error and how can I retrieve more error details in my program?
Ruud van Driel
If you use standard Mendix webservice call it will always create a SOAP/XML message, no matter what you define in the header.
Chris de Gelder
Webservices always expect soap/xml. If you need to call a service with a json payload you can use a REST call.
What exactly did you put in as the header key and value?
You could try to use https://requestb.in/ to inspect the exact request that is being made including all headers, and see if there's anything strange in there. Hope that helps!