You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Syao Work <sy...@gmail.com> on 2012/10/03 16:56:03 UTC
[synapse] query parameters
Hello,
is there a way to get query parameters from rest call, and then mediate
them to SOAP?
Ex. http://example.com/add?x=1&y=2 --> SOAP
<add><x>1</x>2<y></y></add>
Re: [synapse] query parameters
Posted by Hiranya Jayathilaka <hi...@gmail.com>.
Query params can be accessed as follows (assuming you're using the REST API support in Synapse):
get-property('query.param.xyz')
Here xyz is your query parameter name.
Thanks,
Hiranya
On Oct 3, 2012, at 7:56 AM, Syao Work <sy...@gmail.com> wrote:
> Hello,
>
> is there a way to get query parameters from rest call, and then mediate
> them to SOAP?
>
> Ex. http://example.com/add?x=1&y=2 --> SOAP
> <add><x>1</x>2<y></y></add>
Re: [synapse] query parameters
Posted by vijayaratha vijayasingam <vi...@gmail.com>.
You can use the REST API for this..
Define the API, and within sequence, you can get the query parameter like;
get-property(uri.var.propertyname)
thanks
-ratha
On 3 October 2012 21:15, Ishan Jayawardena <ud...@gmail.com> wrote:
> You can try this with
> org.apache.synapse.commons.builders.XFormURLEncodedBuilder.
>
> On Wed, Oct 3, 2012 at 8:26 PM, Syao Work <sy...@gmail.com> wrote:
>
> > Hello,
> >
> > is there a way to get query parameters from rest call, and then mediate
> > them to SOAP?
> >
> > Ex. http://example.com/add?x=1&y=2 --> SOAP
> > <add><x>1</x>2<y></y></add>
> >
>
>
>
> --
> Regards,
> Ishan Jayawardena.
>
Re: [synapse] query parameters
Posted by Ishan Jayawardena <ud...@gmail.com>.
You can try this with
org.apache.synapse.commons.builders.XFormURLEncodedBuilder.
On Wed, Oct 3, 2012 at 8:26 PM, Syao Work <sy...@gmail.com> wrote:
> Hello,
>
> is there a way to get query parameters from rest call, and then mediate
> them to SOAP?
>
> Ex. http://example.com/add?x=1&y=2 --> SOAP
> <add><x>1</x>2<y></y></add>
>
--
Regards,
Ishan Jayawardena.