I am really starting to get annoyed with these CFC Web Services:-(

Can anyone tell me why this might not work

tempStruct = StructCopy(Original);
retTemp = ws.Method(tempStruct);

Now this code is basically copying a structure, and I have even just tried
tempStruct = Origianl; yet I get the same error message on both attempts.
The error message is simple, it says that it is an argument type mismatch.
The method being invoked has an argument of type struct. So I did the
following.

tempStruct = StructNew();
tempStruct.Element1 = "testing";
tempStruct.Element2 = "Second element";
retTemp = ws.Method(tempStruct);

Low and behold it actually accepted the structure, it appears that there is
something wrong here and I am missing it. Does anyone know what I am doing
wrong or see a work around except maybe defining each element like such.

tempStruct = StructNew();
tempStruct.Element1 = Original.Element1;
tempStruct.Element2 = Original.Element2;
tempStruct.Element3 = Original.Element3;

 
Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to