View Single Post
Old 05-13-2004, 08:50 AM   #1 (permalink)
hrdwareguy
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
[Delphi] SOAP and out variables

I have a Delphi Application that uses SOAP and I am having problems with an out variable.

All of the functions work correct and return correct values. However, there is a procedure that is defined something like this:
procedure(structure: structure type, out errorcode:Integer; out errorstring:String); stdcall;

This procedure is implemented via SOAP so my code looks like this:

SoapComponent.procedure(structure, j, errorstring);

The problem is that the variable j (an integer) is never being updated within the procedure call. I have a SOAP sniffer that shows me all soap packets going across my NIC so I know the value being returned from the server and it is different than what the value of j ends up being after the procedure call.

I'm stumped. Any ideas would be good.

Thanks in advance.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73