|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
POST BODYHello,
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 |
|
|
Re: POST BODYWe 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 <yogesh2005@...> 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: hiranya@...; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com |
|
|
Re: POST BODYHello Hiranya,
Thanks for your help. It did solve my problem. Any idea when is the next release of Synapse going to happen and which version? Thanks, Yogesh On Thu, Dec 29, 2011 at 11:04 PM, Hiranya Jayathilaka <hiranya911@...>wrote: > 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 <yogesh2005@...> > 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: hiranya@...; Mobile: +94 77 633 3491 > Blog: http://techfeast-hiranya.blogspot.com > |
|
|
Re: POST BODYHi Yogesh,
On Mon, Jan 9, 2012 at 8:59 PM, Yogesh Sagar <yogesh2005@...> wrote: > Hello Hiranya, > > Thanks for your help. It did solve my problem. Great :) > Any idea when is the next > release of Synapse going to happen and which version? > A vote for releasing Synapse 2.1 is now on. But this particular fix won't be included in that. Hopefully this fix will be available in Synapse 2.2. But we need a release from Axis2 project before we can start on that. Perhaps Andreas is in a better position to provide an ETA on that. Thanks, Hiranya > > Thanks, > Yogesh > > On Thu, Dec 29, 2011 at 11:04 PM, Hiranya Jayathilaka > <hiranya911@...>wrote: > > > 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 <yogesh2005@...> > > 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: hiranya@...; Mobile: +94 77 633 3491 > > Blog: http://techfeast-hiranya.blogspot.com > > > -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: hiranya@...; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com |
| Free embeddable forum powered by Nabble | Forum Help |