You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by 김강원 <kk...@evalleyvs.com> on 2009/10/08 19:44:47 UTC

How do i changed Content-Type at used MTOM?

Dear!

I have a big problem in end of the project.

We have been used MTOM with clinet of WebService

But HTTP Header’s fixed content-type is problem

Looks like here :

Content-Type: multipart/related; type="application/xop+xml"; 

boundary="uuid:d1b3cf01-b71e-47fe-916d-cc0488c7de38";
start="<ro...@cxf.apache.org>"; start-info="text/xml"

Most of all  , We have big prblem is type parameter that is
type="application/xop+xml"; 

 

We want to change type="application/xop+xml"  to type="text/xml"

 

How do you know using the MTOM while changing the content-type in CXF?

 

Please help me…

 

Thank you!


Re: How do i changed Content-Type at used MTOM?

Posted by Benson Margulies <bi...@gmail.com>.
What version of CXF? What data binding?

2009/10/8 김강원 <kk...@evalleyvs.com>

> Dear!
>
> I have a big problem in end of the project.
>
> We have been used MTOM with clinet of WebService
>
> But HTTP Header’s fixed content-type is problem
>
> Looks like here :
>
> Content-Type: multipart/related; type="application/xop+xml";
>
> boundary="uuid:d1b3cf01-b71e-47fe-916d-cc0488c7de38";
> start="<ro...@cxf.apache.org>"; start-info="text/xml"
>
> Most of all  , We have big prblem is type parameter that is
> type="application/xop+xml";
>
>
>
> We want to change type="application/xop+xml"  to type="text/xml"
>
>
>
> How do you know using the MTOM while changing the content-type in CXF?
>
>
>
> Please help me…
>
>
>
> Thank you!
>
>

Re: How do i changed Content-Type at used MTOM?

Posted by Daniel Kulp <dk...@apache.org>.
If the Content-Type isn't application/xop+xml, then it isn't an MTOM message 
and shouldn't be processed as such.   It would be a huge bug not to send it as 
that.

If you really want to try to change it, an interceptor that runs immediately 
after the AttachmentSerializer may be able to grab the content type out and 
re-set the header.   Not really sure what else would break though.

Dan


On Thu October 8 2009 1:44:47 pm 김강원 wrote:
> Dear!
> 
> I have a big problem in end of the project.
> 
> We have been used MTOM with clinet of WebService
> 
> But HTTP Header’s fixed content-type is problem
> 
> Looks like here :
> 
> Content-Type: multipart/related; type="application/xop+xml";
> 
> boundary="uuid:d1b3cf01-b71e-47fe-916d-cc0488c7de38";
> start="<ro...@cxf.apache.org>"; start-info="text/xml"
> 
> Most of all  , We have big prblem is type parameter that is
> type="application/xop+xml";
> 
> 
> 
> We want to change type="application/xop+xml"  to type="text/xml"
> 
> 
> 
> How do you know using the MTOM while changing the content-type in CXF?
> 
> 
> 
> Please help me…
> 
> 
> 
> Thank you!
> 

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