<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