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 <[email protected]> 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 <[email protected]> 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
>>
>
>

Reply via email to