472,782 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

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 3407
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
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.