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

create array of items to pass as a parameter

$
0
0
create array of items to pass as a parameter
Web Service Proxy Generator
create array of items to pass as a parameter
Jan. 6, 2013
09:22 am
3OP0K3VAWShow this entire thread in new window
Gratar Image based on email address
From:Brian Abbott
To:All
Hi

I'm trying to create an array of objects to pass as a parameter to a web service. The code I have is like this:

oTask = oProxy.oBridge.CreateInstance("Service.COINSInterfaceFMTask") oTask.Company = 'Company' oTask.Contract = 'Contract' oTask.JobNumber = 'job number' oTaskArray = oProxy.oBridge.CreateArray("Service.COINSInterfaceFMTask") lOK = oTaskArray.AddItem(oTask) && lOK returns .T.

Even though lOK returns .T. on the above line, in the debugger whilst oTaskArray shows as an object, I can't drill down into it and I suspect this is where it's going wrong.

Then both of these calls below fail with 'The parameter is incorrect.' :

oResult = oProxy.doAction(oHeader, oTaskArray, @oBody1) OR oResult = oProxy.oBridge.InvokeMethod(oProxy, 'doAction', oHeader, oTaskArray, @oBody1)

I must have the syntax wrong somewhere, but can't see where ...


Viewing all articles
Browse latest Browse all 10393

Trending Articles