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

Call .Net Webservice from server side script on an ASP only server

P: n/a
Hi,

I want a do the following:

From a (client side) web form, post to server side script (I'm using
Javascript but anything will do), which in turn--and this is the important
bit that I can't find out how to do--calls a webservice on a separate
server...

Client ASP server (no .net)
ASP.Net Server
HTML Form -------> Server Side ASP Code --------> WebService
Can anyone tell me a simple way to access a webservice from server side asp
script?

Here's how far I've got so far ;) ...

<%
// Make call to webservice
%>

I can do it very nicely from the client thanks to the webservice.htc html
component (http://msdn.microsoft.com/workshop/a...vice/using.asp)
but what I really need is to access the webservice from the ASP server.

The reason I want to do things this way is that if I use the webservice html
component I will have to expose the address of the machine that hosts the
webservice to the client: something I don't want to do for security
reasons. I want the webservice machine to stay hidden from the client.

I've looked at a method using SOAP but the code looked pretty busy compared
to the webservice.htc stuff and microsoft are going to stop support anyhow,
so it's not really ideal.

Can anyone tell me how to achieve this? Javascript would be cool but
anything's better than nothing. I'm really tearing my hair out (and I've not
got a lot) over this because I can't find anything that tells me how to
handle this kind of interaction.
Thanks for your help,
Sam
Mar 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorry... formatted page wasn't quite as I intended...

"Mr Bojangles" wrote:
HTML Form -------> Server Side ASP Code --------> WebService


Client -------> ASP server (no .net) --------> ASP.Net Server

Mar 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.