Using XML & ASP.NET (or what do I *need* to know?)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




I'm trying to learn an acceptable way to marshal complex data between an ASP.NET web service and an ASP.NET web client. Initially, it will be enough for the client to display the data from the service, but eventually, I'll have to write a client that will allow for modification of the data and return it to the service.


I gather from bits and pieces that I'm reading that I can convert the data into an XML document and it is this document which is sent to the client over an HTTP connection. Is this assumption correct?

If so, what's the best way to convert the data into XML? Specifically, I have multiple instances of a class managed by a linked list.

I've been fooling around with XmlSerializer (System.xml.serialization), since that seems as if it will convert the class instances to formatted XML. On the other hand, the docs for XmlSerializer only talk about writing the XML to a file, which is not what I want to do.

Can someone put me on the right track please? (Ultimately, do I want to write a web method in the service which returns an XML document?

TIA.
.



Relevant Pages

  • Re: how to export view to display - xml with specific xsd?
    ... Also xp_cmdshell runs on the server, ... SQL Server to a file and open the file in Word on the client machine. ... It opens up a ... XML to be generated in a Word-specific XML format. ...
    (microsoft.public.sqlserver.xml)
  • Re: receive xml
    ... into a single element of a POST, but that's only ADDING complexity, not ... And if you want to go the pure XML route, ... the client will already have to communicate ... using HTTP GET, so am I making things easier by now making them accept ...
    (comp.lang.php)
  • Re: Access 2010 with Sharepoint 2010
    ... I upload data with linefeeds in it to a client website all the time. ... but all of the web services and soap protocol's MOSTLY use xml. ... access application on their two computers, but I am hosting the data on SQL ...
    (comp.databases.ms-access)
  • Re: Regarding IO, OO-design and Encapsulation
    ... Thus even though a client is accessing a generalized property, ... Question-types from an XML file and be able to output these to an XML ... The problem is that one needs to know the specific subclass the instance must belong to in order to create it. ... If the Client passes the Bystander instance to Service when Client invokes the Service's behavior, Client is essentially instantiating the R2 relationship temporarily. ...
    (comp.object)
  • Re: Site Discovery
    ... We don't recommend you customize the information on the WINS server. ... XML document could not be customized. ... change the site of a client, you may add the client to the site boundary of ... | Can you edit this XML doc? ...
    (microsoft.public.sms.admin)