The web service you are attempting to access requires that the caller
provide its credentials to prove that it should be allowed to access the web
service. You can use this code to send the "default credentials" to the web
service:
Dim myProxy As New localhost.Service1()
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials
> Hi,
> I get the following eror when I try to call my WebService (on the local
[quoted text clipped - 6 lines]
>
> Thanks
BigJohn - 05 Apr 2006 17:25 GMT
I tried this method and Josh's (set web service with anonymous auth) and
cannot bet either to funtion. I am running on Windows XP Pro, all modules
are within same solution.
> The web service you are attempting to access requires that the caller
> provide its credentials to prove that it should be allowed to access the web
[quoted text clipped - 14 lines]
> >
> > Thanks
Scott M. - 06 Apr 2006 23:25 GMT
Please show the code you are using to create the web service instance.
>I tried this method and Josh's (set web service with anonymous auth) and
> cannot bet either to funtion. I am running on Windows XP Pro, all modules
[quoted text clipped - 20 lines]
>> >
>> > Thanks
geyser hi - 10 Apr 2006 18:11 GMT
It works for me (c#). Thanks a lot.
localhost.Service1 ws=new localhost.Service1();
ws.Credentials = System.Net.CredentialCache.DefaultCredentials ;
textBox1.Text=ws.HelloWorld();
geyser hi - 10 Apr 2006 18:11 GMT
Thanks. The code works for me (C#)
localhost.Service1 ws=new localhost.Service1();
ws.Credentials = System.Net.CredentialCache.DefaultCredentials ;
textBox1.Text=ws.HelloWorld();
Also, If you're not interested in using Windows Authentication in IIS
to secure your web service you can just turn Anonymous Authentication
on for your web service's Virtual Directory:
- Right click on the virtual directory in IIS
- Choose properties from the context menu
- Select the Directory Security Tab
- Click the Edit button in the Anonymous access and authentication
control
- Check the anonymous access box
BigJohn - 05 Apr 2006 17:19 GMT
I am getting the same problem running on Windows XP Pro with the anonymous
auth.
> Also, If you're not interested in using Windows Authentication in IIS
> to secure your web service you can just turn Anonymous Authentication
[quoted text clipped - 6 lines]
> control
> - Check the anonymous access box