Does CXF support "text/html" streams?

My problem is: I have a running soap webservice client, and the server not
responds with contentType=text/html all of a sudden.
It used to be application/xml, but as it is an external API, there's not
much I can change about it (or can enforce the returned content type)?

Anyhow, how can I parse this stream with CXF?

The error message is as follows:

Caused by: org.apache.cxf.interceptor.Fault: Response was of unexpected
text/html ContentType.  Incoming portion of HTML stream: <?xml version="1.0"
encoding="UTF-8"?>
<SOAP:Envelope
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>[...]

Maybe the error is due to the <?xml starting tag? Or is it because after the
xml tag there is a linebreak, but the rest of the soap response is a
oneliner (the 2nd line)?

Hope you could help.
Thanks



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Response-was-of-unexpected-text-html-ContentType-tp5753723.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to