We have fixed this problem in the Synapse trunk by writing a new message
builder for the application/form-url-encoded content. Unfortunately the fix
cannot be applied for the 2.1 release because it needs some changes in
Axis2 which is only available in Axis2 trunk.

So I'd recommend you to get a Synapse snapshot build from [1] and try it
out. Alternatively you can try to write your own message builder using [2]
as a reference.

Thanks,
Hiranya

[1] -
https://repository.apache.org/content/repositories/snapshots/org/apache/synapse/synapse-distribution/2.2.0-SNAPSHOT/

[2] -
http://svn.apache.org/repos/asf/synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/builders/XFormURLEncodedBuilder.java

On Fri, Dec 30, 2011 at 8:58 AM, Yogesh Sagar <[email protected]> wrote:

> Hello,
>
> I have configured synapse to be a proxy service. Basically, the request is
> being sent to synapse along with request parameters. What seems to be
> happening is that synapse is dropping the POST body when it
> receives the request. For example:
> https://localhost:8243/appContext/action
>
> first=a&second=b
>
> >From the logs it seems like the query string after the instance is
> dropped.
>
> It seems that Apache Synapse does not work as expected for Restful
> services.
>
>
> Any sort of help or pointers to documentation is very much appreciated.
>
> Thanks and Regards,
> Yogesh
>



-- 
Hiranya Jayathilaka
Associate Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

Reply via email to