camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atg roxx <atgr...@gmail.com>
Subject Re: Passing post parameter as body in the cxfrs call.
Date Mon, 26 Mar 2012 16:39:20 GMT
Hi Team,

I got the solution for ti.

its simple we have to

                exchange.getIn().setHeader(Exchange.HTTP_METHOD, "POST");


exchange.getIn().setHeader(Exchange.CONTENT_TYPE
,"application/x-www-form-urlencoded");
 exchange.getOut().setBody("Xml="+ exchange.getIn().getBody());


--Regards,
atg roxx




On Mon, Mar 26, 2012 at 10:58 AM, atg roxx <atgroxx@gmail.com> wrote:

> HI Team,
>
>
> Could anyone please reply to this.
>
> Many thanks in advance.
>
>
> --cheers,
> atg roxx
>
>
> On Fri, Mar 23, 2012 at 5:05 PM, atg roxx <atgroxx@gmail.com> wrote:
>
>> Hi Team,
>>
>> I have a unusually requirement.
>>
>> I have to send a request xml to a restful service as as body generated
>> from POST parameter.
>>
>> I am using cxfrs for this,  setting the method type to POST,  setting
>> some values to be passed in headers
>> using CxfConstants.CAMEL_CXF_RS_USING_HTTP_API
>>
>> but I am not getting how to pass the POST parameters as body.
>>
>> Is there any way to do that?
>>
>> --Regards,
>> atg roxx
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message