This sample shows how to use IXmlSerializable to control the serialization of custom types in ASP.NET Web Services.
For information about using the samples, see the following topics:
To build the sample using Visual Studio
- Open Visual Studio 2005 and select New Web Site from the File menu. 
- In the left pane of the New Web Site dialog, select your desired programming language, then from the right pane, select ASP.NET Web Service. 
- Type IXmlSerializable as the name of the new Web service. 
- In the Solution Explorer window, right-click the icon for Service.asmx and select Delete; repeat this step for the Service.asmx codebehind file. 
- Right-click the project directory and select Add Existing Item. In the dialog, navigate to the Service subdirectory of the language-specific directory. 
- Select Service.asmx, then repeat this step for the Service.asmx codebehind file. 
- Open Windows Explorer and navigate to the directory that contains IXmlSerializable directory that you created in step 3 above. 
- Right-click the icon for the IXmlSerializable directory and select Sharing and Security. 
- In the Web Sharing tab, select Share this Folder, and confirm the default settings, including the name IXmlSerializable. 
- Click OK. 
To run the sample
- Open a browser window and select its address bar. 
- Type https://localhost/IXmlSerializable/Service.asmx. 
See Also
Reference
IXmlSerializable
System.Xml.Serialization
XmlConvert
XmlQualifiedName
XmlReader
XmlSchema
XmlSchemaSet
XmlUrlResolver
XmlWriter