How to: Rename a Project Web Reference
Note
This topic pertains to a legacy technology. XML Web services and XML Web service clients should now be created using Windows Communication Foundation.
The name assigned to a Web reference is also its programmatic namespace. The namespace can be changed to suit your needs. You can change the name of the Web reference to any string expression that is meaningful to its function. For example, you could change the name of a Web reference that handles account totals to AccountTotal.
To rename a Web reference in a project
In Solution Explorer, expand your project's App_WebReferences folder, and then select the node for the reference you want to rename.
Right-click the reference and click Rename, and enter a new name.
Note
If you have used the old name elsewhere in your project code, remember to change each occurrence to the new name.
See Also
Tasks
How to: Add and Remove Web References
How to: Update a Project Web Reference