.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > please suggest XSD or XLINQ for my requirement
 

please suggest XSD or XLINQ for my requirement

Hi All,

Thanks a lot for all your support. Am requesting you all to suggest my current requirement:

My application is a Desktop Application going to develop on .net 3.5 framework. Which listens/sendsxml formated data to and fromWeb Serviceses.

Here my request you all to suggest below which option is better?

1. Based on request/response xmls, generate a XSD, corresponding class files and maintain serialized object

or
2. Using LINQ library

Thanks and regards,
nch srinivas.
nch
srinivas nch

There's a Linq-to-XSD (it's now supposed to be hosted on codeplex, see this; with some minimal effort you can get your hands on it). I would try it out and asses the following, based on your specificrequirements:
- forward/backward compatibility;
- performance.
I've seen more people doing OO-like than straight DOM-like approaches, so if the two above don't matter, I would go with Linq to XSD or xsd.exe from generated schema.

  • Edited byPetru Gardea Tuesday, September 08, 2009 11:58 PMfixed a typo
  •  
Petru Gardea
You should develop your web service using WCF. ASMX services are now considered to be "legacy technology", and they should not be used for new services.

John Saunders
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects
John Saunders

It depends on whether you like programming against business domain objects or XML documents containing business data. Each approach has different merits, although it often comes down to how you want to think about the client and the service (types or documents?).

You should be aware though that sometimes people get into trouble when they try to have the best of both worlds. That is, they want to model their data as XSD schemas but program against that data as if it were domain types. They use all sorts of fancy features of XSD schema and end up creating something that is far to complex for a serializer to know what to do with.

So regardless of whether you choose to start with types or schema, my advice is to keep the ultimate data model as simple as possible. Your developers and customers will thank you!
-steve


Brain.Save() -- http://hyperthink.net/blog
Steve Maine

You can use google to search for other answers

Custom Search

More Threads

• Web service proxy and 404 error
• How can I add web service in runtime?
• Error when Add web reference
• cuatomize wsdl
• xsdobjectgen and multiple XSD files
• Webservice and Trace
• Call Discover() asynchronously?
• How to extract pieces of classical music information from Amazon
• .net Framework on Mac OsX 10.4.1
• Exception Details: System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/ConvertPoun