473,772 Members | 3,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Mar 20 '08 #1
3 1818
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
http://gregorybeamer.spaces.live.com/lists/feed.rss

*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"Barrie Wilson" <bw*****@nowher e.comwrote in message
news:fX******** **********@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

Mar 20 '08 #2
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

Mar 20 '08 #3

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

"Peter Bromberg [C# MVP]" <pb*******@yaho o.NoSpamMaam.co mwrote in message
news:53******** *************** ***********@mic rosoft.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


Mar 21 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2192
by: Keith E. | last post by:
I have implemented a Web Service on an IIS 5.0 platform using the ASP listener I can access the Web Service just fine from a VB 6 App and classic ASP using the SOAP 3.0 toolkit and its "MSSOAP.SoapClient30" object However, one of the servers that I'd like to call the Web Service from is a shared hosting platform that does not offer the "MSSOAP.SoapClient30" object It only has the MS XMLDOM. I have located an example of Accessing a Web...
2
2818
by: J | last post by:
Hello, What is the best/easiest way to setup interprocess communication between a windows service and a webservice? The windows service will be running on the same machine that is hosting the web service. The web service will be calling the windows service to get information relating to the printers installed on this machine. J
5
16288
by: Gary Webb | last post by:
Is it possible to host a .NET Web Service (managed code using the .NET Framework 1.1) without IIS? I remember a website that indicated it was possible to use a .NET Remoting server to host a Web Service. Could client code that consumes a Remoting *web service* be used interchangeably to consume the same interface from a web service hosted in IIS? Gary
3
6510
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes. After doing some searching I found that putting references to multiple web services in a .disco...
1
1499
by: Andy | last post by:
Hi all, I'm familiar with web service compression and how to implement it in a Winforms app. What I'm trying to figure out how to do at this point is how to consume the service from an ASP.NET page. I've surfed around quite a bit looking for an answer to this, but most of the stuff I'm seeing is either talking about consuming from a Winforms app or enabling web compression for ASPX pages to the user's browser. Here's our setup: We...
9
5236
by: Coward 9 | last post by:
HI, I created the simplest "ASP .NET Web Service" by using VS 2005 and Visual C#( File | New | Web Site). However, when I tried to access the service from IE 7.0 http://www.aztao.org/WebService/Service.asmx (the fie DOES exist which can be verified by typing http://www.aztao.org/WebService/ in address bar only).
33
11865
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
3
1720
by: jonny | last post by:
Please recommend a Web Hosting Service that supports ASP.NET and SQL server. I am new at this and just signed up with Yahoo before I new any better. It appears that yahoo does not support ASP.NET and SQL server. (Instead yahoo offers PHP and MySQL) Also, good site to go and get a domain name. Thank you.
4
1649
by: Scott M. | last post by:
Believe it or not, I've searched quite a bit and can't find any relevant information on how to consume a J2EE web service from a .NET consumer WITHOUT the aid of any 3rd party tools. I have two questions: 1. In a nutshell, how is this accomplished? 2. Are there any publicly available J2EE web services out there that I can try this against? I don't have the ability to create the J2EE side of the
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.