I'm trying to access a password protected web service. My code is as
follows:
Dim BS7666 As New bs7666.BS7666 'New instance of my web service
Dim CredCache As CredentialCache = New CredentialCache
Dim WebSvcURL As System.Uri = New System.Uri(BS76 66.Url)
CredCache.Add(W ebSvcURL, "Basic", New NetworkCredenti al("USERNAME",
"PASSWORD", "DOMAIN")) 'This is the line it fails on
BS7666.Credenti als = CredCache
Dim DataSet_bs7666 As New DataSet
DataSet_bs7666 = BS7666.GetAddre sses(CStr(0), "", strPostCode.ToL ower,
BuildingNoOrNam e.ToLower, "", strStreet.ToLow er, 0, 0)
Error:
Invalid URI: The format of the URI could not be determined.
Any help will be much appreciated - I've been struggling with this all
day!
:(
--
I am using the free version of SPAMfighter for private users.
It has removed 2200 spam emails to date.
Paying users do not have this message in their emails.
Try www.SPAMfighter.com for free now!