You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by deivid <la...@gmail.com> on 2011/09/17 01:13:31 UTC

JaxWsProxyFactoryBean client bye[] argument problem

Hello,

I wrote a service client using JaxWsProxyFactoryBean (i'm also setting
AegisDatabinding as factory data binding) and works fine for every operation
in the service definition except for one operation who has byte[] type as
one of his arguments, it throws ClassCastException ("B cannot be cast to
javax.activation.DataHandler"). Seems related with MTOM but the service i'm
calling don't expect this byte[] argument as a MTOM attachment , so the
question is i'm forced to rewrite  service client with attachment? why? with
old xfire client you don't need to do that, byte[] argument is just like
other types arguments.

thanks in advance.
 


--
View this message in context: http://cxf.547215.n5.nabble.com/JaxWsProxyFactoryBean-client-bye-argument-problem-tp4812338p4812338.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: JaxWsProxyFactoryBean client byte[] argument problem

Posted by deivid <la...@gmail.com>.
SOLVED: in service client interface changed byte[] argument for DataHandler
argument, then when calling thw op something like:  new DataHandler(new
ByteArrayDataSource(data,"application/octet-stream")

thats all.

--
View this message in context: http://cxf.547215.n5.nabble.com/JaxWsProxyFactoryBean-client-byte-argument-problem-tp4812338p4814255.html
Sent from the cxf-user mailing list archive at Nabble.com.