How to deal with 'long' (System.Int64) argument datatypes from Service Studio?

Hi all,

I'm consuming several web service methods through an Extension. Some parameters have 'long' datatypes (which translate into System.Int64 in .NET). To avoid any conversion misconsequences what should be the best way to deal with this? That is, what should Service Studio insert into the extension Action for further conversion? I presume that Integer (System.Int32) is out of the question...

Thanks in advance,
Pedro Gonçalves
Hi Pedro,

your extension should convert the long integers to decimals in service studio. As explained in, a Decimal value consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the 96-bit integer and specify what portion of it is a decimal fraction, so it will handle 64 bit integers without any problem.
Lúcio Ferrão