Hi, On Wed, Dec 21, 2011 at 5:27 AM, spayasam <[email protected]> wrote:
> > Thank you very much Sadeep and Hiranya for your help/advise. This is now > working. > > However, when I saw the callout mediator documentation in the configuration > language page - it says - > > "As the callout mediator performs a blocking call, it cannot use the > default > non-blocking http/s transports based on Java NIO, and thus defaults to > using > the samples/axis2Client/client_repo/conf/axis2.xml as the Axis2 > configuration, and samples/axis2Client/client_repo as the client repository > unless these are specified separately" > By default, Synapse uses HTTP/S NIO transports which are based on Java NIO [1]. This transport is inherently asynchronous and can handle a large number of HTTP communications with a limited number of threads. Hence it is particularly useful in high load/concurrency scenarios. Callout mediator does not use this asynchronous, non-blocking HTTP NIO transport while sending messages out, instead it uses a synchronous, blocking HTTP transport. Meaning, callout mediator still communicates over HTTP although its not based on NIO. Whether a particular transport uses NIO or not is an implementation detail and should not concern the end user unless he is dealing with very high loads/concurrency levels. [1] http://docs.oracle.com/javase/6/docs/api/java/nio/package-summary.html Thanks, Sadeep > > Not sure if I'm misinterpreting something here. Can you please clarify? > > Thanks > Shravan > > > > Sadeep Jayasumana-2 wrote: > > > > Hi, > > > > On Tue, Dec 20, 2011 at 1:39 AM, spayasam 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 > > > > > > -- > View this message in context: > http://old.nabble.com/New-To-Synapse-tp32989484p33013286.html > Sent from the Synapse - User mailing list archive at Nabble.com. > -- Sadeep Jayasumana**** Email: [email protected]**** Phone: +94-77-2266507
