By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

webservice.htc Access from Different Remote Server

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.