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/25/2012
04:06:12 PM
3HK0YIMG5 Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

LOL! My fault for not posting the right code - the missing parameter is unfortunately required.

+++ Rick ---



Ok Rick, by adding the PreAuthenticate parameter, it works fine as well. And I thought I was smart.
Thanks,
Paul


Hi Paul,

Did you try the code i sent you in the last message? HttpLogin *uses NetworkCredential* to do this... It's a helper so you don't need to bother with Network credential.

I apologize for the code error I posted off the top of my head - I missed the last parameter of PreAuthenticate, but Intellisense or the help file will tell you what the proper signature is...

Aloha,

+++ Rick ---



Hi Rick,

I found the solution myself. I have to use NetworkCredential for this webservice

locred = lobridge.createinstance("System.Net.NetworkCredential","WS4SNTRC","ed5R#CK5") loService.OSERVICE.Credentials = locred loService.OSERVICE.Url="http://qas.sanitrace.be/int/QAS_Sanitel_ExtInterfacingSvcs/SanitelServices.asmx"

Regards, Paul


With the logon code included I get: OLE error code, the parameter is incorrect

loService.oService.HttpLogin("WS4SNTRC","ed5R#CK5")

Paul








Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles