467,888 Members | 1,612 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,888 developers. It's quick & easy.

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
  • viewed: 3171
Share:
1 Reply
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Daniel Rimmelzwaan | last post: by
5 posts views Thread by David | last post: by
4 posts views Thread by MacLanca | last post: by
1 post views Thread by Goose14 | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.