Hi Paul, The NIO sender uses the parameters in the following guide to configure the proxy host and ports.
http://wso2.org/project/esb/java/3.0.0/docs/transports/transports-catalog.html#HttpNIOTrp Thanks, Ruwan Paul Fremantle wrote: > I know you can configure the normal HTTP sender to go via an HTTP > proxy. Ruwan - does the NIO Sender support that? > > Paul > > On 22 July 2010 14:12, Javier López del Castillo Caymares > <[email protected] <mailto:[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] <mailto:[email protected]>> > > > To: [email protected] <mailto:[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] <mailto:[email protected]> > > >> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > >> > > >> > > >> > > > > > > > > > > > > > > > > > _______________________________________________ > Esb-java-user mailing list > [email protected] <mailto:[email protected]> > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > > > > > -- > Paul Fremantle > CTO and Co-Founder, WSO2 > OASIS WS-RX TC Co-chair, VP, Apache Synapse > > Office: +44 844 484 8143 > Cell: +44 798 447 4618 > > blog: http://pzf.fremantle.org > twitter.com/pzfreo <http://twitter.com/pzfreo> > [email protected] <mailto:[email protected]> > > wso2.com <http://wso2.com> Lean Enterprise Middleware > > Disclaimer: This communication may contain privileged or other > confidential information and is intended exclusively for the > addressee/s. If you are not the intended recipient/s, or believe that > you may have received this communication in error, please reply to the > sender indicating that fact and delete the copy you received and in > addition, you should not print, copy, retransmit, disseminate, or > otherwise use the information contained in this communication. > Internet communications cannot be guaranteed to be timely, secure, > error or virus-free. The sender does not accept liability for any > errors or omissions. > ------------------------------------------------------------------------ > > _______________________________________________ > Esb-java-user mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user > -- Ruwan Linton Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb WSO2 Inc.; http://wso2.com Lean . Enterprise . Middleware phone: +1 408 754 7388 ext 51789 email: [email protected]; cell: +94 77 341 3097 blog: http://blog.ruwan.org linkedin: http://www.linkedin.com/in/ruwanlinton tweet: http://twitter.com/ruwanlinton _______________________________________________ Esb-java-user mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
