You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by javinott <jm...@iasoft.es> on 2012/12/11 13:17:27 UTC
DataHandler with mtom disabled
Hi!
I have a service with mtom enabled and Aegis DataBinding.
This service is been called from different clients (.NET, PHP, Java with
Axis1, Java with Axis2) and most of them are having problems with mtom.
I am thinking that it may be a good idea to publish an endpoint with mtom
disabled. As my interface has DataHandlers on it, if I call the service with
mtom disabled in client and server, I get a null value on DataHandler
property.
Is there a way to fill the DataHandler value?
I guess the solution is to develop an interceptor that read the byte[] and
transforms it into a DataHandler, but I don't know if it is possible to do
and in which phase declare it.
Someone could help me?
Thank you very much!
--
View this message in context: http://cxf.547215.n5.nabble.com/DataHandler-with-mtom-disabled-tp5720026.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: DataHandler with mtom disabled
Posted by Daniel Kulp <dk...@apache.org>.
On Dec 13, 2012, at 2:43 AM, javinott <jm...@iasoft.es> wrote:
> Hi Dan,
>
> I am using CXF 2.2.10. I know that it's an old version but It was the latest
> one when I started this project.
> These services are being used by different clients, If I upgrade cxf in
> server side will it affect to clients with older cxf version?
I believe this issue is:
https://issues.apache.org/jira/browse/CXF-3056
which is marked fixed in 2.4. You should be able to upgrade fine, but 2.2.x is ancient and I don't remember all the details. See the various migration guides:
http://cxf.apache.org/docs/migration-guides.html
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: DataHandler with mtom disabled
Posted by javinott <jm...@iasoft.es>.
Hi Dan,
I am using CXF 2.2.10. I know that it's an old version but It was the latest
one when I started this project.
These services are being used by different clients, If I upgrade cxf in
server side will it affect to clients with older cxf version?
--
View this message in context: http://cxf.547215.n5.nabble.com/DataHandler-with-mtom-disabled-tp5720026p5720188.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: DataHandler with mtom disabled
Posted by Daniel Kulp <dk...@apache.org>.
What version of CXF? I know there was an issue in Aegis related to data handlers and non-mtom that was fixed a little while ago. Definitely try updating if you haven't already.
Dan
On Dec 11, 2012, at 7:17 AM, javinott <jm...@iasoft.es> wrote:
> Hi!
>
> I have a service with mtom enabled and Aegis DataBinding.
>
> This service is been called from different clients (.NET, PHP, Java with
> Axis1, Java with Axis2) and most of them are having problems with mtom.
> I am thinking that it may be a good idea to publish an endpoint with mtom
> disabled. As my interface has DataHandlers on it, if I call the service with
> mtom disabled in client and server, I get a null value on DataHandler
> property.
>
> Is there a way to fill the DataHandler value?
> I guess the solution is to develop an interceptor that read the byte[] and
> transforms it into a DataHandler, but I don't know if it is possible to do
> and in which phase declare it.
>
> Someone could help me?
>
> Thank you very much!
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/DataHandler-with-mtom-disabled-tp5720026.html
> Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com