473,322 Members | 1,671 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,322 software developers and data experts.

n-tier

I've just started to try to create my own n-tier project, and I am using
an xsd schema to represent all my tables, and then datatables and
queries to get at my data. The question I have is, where does XML and
web services fit in to this? Do any web services go in the data layer,
and can I treat my XML exactly the same as my data coming from a
database by creating an xsd and then data tables and queries to get at
the data?


*** Sent via Developersdex http://www.developersdex.com ***
Apr 5 '07 #1
3 1068
I think I see some confusion about XML here. It is best to think of XML in
the same way that you think of HTML or any programming language. It is
simply a language, a set of semantics for creating a large variety of
entities, thousands of types in fact. It's extremely useful for creating
various kinds of data structures, but it is not useful to think of these
data structures as XML, but as what they represent. An XSD is an XML schema.
It represents the data structure of a database. A Web Service is a service
that uses the SOAP protocol, which employs XML, to make method calls to a
web server, and get back results. XML is involved in the process, but there
isn't any need to get into the actual XML to use the Web Service, only to
use the Web Service technology to make method calls and get back data as a
result. The fact that the data is returned in an XML SOAP packet is not
important, any more than the fact that a web page is returned as an HTML
text document, unless you want to write your SOAP packets by hand.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Mike P" <mi*******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I've just started to try to create my own n-tier project, and I am using
an xsd schema to represent all my tables, and then datatables and
queries to get at my data. The question I have is, where does XML and
web services fit in to this? Do any web services go in the data layer,
and can I treat my XML exactly the same as my data coming from a
database by creating an xsd and then data tables and queries to get at
the data?


*** Sent via Developersdex http://www.developersdex.com ***

Apr 5 '07 #2

There is a layer that is what some call the "glue layer". This is the
objects (datasets is a good example) that all layers can see and use.

For example:

DataLayer creates a (strong) DataSet. Passes it up to the biz layer.
Biz Layer does a few mods on it, passes it up to the presentation layer.

You might say "Well then put it in the data layer"

Ahh. But the presentation layers should not know about nor reference the
data layer. Thus the conumdrum.
You read more at: ( and download sample code which I strongly recommend
going thru)
6/5/2006
Custom Objects and Tiered Development II // 2.0
or
5/24/2006
Custom Objects/Collections and Tiered Development
http://sholliday.spaces.live.com/blog/
I also reference a MS article at the bottom of the june blog entry.
BOAGag.asp
Read that article about 4 times thru. Then bookmark it. And when in doubt,
refer to that article again.

"Mike P" <mi*******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I've just started to try to create my own n-tier project, and I am using
an xsd schema to represent all my tables, and then datatables and
queries to get at my data. The question I have is, where does XML and
web services fit in to this? Do any web services go in the data layer,
and can I treat my XML exactly the same as my data coming from a
database by creating an xsd and then data tables and queries to get at
the data?


*** Sent via Developersdex http://www.developersdex.com ***

Apr 5 '07 #3
Hi,
you can introduce your web service in following way.

UI <- Business Layer <- Service Agent(who fetch data from database) <- Web Service <- Data Access <- Data Base

from Web service to Business layer your custom types (or say custom database entity object) will travel(which is in form of XML) (through XML Serialization).
---
Posted via DotNetSlackers.com
Apr 17 '07 #4

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

Similar topics

0
by: tstephan | last post by:
In the past we have used the classic nTier design with COM+, SQL Server and MFC. We are currently working on a new project with an opportunity to use .NET, ADO.NET, etc. One of the areas where I...
25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
5
by: Ryan Ternier | last post by:
I know how this should be done in regards to nTier, but it seems a bit inneficient, and was wondering if there's a solution that I havn't thought of yet. (I'm switching this loop to For Each Row...
1
by: Dnx | last post by:
hi i'm a very beginner of visual studio .net 2003 and aspx/vb.net i have to create a project with an architecture ntier i understand the concept but in practical, i don't know where to begin... ...
0
by: Jon Vaughan | last post by:
Hello, I have an NTIER Model written in VB.NET, at the moment is running as a client / server. Pushing a pulling data from the client to the server is fine and is done via webservice calls. But...
0
by: Jon Vaughan | last post by:
Hello, I have an NTIER Model written in VB.NET, at the moment is running as a client / server. Pushing a pulling data from the client to the server is fine and is done via webservice calls. But...
0
by: acnx | last post by:
I have an ntier application. I am trying to determine what is the best practice for handing errors in a datagrid. My datagrids are able to add, update and delete data. I am using a...
0
by: fra | last post by:
Ciao a tutti, è disponibile on line un esempio completo di progetto NTier da usare come base per lo sviluppo di una web application strutturata?? Intendo un esempio con gestione corretta dei vari...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.