473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Accessing ASP/.NET Application via Presentation Layer

Hi,

Apologies if this is such a simple query but if I have an ASP/.NET
Application which I normally access via www.foo.com/myapp on Machine A
can I access this application layer machine via a Presentation Layer
Machine B via www.mypresentationlayer.com/myapp? In a nutshell I want
users to access Machine B on the front end (web) but behind the scenes
the actual requests are routed to Machine A.

Anyone?

Thank
Mar 26 '07 #1
1 1523
Sure, what you'd do is modify the application layer so that it is a web
service class, rather than a regular class and then you can call this web
service from whatever presentation layer you want.

In the project that contains the application layer, create a new ASP.NET Web
Service (.asmx) file. Create WebMethods in the web service class that will
act as proxies for each of the application layer's methods and recompile the
project.

Now, in your second machine's presentation layer project, make a web
reference to your first machine's web service and then you can make an
instance of the web service (via an automatic proxy) and call the methods
you need.

-Scott

"Clark Simpson" <te************@ukonline.co.ukwrote in message
news:kR********************@fe2.news.blueyonder.co .uk...
Hi,

Apologies if this is such a simple query but if I have an ASP/.NET
Application which I normally access via www.foo.com/myapp on Machine A can
I access this application layer machine via a Presentation Layer Machine B
via www.mypresentationlayer.com/myapp? In a nutshell I want users to
access Machine B on the front end (web) but behind the scenes the actual
requests are routed to Machine A.

Anyone?

Thank

Mar 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: Jay Balapa | last post by:
Hello, Currently my application has three tiers- 1. Presentation Layer (Asp.Net / Win Forms/ Pocket PC UI.) This predominantly contains User Controls, Custom Controls and Win/Web Forms. I...
4
by: Jeff | last post by:
(.NET rookie alert) I am in the planning/design stage of converting a VB 6 application to a .NET web-based application so that our clients can simply use their browser (IE 6). Current...
4
by: Darren | last post by:
This is a theoretical question, meaning I don't have any specific code to show. On a large ASP.NET 1.1 application what is the best way to populate a forms data fields if you expect a large...
25
by: Dan Aldean | last post by:
Hello, I try to understand how the business and presentation layers would practically translate into programming reality. I read lots of articles about 3-tier, but none of them gave a practical...
13
by: mehdi_mousavi | last post by:
Hi folks, In an N-tier application, what is the possible values of N??? I'm not kidding, I just interviewed with a programmer today, and he started the "2-tier application" conversation. From then...
1
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
How many layers are in .net application development? I have seen the following layers mentioned in various resources: Presentation Layer Workflow Layer Business Layer Data Access Layer Data...
2
by: Bartholomew Simpson | last post by:
I wrote a desktop application in C++ a little while ago, and I will like to port it to a web application. Here are the details: 1). ALL business logic is held in ANSI C++ libraries (e.g. I...
1
by: Bartholomew Simpson | last post by:
I wrote a desktop application in C++ a little while ago, and I will like to port it to a web application. Here are the details: 1). ALL business logic is held in ANSI C++ libraries (e.g. I...
2
by: Canice | last post by:
I'm working on a web application where 90% of it is common 'product' code an the other 10% is customer specific. I want some method of separating the customer specific presentation, business and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.