You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by Sergei <sb...@allopo.de> on 2012/05/24 00:42:47 UTC

text/plain response instead of text/xml

Hello,
I use Apache CXF 2.6.0 and its jax-ws implementation for the server side.
The clients use JDK jax-ws implementation.
The client side faces the problem periodically:

*com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported
Content-Type: text/plain Supported ones are: [text/xml]*

this happens often but not for every attempt, I mean the same request can be
successful (the content type is : text/xml) and failed. I do not see the
reason why text/xml is replaced by text/plain.

I use SOAP 1.1, MTOM is disabled.

*Request:*
Content-type: text/xml;charset="utf-8"
Soapaction: ""
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *;
q=.2, */*; q=.2

<?xml version="1.0" ?><S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:login
xmlns:ns2="http://parts.alfah.de/"><arg0>test</arg0><arg1>{SHA}a8ab2d94d86e6802db7b628e565822f71be7a164</arg1></ns2:login></S:Body></S:Envelope>

*Response:*
Transfer-encoding: chunked
null: HTTP/1.1 200 OK
*Content-type: text/plain*
Connection: Keep-Alive
Keep-alive: timeout=15, max=100
Date: Wed, 23 May 2012 22:38:52 GMT

<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header/><soap:Body><ns2:loginResponse
xmlns:ns2="http://parts.alfah.de/"><return><groupName>ALFAH</groupName><password>{SHA}a8ab2d94d86e6802db7b628e565822f71be7a164</password><username>test</username></return></ns2:loginResponse></soap:Body></soap:Envelope>

Thanks.

--
View this message in context: http://cxf.547215.n5.nabble.com/text-plain-response-instead-of-text-xml-tp5708420.html
Sent from the cxf-issues mailing list archive at Nabble.com.