Re: [Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi Isuru, Thanks for the response I'll do the necessary changes. Regards. On Fri, Mar 27, 2015 at 10:45 AM, Isuru Ranawaka isu...@wso2.com wrote: Hi Chathura, What we discusses is we need to build the MC by calling buildWithAttchaments() then entire input stream is written MC SoapEnvelop

[Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi, I'm working on implementing a failover endpoint support for response http status codes for my fast track training project. To resend the request I need to attach a copy of message context to the same request. So currently what I'm doing is clone the message for the first time and when re

Re: [Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Isuru Ranawaka
Hi Chathura, What we discusses is we need to build the MC by calling buildWithAttchaments() then entire input stream is written MC SoapEnvelop So we can reuse that object .We dont need to build request at every time when we send through endpoint. On Fri, Mar 27, 2015 at 10:15 AM, Chathura

Re: [Dev] [ESB] Correct way of creating a copy of a request

2015-03-26 Thread Chathura Priyankara
Hi, If I use synCtx.getEnvelope().buildWithAttachments(); to build the message do I need to call this every time when sending a request ? Thanks. Regards. On Fri, Mar 27, 2015 at 10:15 AM, Chathura Priyankara chathu...@wso2.com wrote: Hi, I'm working on implementing a failover endpoint