Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

How to retrieve result of type 'long'?

$
0
0
How to retrieve result of type 'long'?
Web Service Proxy Generator
How to retrieve result of type 'long'?
Jan. 1, 2013
01:15 pm
3OK0SEJRKShow this entire thread in new window
Gratar Image based on email address
From:Frits van den Munckhof
To:All
I'm experimenting with the Web Service Proxy Generator (just bought it). I run into a small (beginners?-)problem when trying to consume a webservice with the following result-wsdl for the Getcard()-method of the service:

<s:complexType name="GetCardData"><s:sequence><s:element minOccurs="1" maxOccurs="1"name="ResultCode"type="s:int"/><s:element minOccurs="0" maxOccurs="1"name="ResultDescription"type="s:string"/><s:element minOccurs="1" maxOccurs="1"name="TransactionId"type="s:long"/><s:element minOccurs="1" maxOccurs="1"name="Balance"type="s:long"/></s:sequence></s:complexType>

I can call the webservice:

LOCAL loItem as GetCardData loItem = loService.GetCard("BIOSCOOPCARD","FRITS","1234","123456","","","1234567890123456789","","POS") ? TRANSFORM(loItem.ResultCode) && Gives correct result: 101 ? TRANSFORM(loItem.ResultCode) && Gives correct result: "Invalid CardID or PIN ? TRANSFORM(loItem.TransactionId) && Property visible in Intellisense and after calling this code in the Local variables-inspector of the debugger with value (none). Statement results in error 11 (Function argument value, type or count is invalid)? TRANSFORM(loItem.Balance) && Property visible in Intellisense and after calling this code in the Local variables-inspector of the debugger with value (none). Statement results in error 11 (Function argument value, type or count is invalid)

Testing the webservice in another environment results in Balance=0 and TransactionId=493.
So the problem seems to be that the type "long" is not implicitly converted to vfp-numeric. How can I force this conversion?

TIA, Frits


Viewing all articles
Browse latest Browse all 10393

Trending Articles