↧
The service requires a login and your code is missing the logon code.
loService.oService.HttpLogin("username","password")
+++ Rick ---
The question was about how to put an objectarray as a parameter. I think I managed that now. But now I am encountering a 401 error:
This is my program:
LOCAL loBridge as wwDotNetBridge DO sanitel_sanitelservicesproxy.prg loservice = CREATEOBJECT('sanitel_sanitelservicesproxy') loBridge = loservice.oBridge lExport = loBridge.createinstance("Sanitel_SanitelServices.ExportAnimalAnimalExportRequest") lExport.User = "TESTXML" lResult = loBridge.createinstance("Sanitel_SanitelServices.AnimalExport") lAnimal = loBridge.createinstance("Sanitel_SanitelServices.ExportAnimalAnimalExportRequestAnimal") lAnimal.ANTP_CDE ="BOV" lAnimal.CDE ="54950390" *objectarray as a parameter loBridge.CreateArrayOnInstance(lExport,"Animal",1) loBridge.SetPropertyEx(lExport,"Animal[0]",lAnimal) loBridge.Addarrayitem(lExport,"Animal",lAnimal) lResult = loservice.ExportAnimal(lExport)
Error on last line:
OLE IDispatch exception code 0 from wwDotNetBridge: The request failed with HTTP status 401: Unauthorized...
Any idea?
Paul