Hi,

On Tue, Dec 20, 2011 at 1:39 AM, spayasam <[email protected]> wrote:

>
> Thanks a lot. I figured that out, however I'm stuck with invoking the web
> service now.
>
> When we invoke a web service using  mediator, it does a non-blocking invoke
> of the external service since we use HTTP transport. Because of this
> non-blocking invocation,  the web service response is received at a
> latertime. What is the synapse configuration element where the web service
> response can be received and processed in a synchronized fashion?
>

Synapse's callout mediator can be used to invoke a web service
synchronously over HTTP. Please have a look at the callout mediator sample
[1].

[1] http://synapse.apache.org/Synapse_Samples.html#Callout

Thanks,
Sadeep

I’ve tried using  mediator which does a blocking web service call but it
> can’t invoke the web service over HTTP transport.
>
> Can you please help?
>
> A chunck of the configuration from my synapse.xml looks like the one below:
>
>
> ---------------------------------------------------------------------------------------------------
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------------------------------------
>
>
>
> Hiranya Jayathilaka-3 wrote:
> >
> > Sample 300 should have the info you're looking for. Note how the message
> > payload and SOAP action has been set as properties:
> >
> > http://synapse.apache.org/Synapse_Samples.html#Sample300
> >
> > Thanks,
> > Hiranya
> >
> > On Sat, Dec 17, 2011 at 4:30 AM, spayasam  wrote:
> >
> >>
> >> Hello All
> >> I've started learning Synapse very recently.
> >>
> >> What I am tasked with doing is invoking a web service from synapse every
> >> 60
> >> secs and check if there is data in the database. I was able to do this
> >> using
> >> the . But I'm not sure how to specify the method of the web service that
> >> needs to be invoked and how to pass the request payload to the web
> >> service
> >> method.
> >>
> >> Can some one please advise or point me to the specific sample provided
> in
> >> Synapse? I've hunted the samples but didn't get one similar to this. not
> >> sure if i'm missing something
> >>
> >> Thanks
> >> Shravan
> >> --
> >> View this message in context:
> >> http://old.nabble.com/New-To-Synapse-tp32989507p32989507.html
> >> Sent from the Synapse - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
> > --
> > 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
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/New-To-Synapse-tp32989484p33005239.html
> Sent from the Synapse - User mailing list archive at Nabble.com.
>



-- 

Sadeep Jayasumana****

Email: [email protected]****

Phone: +94-77-2266507

Reply via email to