Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
ASP.NET 3.5 Application Architecture and Design

You're reading from   ASP.NET 3.5 Application Architecture and Design Build robust, scalable ASP.NET applications quickly and easily.

Arrow left icon
Product type Paperback
Published in Oct 2008
Publisher Packt
ISBN-13 9781847195500
Length 264 pages
Edition Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vivek Thakur Vivek Thakur
Author Profile Icon Vivek Thakur
Vivek Thakur
Arrow right icon
View More author details
Toc

Sample Project


Let's study a sample project using XML web services with VS 2008, and create a service interface for our Order Management System. We will perform the following:

  1. 1. Use the 5-tier solution we created in Chapter 4.

  2. 2. Create a service interface around it using XML web services in an SOA-like fashion.

  3. 3. Allow the GUI to talk to this interface instead of using the business layer directly.

Note

We can also use the sample code created in Chapter 5 using MVC. MVC and SOA complement each other, and one should not get confused with the question, "should I use MVC or SOA?" MVC has a purpose different from that of SOA, and can be used in any SOA implementation.

In this example, our main aim is to see how a service interface can provide another level of abstraction between the GUI and BL/DAL tiers, and enable our project to talk to multiple clients (or GUIs) using XML web services. Let's look at a simple example that illustrates how loose coupling can be implemented.

Building a Service Interface...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image