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

Accessing ASP/.NET Application via Presentation Layer

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


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.