The request failed with HTTP status 401: Unauthorized
I have a WebService in localhost, and the set in the web.config is
<add key="WebReference.Service"
value="
http://localhost/HealthService/Service.asmx"/>
and the code to refer the WebService is
WebReference.Service wsHealth = new WebReference.Service();
But when I use code to execute a function in the webservice, like
ds =(System.Data.DataSet)wsHealth.GetSchools_Zip(txtZip1.Text);
it result into an error:
The request failed with HTTP status 401: Unauthorized
I have type the web service URL into browse, it execute OK, but it can't
call in program.
How can I do?
.
Relevant Pages
- Re: Starting exe from WebService
... I need to execute the program through the webservice ... WebService because the program is complicated and I don't ... WinForm app is getting ... >Why do you want a WebMethod to launch a WinForm on the ... (microsoft.public.dotnet.framework.aspnet.security) - Re: Asynchronous Web Service Call
... & b) It will execute within a thread from the standard system ... Conversation: Asynchronous Web Service Call ... We want to call a webservice asynchronously by a .net soap proxy ... (microsoft.public.dotnet.framework.aspnet.webservices) - Re: Weather Service Webservice Issues
... Patrick ... > We have been using the the National Weather Service ... and can't get the webservice to ... > execute from my asp.net application will it does execute from other ... (microsoft.public.dotnet.framework.aspnet) - Re: Weather Service Webservice Issues
... Patrick ... > We have been using the the National Weather Service ... and can't get the webservice to ... > execute from my asp.net application will it does execute from other ... (microsoft.public.dotnet.framework.aspnet) - Weather Service Webservice Issues
... We have been using the the National Weather Service ... committed an HTTP protocol violation." ... and can't get the webservice to ... execute from my asp.net application will it does execute from other ... (microsoft.public.dotnet.framework.aspnet) |
|