You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Chris Hardin <ch...@gmail.com> on 2010/06/03 15:16:12 UTC

Setting Content Type

What is the best way to modify the content type? I just want the content
type to be *Content-Type: text/xml; charset=UTF-8
 *

HTTP/1.1 200 OK
Date: Wed, 02 Jun 2010 21:29:40 GMT
Server: IBM_HTTP_Server
Set-Cookie: JSESSIONID=0000BHspg59kUwvOwcIVJSNE2bD:14trbiqga; Path=/
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Cache-Control: no-cache="set-cookie, set-cookie2"
Transfer-Encoding: chunked
*Content-Type: multipart/related; type="application/xop+xml";
boundary="uuid:6168f1b2-b8ef-4365-b373-7658db001210"; start="<**
root.message@cxf.apache.org* <ro...@cxf.apache.org>*>";
start-info="text/xml"
*Content-Language: en

Re: Setting Content Type

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 03 June 2010 9:16:12 am Chris Hardin wrote:
> What is the best way to modify the content type? I just want the content
> type to be *Content-Type: text/xml; charset=UTF-8
>  *
> 
> HTTP/1.1 200 OK
> Date: Wed, 02 Jun 2010 21:29:40 GMT
> Server: IBM_HTTP_Server
> Set-Cookie: JSESSIONID=0000BHspg59kUwvOwcIVJSNE2bD:14trbiqga; Path=/
> Expires: Thu, 01 Dec 1994 16:00:00 GMT
> Cache-Control: no-cache="set-cookie, set-cookie2"
> Transfer-Encoding: chunked
> *Content-Type: multipart/related; type="application/xop+xml";
> boundary="uuid:6168f1b2-b8ef-4365-b373-7658db001210"; start="<**
> root.message@cxf.apache.org* <ro...@cxf.apache.org>*>";
> start-info="text/xml"
> *Content-Language: en

In this case, just turn off MTOM.   That Content-Type is set that way due the 
message being mime packaged as required by MTOM. 



-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog