web service
-
Hi, I am developing a web service that connect to an access database. the DB is on a server. when using the web service I get the following error "The request failed with HTTP status 401: Unauthorized." Please help! Thanks
-
How are you accessing the webservice? It looks like the browse permissions are stuffed up within IIS (assuming you're using that).
-
lune12 wrote:
using the URL where the webservice is located.
Well, yeah, of course that, but have you tried just putting it into a browser and checking the wsdl is accessible?
lune12 wrote:
Is there something to configure in the IIS?
Well like any web app, you're going to need to configure permissions on it, whether it be anonymous or authenticated, it'll be down to you but have this looked over because it appears to be expecting credentials that you aren't supplying when trying to access it.
-
lune12 wrote:
using the URL where the webservice is located.
Well, yeah, of course that, but have you tried just putting it into a browser and checking the wsdl is accessible?
lune12 wrote:
Is there something to configure in the IIS?
Well like any web app, you're going to need to configure permissions on it, whether it be anonymous or authenticated, it'll be down to you but have this looked over because it appears to be expecting credentials that you aren't supplying when trying to access it.
Thanks for your response, I just found this also, when adding to my application that use the web service the following, it works
myservice.Credentials = System.Net.CredentialCache.DefaultCredentials;
But::: I'm developing the web service, can't I change there something so the application will work without this adds?
-
Thanks for your response, I just found this also, when adding to my application that use the web service the following, it works
myservice.Credentials = System.Net.CredentialCache.DefaultCredentials;
But::: I'm developing the web service, can't I change there something so the application will work without this adds?
-
I don't believe you can as it's on the webserver level that you're getting a problem, not the application level but I'm prepared to be corrected in this. Is there a reason why you're not allowed to examine or alter the configuration?
-
I don't understand what do you mean by "allowed to examine or alter the configuration" what are you suggesting me to do?
-
What should I change? I am new in this field. can you explain or point to a relevant article. thank you for your help
It's unde rthe directory security tab in the properties on your application within IIS. I cannot advise you precisely what level of authentication you need as that's down to you and your network but most of what you need to do is pretty self explanatory within IIS, just give it a fiddle. Otherwise, the Microsoft IIS subsite should be able to give you everything else.
-
It's unde rthe directory security tab in the properties on your application within IIS. I cannot advise you precisely what level of authentication you need as that's down to you and your network but most of what you need to do is pretty self explanatory within IIS, just give it a fiddle. Otherwise, the Microsoft IIS subsite should be able to give you everything else.