How to: Edit Operation and Parameter Types for ASP.NET Web Services
In Application Designer and System Designer, you can change the types referenced by the operations and parameters for a Web service provider endpoint on an ASP.NET application. You can change these types by using the Web Service Details window or the Properties window. After you implement the application, you can change these types in code by opening the Web service class file or the class diagram (.cd) file, if one exists, in the application project.
Note
If the operations and parameters reference user-defined types, you can edit the definitions for these types by opening their class files or class diagram files, if they exist. 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
On the diagram, select the Web service provider endpoint whose operations or parameters you want to edit.
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.
In the Web Service Details window, change 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
On the diagram, select the Web service provider endpoint whose operations and parameters you want to edit.
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.
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
In the Web Service Details window, right-click the operation or parameter row that references the type whose definition you want to edit.
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.
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
Concepts
Overview of ASP.NET Applications on Application Diagrams
Reference
Keyboard Shortcuts for the Web Service Details Window