This may help: http://www.keith-chapman.org/2009/02/how-to-create-proxy-service-in-wso2-esb.html
Even thought this is talking about talking to an endpoint on the Mashup Server, it is conceptually same as an endpoint on WSAS. Azeez On Thu, Jul 22, 2010 at 6:42 PM, Javier López del Castillo Caymares < [email protected]> wrote: > Hello Mr. Ruwan. > > I would like to know how can I connect wso2esb and wso2wsas through a > proxy. > > Thank you and best regards > Javier López del Castillo Caymares. > > On Thu, 2010-07-15 at 21:47 +0530, Ruwan Linton wrote: > > Javier Lopez del Castillo Caymares wrote: > > > Thank you very much. > > > > > You are welcome, hope you got it sorted. > > > > Thanks, > > Ruwan > > > best regards > > > jlcc > > > > > > ----- Original Message ----- > > > From: "Ruwan Linton" <[email protected]> > > > To: [email protected] > > > Sent: Wednesday, July 14, 2010 12:30:06 AM > > > Subject: Re: [esb-java-user] injecting message > > > > > > Hi Javier, > > > > > > The synapseEnvironment.injectMessage(mc) is a asynchronous call, which > > > will return once you call that method, and another thread will mediate > > > the message and invoke the actual ws. > > > > > > The response will be received by the main sequence, so what you could > do > > > is to write a custom mediator, to act as a callback an place that on > the > > > main sequence for out path, which will callback to the task with the > > > response. > > > > > > <sequence name="main"> > > > <in> > > > <send/> > > > </in> > > > <out> > > > <class > name="your-custom-class-name-which-acts-as-a-callback-to-the-task"/> > > > </out> > > > </sequence> > > > > > > Thanks, > > > Ruwan > > > > > > Javier López del Castillo Caymares wrote: > > > > > >> Hello: > > >> > > >> A have a task where I inject a message to synapse environment, the > > >> message is a web service call, I need to get the response. Could any > > >> body tell me what to do? > > >> > > >> here is the code: > > >> > > >> ... > > >> > > >> MessageContext mc = synapseEnvironment.createMessageContext(); > > >> mc.setTo(new EndpointReference(this.do)); > > >> mc.setSoapAction(this.soapAction); > > >> synapseEnvoronment.injectMessage(mc); > > >> > > >> ... > > >> > > >> > > >> it works, the service is invoked, but I don't know how to get the > > >> result. > > >> > > >> thx and best regards. > > >> > > >> jlcc > > >> > > >> > > >> > > >> _______________________________________________ > > >> Esb-java-user mailing list > > >> [email protected] > > >> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > >> > > >> > > >> > > > > > > > > > > > > > > > > > _______________________________________________ > Esb-java-user mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > -- Afkham Azeez Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, Lean . Enterprise . Middleware Member; Apache Software Foundation; http://www.apache.org/ email: [email protected] cell: +94 77 3320919 blog: http://blog.afkham.org twitter: http://twitter.com/afkham_azeez linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________ Esb-java-user mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
