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]






$1}






Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Thu, Sep 29, 2016 at 7:20 AM, Malaka Silva  wrote:

> ​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
>> 
>>
>> On Wed, Sep 28, 2016 at 8:33 PM, Malaka Silva  wrote:
>>
>>> 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 didn't use connector. Even though I
 am getting in scientific notation.

 [1]
 
 http://ws.apache.org/ns/synapse;
name="checkConnectorScript"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="https,http">

   
  >>> name="requesterId"/>
  
 >>>   name="121212121212121212121212121212"/>
  
  
 
 {

 }
 
 
  
  payload = mc.getPayloadJSON();
  var requesterId = mc.getProperty('requesterId');

 var requesterIdInt = parseInt(mc.getProperty('reque
 sterId'));
 payload["requester_id"] = requesterIdInt;

  mc.setPayloadJSON(payload);
  
 
>>>  uri-template="https://wso2yash
 o.freshdesk.com/api/v2/tickets"/>
 
  
  
   
   
  
   


 


 Best Regards,
 Yashothara.S
 Software Engineer
 WSO2
 http://wso2.com
 https://wso2.com/signature
 

 On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela 
 wrote:

> 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/PayloadFactory+Mediator
> #PayloadFactoryMediator-Example2:JSON
>
> Thanks,
> Nuwan
>
> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Please find the template[1] and proxy[2].
>>
>> [1]
>> http://ws.apache.org/ns/synapse
>> ">
>> 
>> 
>> 
>> > expression="$func:requesterId"/>
>> 
>>   > expression="$ctx:uri.var.requesterId"/>
>> 
>> 
>> 
>> {
>>
>> }
>> 
>> 
>>
>> 
>> 
>>
>> 
>> 
>> >  payload = mc.getPayloadJSON();
>>
>>  var requesterId = mc.getProperty("uri.var.requesterId");
>>
>>  if (requesterId != null && requesterId != ""){
>>  var requesterIdInt = parseInt(mc.getProperty("uri.v
>> ar.requesterId"));
>> payload["requester_id"] = requesterIdInt;
>>  }
>>
>>  mc.setPayloadJSON(payload);
>>  ]]>
>> 
>>
>> 
>> 
>>

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
> 
>
> On Wed, Sep 28, 2016 at 8:33 PM, Malaka Silva  wrote:
>
>> 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 didn't use connector. Even though I am
>>> getting in scientific notation.
>>>
>>> [1]
>>> 
>>> http://ws.apache.org/ns/synapse;
>>>name="checkConnectorScript"
>>>startOnLoad="true"
>>>statistics="disable"
>>>trace="disable"
>>>transports="https,http">
>>>
>>>   
>>>  >> name="requesterId"/>
>>>  
>>> >>   name="121212121212121212121212121212"/>
>>>  
>>>  
>>> 
>>> {
>>>
>>> }
>>> 
>>> 
>>>  
>>>  payload = mc.getPayloadJSON();
>>>  var requesterId = mc.getProperty('requesterId');
>>>
>>> var requesterIdInt = parseInt(mc.getProperty('reque
>>> sterId'));
>>> payload["requester_id"] = requesterIdInt;
>>>
>>>  mc.setPayloadJSON(payload);
>>>  
>>> 
>>>>>  uri-template="https://wso2yash
>>> o.freshdesk.com/api/v2/tickets"/>
>>> 
>>>  
>>>  
>>>   
>>>   
>>>  
>>>   
>>>
>>>
>>> 
>>>
>>>
>>> Best Regards,
>>> Yashothara.S
>>> Software Engineer
>>> WSO2
>>> http://wso2.com
>>> https://wso2.com/signature
>>> 
>>>
>>> On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela 
>>> wrote:
>>>
 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/PayloadFactory+Mediator
 #PayloadFactoryMediator-Example2:JSON

 Thanks,
 Nuwan

 On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
 yashoth...@wso2.com> wrote:

> Please find the template[1] and proxy[2].
>
> [1]
> http://ws.apache.org/ns/synapse;>
> 
> 
> 
>  expression="$func:requesterId"/>
> 
>    expression="$ctx:uri.var.requesterId"/>
> 
> 
> 
> {
>
> }
> 
> 
>
> 
> 
>
> 
> 
>   payload = mc.getPayloadJSON();
>
>  var requesterId = mc.getProperty("uri.var.requesterId");
>
>  if (requesterId != null && requesterId != ""){
>  var requesterIdInt = parseInt(mc.getProperty("uri.v
> ar.requesterId"));
> payload["requester_id"] = requesterIdInt;
>  }
>
>  mc.setPayloadJSON(payload);
>  ]]>
> 
>
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>
>
>
> [2] 
> http://ws.apache.org/ns/synapse;
>name="createTicket"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="https,http">
>
>   
>  
>  
>   name="requesterId"/>
>  
>    name="121212121212121212121212121212"/>
>  
>  
> {$ctx:apiKey}
> {$ctx:apiUrl}
>  
>  
> {$ctx:requesterId}
>  
>  
>   
>   
>  
>  
>   
>
>
> 
>
>
> Best Regards,
> Yashothara.S
> Software Engineer
> WSO2
> http://wso2.com
> https://wso2.com/signature
> 
>
> On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva 
> wrote:
>
>> Hi Yashothara,

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 Silva  wrote:

> 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 didn't use connector. Even though I am
>> getting in scientific notation.
>>
>> [1]
>> 
>> http://ws.apache.org/ns/synapse;
>>name="checkConnectorScript"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="https,http">
>>
>>   
>>  > name="requesterId"/>
>>  
>> >   name="121212121212121212121212121212"/>
>>  
>>  
>> 
>> {
>>
>> }
>> 
>> 
>>  
>>  payload = mc.getPayloadJSON();
>>  var requesterId = mc.getProperty('requesterId');
>>
>> var requesterIdInt = parseInt(mc.getProperty('reque
>> sterId'));
>> payload["requester_id"] = requesterIdInt;
>>
>>  mc.setPayloadJSON(payload);
>>  
>> 
>>>  uri-template="https://wso2yash
>> o.freshdesk.com/api/v2/tickets"/>
>> 
>>  
>>  
>>   
>>   
>>  
>>   
>>
>>
>> 
>>
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> 
>>
>> On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela 
>> wrote:
>>
>>> 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/PayloadFactory+Mediator
>>> #PayloadFactoryMediator-Example2:JSON
>>>
>>> Thanks,
>>> Nuwan
>>>
>>> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
>>> yashoth...@wso2.com> wrote:
>>>
 Please find the template[1] and proxy[2].

 [1]
 http://ws.apache.org/ns/synapse;>
 
 
 
 >>> expression="$func:requesterId"/>
 
   >>> expression="$ctx:uri.var.requesterId"/>
 
 
 
 {

 }
 
 

 
 

 
 
 
 

 
 
 
 
 

 
 
 

 
 



 [2] 
 http://ws.apache.org/ns/synapse;
name="createTicket"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="https,http">

   
  
  
  >>> name="requesterId"/>
  
 >>>   name="121212121212121212121212121212"/>
  
  
 {$ctx:apiKey}
 {$ctx:apiUrl}
  
  
 {$ctx:requesterId}
  
  
   
   
  
  
   


 


 Best Regards,
 Yashothara.S
 Software Engineer
 WSO2
 http://wso2.com
 https://wso2.com/signature
 

 On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva  wrote:

> 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 
>> 

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 didn't use connector. Even though I am
> getting in scientific notation.
>
> [1]
> 
> http://ws.apache.org/ns/synapse;
>name="checkConnectorScript"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="https,http">
>
>   
>   name="requesterId"/>
>  
>name="121212121212121212121212121212"/>
>  
>  
> 
> {
>
> }
> 
> 
>  
>  payload = mc.getPayloadJSON();
>  var requesterId = mc.getProperty('requesterId');
>
> var requesterIdInt = parseInt(mc.getProperty('
> requesterId'));
> payload["requester_id"] = requesterIdInt;
>
>  mc.setPayloadJSON(payload);
>  
> 
>  uri-template="https://wso2yasho.freshdesk.com/api/
> v2/tickets"/>
> 
>  
>  
>   
>   
>  
>   
>
>
> 
>
>
> Best Regards,
> Yashothara.S
> Software Engineer
> WSO2
> http://wso2.com
> https://wso2.com/signature
> 
>
> On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela  wrote:
>
>> 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/PayloadFactory+Mediator
>> #PayloadFactoryMediator-Example2:JSON
>>
>> Thanks,
>> Nuwan
>>
>> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
>> yashoth...@wso2.com> wrote:
>>
>>> Please find the template[1] and proxy[2].
>>>
>>> [1]
>>> http://ws.apache.org/ns/synapse;>
>>> 
>>> 
>>> 
>>> >> expression="$func:requesterId"/>
>>> 
>>>   >> expression="$ctx:uri.var.requesterId"/>
>>> 
>>> 
>>> 
>>> {
>>>
>>> }
>>> 
>>> 
>>>
>>> 
>>> 
>>>
>>> 
>>> 
>>> >>  payload = mc.getPayloadJSON();
>>>
>>>  var requesterId = mc.getProperty("uri.var.requesterId");
>>>
>>>  if (requesterId != null && requesterId != ""){
>>>  var requesterIdInt = parseInt(mc.getProperty("uri.v
>>> ar.requesterId"));
>>> payload["requester_id"] = requesterIdInt;
>>>  }
>>>
>>>  mc.setPayloadJSON(payload);
>>>  ]]>
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>>
>>> [2] 
>>> http://ws.apache.org/ns/synapse;
>>>name="createTicket"
>>>startOnLoad="true"
>>>statistics="disable"
>>>trace="disable"
>>>transports="https,http">
>>>
>>>   
>>>  
>>>  
>>>  >> name="requesterId"/>
>>>  
>>> >>   name="121212121212121212121212121212"/>
>>>  
>>>  
>>> {$ctx:apiKey}
>>> {$ctx:apiUrl}
>>>  
>>>  
>>> {$ctx:requesterId}
>>>  
>>>  
>>>   
>>>   
>>>  
>>>  
>>>   
>>>
>>>
>>> 
>>>
>>>
>>> Best Regards,
>>> Yashothara.S
>>> Software Engineer
>>> WSO2
>>> http://wso2.com
>>> https://wso2.com/signature
>>> 
>>>
>>> On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva  wrote:
>>>
 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)
> in ESB 5.0.0. Is there any way to resolve this?
>
> Thanks.
>
> Best Regards,
> Yashothara.S
> Software Engineer
> WSO2
> http://wso2.com
> https://wso2.com/signature
> 
>



 --

 Best Regards,

 Malaka Silva
 Senior Technical Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : 

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"
   startOnLoad="true"
   statistics="disable"
   trace="disable"
   transports="https,http">
   
  
 
 

 
 

{

}


 
 payload = mc.getPayloadJSON();
 var requesterId = mc.getProperty('requesterId');
var requesterIdInt =
parseInt(mc.getProperty('requesterId'));
payload["requester_id"] = requesterIdInt;

 mc.setPayloadJSON(payload);
 

   https://wso2yasho.freshdesk.com/api/v2/tickets"/>

 
 
  
  
 
  
   
   



Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Wed, Sep 21, 2016 at 10:48 AM, Nuwan Pallewela  wrote:

> 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/PayloadFactory+Mediator#
> PayloadFactoryMediator-Example2:JSON
>
> Thanks,
> Nuwan
>
> On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Please find the template[1] and proxy[2].
>>
>> [1]
>> http://ws.apache.org/ns/synapse;>
>> 
>> 
>> 
>> > expression="$func:requesterId"/>
>> 
>>   > expression="$ctx:uri.var.requesterId"/>
>> 
>> 
>> 
>> {
>>
>> }
>> 
>> 
>>
>> 
>> 
>>
>> 
>> 
>> >  payload = mc.getPayloadJSON();
>>
>>  var requesterId = mc.getProperty("uri.var.requesterId");
>>
>>  if (requesterId != null && requesterId != ""){
>>  var requesterIdInt = parseInt(mc.getProperty("uri.v
>> ar.requesterId"));
>> payload["requester_id"] = requesterIdInt;
>>  }
>>
>>  mc.setPayloadJSON(payload);
>>  ]]>
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>>
>> 
>> 
>>
>>
>>
>> [2] 
>> http://ws.apache.org/ns/synapse;
>>name="createTicket"
>>startOnLoad="true"
>>statistics="disable"
>>trace="disable"
>>transports="https,http">
>>
>>   
>>  
>>  
>>  > name="requesterId"/>
>>  
>> >   name="121212121212121212121212121212"/>
>>  
>>  
>> {$ctx:apiKey}
>> {$ctx:apiUrl}
>>  
>>  
>> {$ctx:requesterId}
>>  
>>  
>>   
>>   
>>  
>>  
>>   
>>
>>
>> 
>>
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> 
>>
>> On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva  wrote:
>>
>>> 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)
 in ESB 5.0.0. Is there any way to resolve this?

 Thanks.

 Best Regards,
 Yashothara.S
 Software Engineer
 WSO2
 http://wso2.com
 https://wso2.com/signature
 

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Technical Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> https://wso2.com/signature
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Don't make Trees rare, we should keep them with care
>>>
>>
>>
>
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software 

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/PayloadFactory+Mediator#PayloadFactoryMediator-Example2:JSON

Thanks,
Nuwan

On Wed, Sep 21, 2016 at 10:33 AM, Yashothara Shanmugarajah <
yashoth...@wso2.com> wrote:

> Please find the template[1] and proxy[2].
>
> [1]
> http://ws.apache.org/ns/synapse;>
> 
> 
> 
> 
>
> 
>expression="$ctx:uri.var.requesterId"/>
> 
> 
> 
> {
>
> }
> 
> 
>
> 
> 
>
> 
> 
>   payload = mc.getPayloadJSON();
>
>  var requesterId = mc.getProperty("uri.var.requesterId");
>
>  if (requesterId != null && requesterId != ""){
>  var requesterIdInt = parseInt(mc.getProperty("uri.
> var.requesterId"));
> payload["requester_id"] = requesterIdInt;
>  }
>
>  mc.setPayloadJSON(payload);
>  ]]>
> 
>
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
>
>
>
> [2] 
> http://ws.apache.org/ns/synapse;
>name="createTicket"
>startOnLoad="true"
>statistics="disable"
>trace="disable"
>transports="https,http">
>
>   
>  
>  
>   name="requesterId"/>
>  
>name="121212121212121212121212121212"/>
>  
>  
> {$ctx:apiKey}
> {$ctx:apiUrl}
>  
>  
> {$ctx:requesterId}
>  
>  
>   
>   
>  
>  
>   
>
>
> 
>
>
> Best Regards,
> Yashothara.S
> Software Engineer
> WSO2
> http://wso2.com
> https://wso2.com/signature
> 
>
> On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva  wrote:
>
>> 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)
>>> in ESB 5.0.0. Is there any way to resolve this?
>>>
>>> Thanks.
>>>
>>> Best Regards,
>>> Yashothara.S
>>> Software Engineer
>>> WSO2
>>> http://wso2.com
>>> https://wso2.com/signature
>>> 
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Technical Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> https://wso2.com/signature
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>> https://store.wso2.com/store/
>>
>> Don't make Trees rare, we should keep them with care
>>
>
>


-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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;>





  



{

}


























[2] 
http://ws.apache.org/ns/synapse;
   name="createTicket"
   startOnLoad="true"
   statistics="disable"
   trace="disable"
   transports="https,http">
   
  
 
 
 
 

 
 
{$ctx:apiKey}
{$ctx:apiUrl}
 
 
{$ctx:requesterId}
 
 
  
  
 
 
  
   
   



Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature


On Wed, Sep 21, 2016 at 10:20 AM, Malaka Silva  wrote:

> 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)
>> in ESB 5.0.0. Is there any way to resolve this?
>>
>> Thanks.
>>
>> Best Regards,
>> Yashothara.S
>> Software Engineer
>> WSO2
>> http://wso2.com
>> https://wso2.com/signature
>> 
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Technical Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> https://wso2.com/signature
> http://www.wso2.com/about/team/malaka-silva/
> 
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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) in
> ESB 5.0.0. Is there any way to resolve this?
>
> Thanks.
>
> Best Regards,
> Yashothara.S
> Software Engineer
> WSO2
> http://wso2.com
> https://wso2.com/signature
> 
>



-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-09-20 Thread Yashothara Shanmugarajah
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) in
ESB 5.0.0. Is there any way to resolve this?

Thanks.

Best Regards,
Yashothara.S
Software Engineer
WSO2
http://wso2.com
https://wso2.com/signature

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev