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
09:49:27 PM
3HE1ARZH3 Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

The code I posted did that... as does your code. There are several ways to do this.

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



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii

Viewing all articles
Browse latest Browse all 10393

Trending Articles