Webservice problem / http status code 415

0
Hi, After upgrading from Mendix version 2.5.2.1 to 5.17 I'm receiving the following error when calling a webservice: Response exception received in Tube [ MesageDumpingTube ] Instance [ 3 ] Engine [ Metro/2.1 (branches/2.1-6728; 2011-02-03T14:14:58+0000) JAXWS-RI/2.2.3 JAXWS/2.2: Stub for http:/URL ] Thread [ MxRuntimeSystem-akka.actor.action-dispatcher-87 ]: com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8;action="ACTIONNAME"' was not the expected type 'text/xml; charset=utf-8'. Where can I change the 'content type'?
asked
2 answers
1

Marne,

It seems that the service you're trying to consume sends its message using MTOM extension (MIME type application/soap+xml is used to transfer SOAP XML in MTOM), but service is just able to understand normal SOAP messages (it doesn't contain MIME parts, only text/xml type in HTTP request).

Maybe this is something worth investigating. Higher versions of Mendix might support these webservice calls, I think that Mx 5.19+ supports MTOM, but not sure if this type of message can be handled, but might be worth a try.

answered
0

Re-importing the WSDL seemed to do the trick.

answered