Trouble accessing a Web Service

  • Thread starter Thread starter Ed Willis
  • Start date Start date
E

Ed Willis

I get an error whenever I try to call my web service from a VB.Net Console
application.

The request failed with HTTP status 401: Unauthorized.

Can anybody help me? Thanks
 
Had to set the credentials in order for the call to work.
Dim myService As New WebService.WebService1
Dim defaultcredentials As System.Net.CredentialCache

myService.Credentials = defaultcredentials.DefaultCredentials

myService.service1(xx,xx)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top