Consuming Web Service on Shared Hosting Platform

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barrie Wilson

    Consuming Web Service on Shared Hosting Platform


    I have a really simple test app which consumes two public web services (one
    stock quote and one Amazon books collection); it works just fine when
    posted on my local servers but when I publish it to either of my two public
    servers (shared hosting accounts), I get the .ASPX page ok but when I click
    the button to access the web services I get nowhere; more specifically, I
    get this message at the top of the stack:

    "[SocketException (0x274c): 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"

    ok, the easy advice is to call the hosting service and check their docs but
    (a) they never know what's wrong, and (b) they don't have much in the way of
    docs ... sure, I can change hosting providers but it's gonna be a real pain
    so I'd like to avoid it ... if I can

    My question is whether anyone might have an idea where the problem is, and
    more generally, is it common to find this is a problem on a shared host
    platform? If it is a common problem, are there any hosting services where
    it's NOT a problem .. hopefully one that's on the low end of the pricing
    scale; right now I just need to do some proof of concept work and have it
    publicly accessible.

    Thanks for any help ...

    BW



  • Cowboy \(Gregory A. Beamer\)

    #2
    Re: Consuming Web Service on Shared Hosting Platform

    Your host may restrict outgoing ports. That is the first thing I think of.

    --
    Gregory A. Beamer
    MVP, MCP: +I, SE, SD, DBA

    Subscribe to my blog


    *************** *************** *************** ****
    | Think outside the box!
    |
    *************** *************** *************** ****
    "Barrie Wilson" <bwilson@nowher e.comwrote in message
    news:fXwEj.1007 9$pm2.6514@en-nntp-04.dc1.easynews .com...
    >
    I have a really simple test app which consumes two public web services
    (one stock quote and one Amazon books collection); it works just fine
    when posted on my local servers but when I publish it to either of my two
    public servers (shared hosting accounts), I get the .ASPX page ok but when
    I click the button to access the web services I get nowhere; more
    specifically, I get this message at the top of the stack:
    >
    "[SocketException (0x274c): 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"
    >
    ok, the easy advice is to call the hosting service and check their docs
    but (a) they never know what's wrong, and (b) they don't have much in the
    way of docs ... sure, I can change hosting providers but it's gonna be a
    real pain so I'd like to avoid it ... if I can
    >
    My question is whether anyone might have an idea where the problem is, and
    more generally, is it common to find this is a problem on a shared host
    platform? If it is a common problem, are there any hosting services where
    it's NOT a problem .. hopefully one that's on the low end of the pricing
    scale; right now I just need to do some proof of concept work and have it
    publicly accessible.
    >
    Thanks for any help ...
    >
    BW
    >
    >
    >

    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: Consuming Web Service on Shared Hosting Platform

      Some "el-cheapo" web hosting companies (GoDaddy.com comes to mind) restrict
      things like outbound webrequests. Sound ludicrous on the face of it, but
      that's what they do.
      -- Peter
      Site: http://www.eggheadcafe.com
      UnBlog: http://petesbloggerama.blogspot.com
      Short Urls & more: http://ittyurl.net


      "Barrie Wilson" wrote:
      >
      I have a really simple test app which consumes two public web services (one
      stock quote and one Amazon books collection); it works just fine when
      posted on my local servers but when I publish it to either of my two public
      servers (shared hosting accounts), I get the .ASPX page ok but when I click
      the button to access the web services I get nowhere; more specifically, I
      get this message at the top of the stack:
      >
      "[SocketException (0x274c): 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"
      >
      ok, the easy advice is to call the hosting service and check their docs but
      (a) they never know what's wrong, and (b) they don't have much in the way of
      docs ... sure, I can change hosting providers but it's gonna be a real pain
      so I'd like to avoid it ... if I can
      >
      My question is whether anyone might have an idea where the problem is, and
      more generally, is it common to find this is a problem on a shared host
      platform? If it is a common problem, are there any hosting services where
      it's NOT a problem .. hopefully one that's on the low end of the pricing
      scale; right now I just need to do some proof of concept work and have it
      publicly accessible.
      >
      Thanks for any help ...
      >
      BW
      >
      >
      >
      >

      Comment

      • Barrie Wilson

        #4
        Re: Consuming Web Service on Shared Hosting Platform


        thanks, Peter, Cowboy ... I found a way to get around it using an
        unpublished proxy maintained by the ISP ...

        "Peter Bromberg [C# MVP]" <pbromberg@yaho o.NoSpamMaam.co mwrote in message
        news:53C4E27B-96AD-4127-98EC-8E40025D0194@mi crosoft.com...
        Some "el-cheapo" web hosting companies (GoDaddy.com comes to mind)
        restrict
        things like outbound webrequests. Sound ludicrous on the face of it, but
        that's what they do.
        -- Peter
        Site: http://www.eggheadcafe.com
        UnBlog: http://petesbloggerama.blogspot.com
        Short Urls & more: http://ittyurl.net
        >
        >
        "Barrie Wilson" wrote:
        >
        >>
        >I have a really simple test app which consumes two public web services
        >(one
        >stock quote and one Amazon books collection); it works just fine when
        >posted on my local servers but when I publish it to either of my two
        >public
        >servers (shared hosting accounts), I get the .ASPX page ok but when I
        >click
        >the button to access the web services I get nowhere; more specifically,
        >I
        >get this message at the top of the stack:
        >>
        >"[SocketException (0x274c): 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"
        >>
        >ok, the easy advice is to call the hosting service and check their docs
        >but
        >(a) they never know what's wrong, and (b) they don't have much in the way
        >of
        >docs ... sure, I can change hosting providers but it's gonna be a real
        >pain
        >so I'd like to avoid it ... if I can
        >>
        >My question is whether anyone might have an idea where the problem is,
        >and
        >more generally, is it common to find this is a problem on a shared host
        >platform? If it is a common problem, are there any hosting services
        >where
        >it's NOT a problem .. hopefully one that's on the low end of the pricing
        >scale; right now I just need to do some proof of concept work and have
        >it
        >publicly accessible.
        >>
        >Thanks for any help ...
        >>
        >BW
        >>
        >>
        >>
        >>

        Comment

        Working...