Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. web service

web service

Scheduled Pinned Locked Moved Web Development
databasehelpsysadmin
11 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lune12
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • L lune12

      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

      J Offline
      J Offline
      JHizzle
      wrote on last edited by
      #2

      How are you accessing the webservice? It looks like the browse permissions are stuffed up within IIS (assuming you're using that).

      L 1 Reply Last reply
      0
      • J JHizzle

        How are you accessing the webservice? It looks like the browse permissions are stuffed up within IIS (assuming you're using that).

        L Offline
        L Offline
        lune12
        wrote on last edited by
        #3

        using the URL where the webservice is located. Is there something to configure in the IIS?

        J 1 Reply Last reply
        0
        • L lune12

          using the URL where the webservice is located. Is there something to configure in the IIS?

          J Offline
          J Offline
          JHizzle
          wrote on last edited by
          #4

          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.

          L 1 Reply Last reply
          0
          • J JHizzle

            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.

            L Offline
            L Offline
            lune12
            wrote on last edited by
            #5

            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?

            J 1 Reply Last reply
            0
            • L lune12

              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?

              J Offline
              J Offline
              JHizzle
              wrote on last edited by
              #6

              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?

              L 1 Reply Last reply
              0
              • J JHizzle

                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?

                L Offline
                L Offline
                lune12
                wrote on last edited by
                #7

                I don't understand what do you mean by "allowed to examine or alter the configuration" what are you suggesting me to do?

                J 1 Reply Last reply
                0
                • L lune12

                  I don't understand what do you mean by "allowed to examine or alter the configuration" what are you suggesting me to do?

                  J Offline
                  J Offline
                  JHizzle
                  wrote on last edited by
                  #8

                  I am suggesting that you alter the configuration within IIS on the server.

                  L 1 Reply Last reply
                  0
                  • J JHizzle

                    I am suggesting that you alter the configuration within IIS on the server.

                    L Offline
                    L Offline
                    lune12
                    wrote on last edited by
                    #9

                    What should I change? I am new in this field. can you explain or point to a relevant article. thank you for your help

                    J 1 Reply Last reply
                    0
                    • L lune12

                      What should I change? I am new in this field. can you explain or point to a relevant article. thank you for your help

                      J Offline
                      J Offline
                      JHizzle
                      wrote on last edited by
                      #10

                      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.

                      L 1 Reply Last reply
                      0
                      • J JHizzle

                        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.

                        L Offline
                        L Offline
                        lune12
                        wrote on last edited by
                        #11

                        Many Thanks!

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups