473,396 Members | 2,004 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,396 software developers and data experts.

Classes Vs XmlDataDocument

Hi,

I have a set of nested object classes that now i have to
serialize/deserialize to make webservice calls. I was thinking wouldn't it be
better to use an XML Data document instead of using classes so i can
import/export xml with ease and also i can update my schema without
compiling the code. What advantages/disadvantages do you guys see in taking
this approach. Any kind of suggestions are welcome.

Thanks!
Nov 12 '05 #1
2 1623
Vish wrote:
I have a set of nested object classes that now i have to
serialize/deserialize to make webservice calls. I was thinking wouldn't it
be better to use an XML Data document instead of using classes so i can
import/export xml with ease and also i can update my schema without
compiling the code.


That's an interesting thought. It is true that there is nothing inherently
object-oriented about Web services. You can implement them in any fashion
whatsoever.

But what exactly do you see to be the advantage of being able to change the
schema (I assume you are talking about the XSD schema in the WSDL that
describes your Web service) without having to compile code? In general, we
strive to create contract and schema (WSDL + XSD) that are relatively stable
and unchanging over time. Everytime the contract or schema change, the
clients of the service have to change, and that also raises the thorny
problem of versioning Web services. So why is changing the schema easily a
good thing?

Cheers,
Stuart Celarier, Fern Creek
Nov 12 '05 #2
I was talking about the schema to be sent in the body of the SOAP Message. If
the carrier is an xmldatadocument it can be easily serialized and will
provide an xml and a datataset view of the data. Currently i have the data to
be sent as nested set of objects that i need to serialize and at the time of
deserialization provide a schema so it can be loaded in my object once
received. I hope i am making myself clear. Anybody from Microsoft have a
suggestion ? Thanks!

"Stuart Celarier" wrote:
Vish wrote:
I have a set of nested object classes that now i have to
serialize/deserialize to make webservice calls. I was thinking wouldn't it
be better to use an XML Data document instead of using classes so i can
import/export xml with ease and also i can update my schema without
compiling the code.


That's an interesting thought. It is true that there is nothing inherently
object-oriented about Web services. You can implement them in any fashion
whatsoever.

But what exactly do you see to be the advantage of being able to change the
schema (I assume you are talking about the XSD schema in the WSDL that
describes your Web service) without having to compile code? In general, we
strive to create contract and schema (WSDL + XSD) that are relatively stable
and unchanging over time. Everytime the contract or schema change, the
clients of the service have to change, and that also raises the thorny
problem of versioning Web services. So why is changing the schema easily a
good thing?

Cheers,
Stuart Celarier, Fern Creek

Nov 12 '05 #3

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

Similar topics

1
by: Mathew Relick | last post by:
I'm relatively new to this sort of thing, so forgive me if this is completely off base, but I'm having a problem getting the XMLDataDocument to do what I need it to. I have a small test...
1
by: Peter Feakins | last post by:
We're building some web services that are primarily being consumed by a .net application. We're returning datasets for that purpose. We're also have to provide access to these services to classic...
0
by: Raj | last post by:
hi, I associate dataset with one xmldatadocument? how can I disassociate from xmldatadocument, so I can associate with another xmldatadocument. and, how can I remove xmldatadocument from...
0
by: gilly3 | last post by:
Reposting to a more relevant group. I am passing a generic dataset into a new XMLDataDocument and then parsing the XML with XSLT. The idea being that I can parse any dataset with the same xslt,...
2
by: James Ankrom | last post by:
Why does this fail? Dim relResources As New Data.DataRelation("Application_Resources", ..Tables("User_Applications").Columns("Application_id"),...
1
by: Petr Felzmann | last post by:
Hi, why the duration of call the CloneNode(true) is steadily increasing? First call is 0.004s and 100th is 0.16s! XML file is 5kB only, no disk swap. XmlDataDocument xml = new...
0
by: Steve | last post by:
I have a dataset. I fill it with two recordsets from SQL queries. Tables are called tblPlanFYSpendingStage, tblSpendingStage.
4
by: Adrian Meyer | last post by:
Hi, On the server I code the following web service: ))] public XmlDataDocument GetTypedXmlDataDocument() { sqlDataAdapter1.Fill(typedDataSet1); XmlDataDocument dataDoc
1
by: JD | last post by:
I have a DataGridView with a DataSet as DataSource. The user can update the contents of the DataGridView, and then click on a Save button to save the data to an XML file. When they click on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...

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.