473,473 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

webservice.htc Access from Different Remote Server

I have a simple web service that requires no input and returns a character
string.

I created the service and FTPd it to a remote server. The .dll to the .bin
directory and the single .asmx file to a directory called Services.

When referenced from a webapplication running on localhost it operates
correctly.
When referenced from a webapplication running on the same remote server as
the webservice it operates correctly.
When referenced from a webapplication running on a different remote server
then the remote server having the webservice it operates correctly.

When referenced from an HTML page using webservice.htc on localhost it
operates correctly.
When referenced from an HTML page using webservice.htc running on the same
remote server as the webservice it operates correctly
When referenced from an HTML page using webservice.htc running on a
different remote server then remote server having the webservice it fails
with ...

event.result.errorDetail.code = Client
event.result.errorDetail.string = Service unavailable
event.result.errorDetail.raw = null

What has to be done to correct the last condition and allow it to be
accessed from an HTML page on any server?

Is there a better approach to .HTML access of a webservice then by using
webservice.htc?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Aug 13 '06 #1
1 3454
The answer is (or course) that this is the way that it works and you must
use a webservice proxy to access the webservice if it is in a different
webspace.

Is there a better solution to HTML/ASP accessing webservices?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Thom Little" <th**@tlanet.netwrote in message
news:uk**************@TK2MSFTNGP02.phx.gbl...
>I have a simple web service that requires no input and returns a character
string.

I created the service and FTPd it to a remote server. The .dll to the
.bin directory and the single .asmx file to a directory called Services.

When referenced from a webapplication running on localhost it operates
correctly.
When referenced from a webapplication running on the same remote server as
the webservice it operates correctly.
When referenced from a webapplication running on a different remote server
then the remote server having the webservice it operates correctly.

When referenced from an HTML page using webservice.htc on localhost it
operates correctly.
When referenced from an HTML page using webservice.htc running on the
same remote server as the webservice it operates correctly
When referenced from an HTML page using webservice.htc running on a
different remote server then remote server having the webservice it fails
with ...

event.result.errorDetail.code = Client
event.result.errorDetail.string = Service unavailable
event.result.errorDetail.raw = null

What has to be done to correct the last condition and allow it to be
accessed from an HTML page on any server?

Is there a better approach to .HTML access of a webservice then by using
webservice.htc?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Aug 15 '06 #2

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

Similar topics

5
by: Daniel Rimmelzwaan | last post by:
Hello all, I don't know what to do anymore, I thought I was not coding my stuff correctly, but I am having problems with Visual Studio it seems. When I create a new webservice on my local...
5
by: David | last post by:
When I call a webservice with an ASP.NET application, I get the following error: "The underlying connection was closed: Unable to connect to the remote server. " With my brower, I can get the...
2
by: Ken Hughes | last post by:
Hi I'm looking for some advice on architecure - apologies if this is the incorrect group.. I'm writing a VB app and it has to pass data to a another server machine (in a different office)....
2
by: Julia | last post by:
Hi, Can a Remote object be a WebService as well? i want to able to connect to a remote object either using .NET remoting and HTTP\SOAP so I wonder if I can create a singleton(statefull)...
4
by: Bamse | last post by:
Hi all, The problem is as follows: I need to authorize a user: through a WS; if a setting is on, the webservice will look in the local "database", if the setting is off it will connect to the...
4
by: MacLanca | last post by:
Hi, I've done the HelloWorld WebService, installed in a WebServer (INTERNET) When I call it with Windows App it works, if I use a webform it doesn’t (INTERNET) Both of them work in the INTRANET...
9
by: Tim Baley | last post by:
I recently created some intranet web sevices to expose stored procedures on our SQL Servers (SQL2k). The stored procedures include an audit trail with user/login identification, so the web...
1
by: Goose14 | last post by:
I have a client application and a webservice. Both are in the same solution. If I reference the local webservice and run, and step into the webservice no problem. My question is, when I want to...
0
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,...
0
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.