Web Services IXmlSerializable Technology Sample
This sample shows how to use IXmlSerializable to control the serialization of custom types in ASP.NET Web Services.
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 File 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.
Open a browser window and select its address bar.