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

Re: How to convert this .net code in VFP-wwDotNetBridge

$
0
0
Re: How to convert this .net code in VFP-wwDotNetBridge
West Wind Client Tools
Re: How to convert this .net code in VFP-wwDotNetBridge
04/19/2012
11:55:04 AM
3HE0PJOLK Show this entire thread in new window
Gratar Image based on email address
From:
Paul Brebels
To:
Attachments:
None

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


Viewing all articles
Browse latest Browse all 10393

Latest Images

Trending Articles



Latest Images