The eTecnologia VFP Extender for .Net will create a Web Service able to be called from VFP using the Extender, with very little work.
www.etecnologia.netHank
>I am trying to connect to a Web Service, I have the VB code but can't find out how to do the equivelant of a .Net "Credentials" object. Can anyone help?
>
>VB Codes is:
>
>Dim strWebURI As String = "
http://www.autotask.net/atservices/1.1/atws.asmx"
>Dim myService As New WebReference.ATWS
>myService.Url = strWebURI
>Dim cred As New System.Net.NetworkCredential("
myUserName@domain.com", "myPassword")
>Dim credCache As New System.Net.CredentialCache
>credCache.Add(New Uri(myService.Url), "Basic", cred)
>myService.Credentials = credCache
>
>I've tried using the MSSoap object and also wwSoap (This has properties for Username & password) but whatever I do I get a 401 error returned.
>
>
>Gary.