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. General Programming
  3. C#
  4. Unable to connect to Web Service

Unable to connect to Web Service

Scheduled Pinned Locked Moved C#
help
5 Posts 5 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.
  • M Offline
    M Offline
    Manoj Sethi
    wrote on last edited by
    #1

    Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.

    M S J L 4 Replies Last reply
    0
    • M Manoj Sethi

      Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.

      M Offline
      M Offline
      Muhammad Gouda
      wrote on last edited by
      #2

      I think you will get help better if you posted this question to the ASP.NET forum

      M. Gouda foreach(Minute m in MyLife) { myExperience++; }

      1 Reply Last reply
      0
      • M Manoj Sethi

        Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.

        S Offline
        S Offline
        Skippums
        wrote on last edited by
        #3

        Are you certain that the web service is running? Do you have the proper URL and permissions to access the WS? Try updating your web reference... does it work? If not, you either have an incorrect URL or the WS is down. If it does, then make sure the new Web Reference exports such a call. Let me know if you figure it out (or if both the WS responds to the update AND that method is exported).

        Sounds like somebody's got a case of the Mondays -Jeff

        1 Reply Last reply
        0
        • M Manoj Sethi

          Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.

          J Offline
          J Offline
          James J Foster
          wrote on last edited by
          #4

          You are getting a general communication error, so it could be any number of things. Go through the basic diagnostics first: can you ping the web service server from where your code is running? Try also to load the web service URL in your browser, if it's http based.

          1 Reply Last reply
          0
          • M Manoj Sethi

            Hi, I am trying to access a webservice over the internet and getting the following exception. 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ' . I am trying to access the web service with the help of following code and getting the above exception. protected void Page_Load(object sender, EventArgs e) { GlobalWeather gw = new GlobalWeather(); string cities =gw.GetCitiesByCountry("India"); } Please help.

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

            My web service is down too, can you ask them to bring it up while you are at it?

            xacc.ide - now with IronScheme support
            IronScheme - 1.0 alpha 2 out now

            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