Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Yashothara Shanmugarajah
parseInt() method gives in Scientific notation. It is the behavior of Rhino javascript Engine. So followed approach has been used. [1]

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Malaka Silva
​What was the solution?​ On Wed, Sep 28, 2016 at 9:36 PM, Yashothara Shanmugarajah < yashoth...@wso2.com> wrote: > Yes Malaka. I have resolved this issue today. > > Best Regards, > Yashothara.S > Software Engineer > WSO2 > http://wso2.com > https://wso2.com/signature >

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Yashothara Shanmugarajah
Yes Malaka. I have resolved this issue today. Best Regards, Yashothara.S Software Engineer WSO2 http://wso2.com https://wso2.com/signature On Wed, Sep 28, 2016 at 8:33 PM, Malaka S

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-28 Thread Malaka Silva
Hi Yashothara, Is the issues resolved? On Wed, Sep 21, 2016 at 12:57 PM, Yashothara Shanmugarajah < yashoth...@wso2.com> wrote: > Hi Nuwan, > > As it is an Optional Parameter, I need to send through the script > mediator. So I can't use payload mediator. > > Please find this proxy[1]. Here I did

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-21 Thread Yashothara Shanmugarajah
Hi Nuwan, As it is an Optional Parameter, I need to send through the script mediator. So I can't use payload mediator. Please find this proxy[1]. Here I didn't use connector. Even though I am getting in scientific notation. [1] http://ws.apache.org/ns/synapse"; name="checkConnectorScript

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-20 Thread Nuwan Pallewela
Hi Yashothara, I think this happens due to the use of script mediator. You do not need to use script mediator here. Just use the payload factory mediator to build the payload or use data mapper mediator if you need to do more complex mapping. [1] https://docs.wso2.com/display/ESB481/PayloadFactor

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-20 Thread Yashothara Shanmugarajah
Please find the template[1] and proxy[2]. [1] http://ws.apache.org/ns/synapse";> { }

Re: [Dev] Could not send Long value in ESB 5.0.0 with the payload

2016-09-20 Thread Malaka Silva
Hi Yashothara, Can you share the config you used. On Wed, Sep 21, 2016 at 9:33 AM, Yashothara Shanmugarajah < yashoth...@wso2.com> wrote: > Hi, > > I need to send JSON payload with long (for e.g 1910655) not as String. > In the back end it changes as a scientific notation (1.996356E10) i