How to: Edit Operation and Parameter Types for ASP.NET Web Services 

In Application Designer, you can modify the types referenced by the operations and parameters of Web service provider endpoints on ASP.NET applications. You can modify these references using the Web Service Details window or Properties window at any time. Once the application is implemented, you can also modify references to these types in code through the Web service class file or class diagram (.cd) file, if one exists, in the application project.

Note

If the operations and parameters have references to user-defined types, you can edit the definitions for those types through their class files or class diagram files if they exist in the application project. If these files do not exist, you can add them to the application project after the application has been implemented. For more information, see How to: Define Operation and Parameter Types for ASP.NET Web Services.

To change a reference to an operation or parameter type using the Web Service Details window

  1. On the diagram, select the Web service provider endpoint whose operations or parameters you want to edit.

  2. On the Diagram menu, choose Define Operations.

    Tip

    You can also right-click the endpoint to choose Define Operations.

    The Web Service Details window appears.

  3. In the Web Service Details window, modify the name of the type on the appropriate operation or parameter row.

To change a reference to an operation or parameter type from the Web service class file or class diagram

  1. On the diagram, select the Web service provider endpoint whose operations and parameters you want to edit.

  2. On the Diagram menu, point to Implementation, and choose one of the following:

    • View Code to open the Web service class file.

      Tip

      You can also right-click the endpoint to choose View Code.

      The Web service class file opens.

    • View In Class Diagram - <WebServiceName> to open the Web service class diagram.

      Note

      A new class diagram is created if one has not been previously saved. Otherwise, the previously saved class diagram is opened.

  3. In the Web service class file or from the class diagram, modify the name of the type referenced by the operation or parameter that you want.

    Tip

    You can also open these files from the corresponding application project in Solution Explorer.

To edit the definition of an operation or parameter type

  1. In the Web Service Details window, right-click the operation or parameter row that references the type whose definition you want to edit.

  2. Choose one of the following:

    • View Code - <TypeName> to open the class file for the type, if the file exists in the project.

    • View In Class Diagram - <TypeName> to create or open an existing class diagram for the type.

      Note

      Class Designer creates a class diagram if one has not been previously saved. Otherwise, it opens the previously saved class diagram.

  3. In the class file or on the class diagram, make the changes you want to the type definition.

For more information about class diagrams, see Designing and Viewing Classes and Types.

See Also

Reference

Keyboard Shortcuts for the Web Service Details Window

Concepts

Overview of ASP.NET Applications on Application Diagrams

Other Resources

Defining Operations for ASP.NET Web Services