473,545 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
1 1602
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
14763
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call web-service in a an asynchronous mode (with a callback function)? If so, how?
3
6920
by: Borr | last post by:
Hi, I have an ASP .NET page, that runs client side timer that does something on the Server side and after that loads another page. So I have on client side something like : function OnPageLoad() { setTimeout("OnTimer()", 10000); }
1
2000
by: Fred W | last post by:
I have 2 dependent dropdowns and would like to populate the contents of the child dropdown dynamically based on the selected item of the parent. Pretty standard requirement. However, can this be done without posting back to the server each time and without sending all possible data to the client first? I'm attempting to call a server...
7
2004
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
2
1179
by: Dany C. | last post by:
We have a client application running on VS2005 RC. Here is the issues. Each time the application is restrart, the fisrt webservice call takes a long time to complete (sometime more that 2 minutes). All subsequent call to the same webservice are done in few second. Is there something that can be done to speed up the first web service call? ...
3
3946
by: tim.cavins | last post by:
We have a page on our Intranet A main.aspx that is calling a webservice on another computer B. The intranet page loads fine and displays the data from the webservice but we keep getting error messages on the Intranet server with the following: Exception information: Exception type: InvalidOperationException Exception message: No web...
5
2147
by: Simon | last post by:
I heard that we could do that by using AJAX. Could anybody share how to do it? Thanks.
3
4405
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project...
6
2973
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton the client side I have tried the following: List<RunningReportreportList = null; localhost.ReportService localrs = new...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7419
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
703
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.