Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. User = "username1"
  2. Password = "password1"
  3. Domain = "domain1"
  4.  
  5. URL = "http://sao-ldms/MBSDKService/MsgSDK.asmx?WSDL"
  6. Dim MyCredentails As New System.Net.CredentialCache()
  7. Dim NetCred As New System.Net.NetworkCredential(User, Password, Domain)
  8. MyCredentails.Add(New Uri(URL), "Basic", NetCred)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement