Export (0) Print
Expand All

Web Services IXmlSerializable Technology Sample

Download Sample

This sample shows how to use IXmlSerializable to control the serialization of custom types in ASP.NET Web Services.

To build the sample using Visual Studio

  1. Open Visual Studio 2005 and select New Web Site from the File menu.

  2. 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.

  3. Type IXmlSerializable as the name of the new Web service.

  4. In the Solution Explorer window, right-click the icon for Service.asmx and select Delete; repeat this step for the Service.asmx codebehind file.

  5. Right-click the project directory and select Add Existing Item. In the dialog, navigate to the Service subdirectory of the language-specific directory.

  6. Select Service.asmx, then repeat this step for the Service.asmx codebehind file.

  7. Open File Explorer and navigate to the directory that contains IXmlSerializable directory that you created in step 3 above.

  8. Right-click the icon for the IXmlSerializable directory and select Sharing and Security.

  9. In the Web Sharing tab, select Share this Folder, and confirm the default settings, including the name IXmlSerializable.

  10. Click OK.

To run the sample

  1. Open a browser window and select its address bar.

  2. Type http://localhost/IXmlSerializable/Service.asmx.

See Also



Build Date:

2012-08-02
Show:
© 2015 Microsoft