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 ...