You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by amardas <am...@gmail.com> on 2012/04/10 18:52:00 UTC

Re: Getting the raw xml from client.invoke()

Hi Daniel,

Do you have smaple code to allow raw xml passed to a service call?

Thanks,
Amar

--
View this message in context: http://cxf.547215.n5.nabble.com/Getting-the-raw-xml-from-client-invoke-tp553179p5630510.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Getting the raw xml from client.invoke()

Posted by Amar Das <am...@gmail.com>.
Thanks Daniel, I am trying to add an interceptor, do you think I will be
able to change the xml string n the interception and pass to the service
call ?
 Something line "&lt;" in place of "<" in the xml.

Amar

On Thu, Apr 12, 2012 at 12:43 PM, Daniel Kulp <dk...@apache.org> wrote:

> On Tuesday, April 10, 2012 09:52:00 AM amardas wrote:
> > Hi Daniel,
> >
> > Do you have smaple code to allow raw xml passed to a service call?
>
> The only way to get the raw XML stuff is to use a Provider based service or
> to use a javax.xml.transform.Source object as the parameter.    You
> definitely won't be able to use a "String" for that as that will be treated
> as an xsi:string type thing.
>
> Note: if you are starting from a WSDL, you could try adding the "-db
> source"
> flags to the command to generate code that would use the Source as
> params/returns.   Not sure if that's what you want though.
>
>
> Dan
>
>
>
> >
> > Thanks,
> > Amar
> >
> > --
> > View this message in context:
> >
> http://cxf.547215.n5.nabble.com/Getting-the-raw-xml-from-client-invoke-tp
> > 553179p5630510.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
>
>

Re: Getting the raw xml from client.invoke()

Posted by Daniel Kulp <dk...@apache.org>.
On Tuesday, April 10, 2012 09:52:00 AM amardas wrote:
> Hi Daniel,
> 
> Do you have smaple code to allow raw xml passed to a service call?

The only way to get the raw XML stuff is to use a Provider based service or 
to use a javax.xml.transform.Source object as the parameter.    You 
definitely won't be able to use a "String" for that as that will be treated 
as an xsi:string type thing.

Note: if you are starting from a WSDL, you could try adding the "-db source" 
flags to the command to generate code that would use the Source as 
params/returns.   Not sure if that's what you want though.


Dan



> 
> Thanks,
> Amar
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Getting-the-raw-xml-from-client-invoke-tp
> 553179p5630510.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