I used the .netproxygenerator app to create a set of fox methods to talk to a .net web service. I've used this tool before with great success, but with the service I'm trying to consume now, it is using a type of "datatable", which I know is basically XML. One of the methods generated was:
FUNCTION PostMessage(dt as DataTable) as DataTable
LOCAL loException as Exception, lvResult as DataTable
THIS.lError = .F.
this.cErrorMsg = ""
lvResult = .F.
TRY
lvResult = this.oBridge.InvokeMethod(this.oService, "PostMessage", dt)
CATCH to loException
THIS.GetErrorDetail(loException)
ENDTRY
RETURN lvResult
ENDFUNC
How should I handle this input parameter? Should I pass in a CURSORTOXML object? The result is also a datatable type, so I'm assuming that I could use XMLTOCURSOR.
The author of the service provided me the WSDL so I could get the ball rolling, but the service itself is not up and running yet so I haven't had the chance to experiment. Just wanted some heads up advise on this if possible.
Thanks in advance....
Gary