Changing the namespace for a Web Reference
Posted
by kdmurray
on Stack Overflow
See other posts from Stack Overflow
or by kdmurray
Published on 2010-03-14T06:09:56Z
Indexed on
2010/03/14
6:15 UTC
Read the original article
Hit count: 239
When I add a web reference to a project, it comes up with a default namespace of: com.wpdevs.myservice. This is the namespace I'd have expected it to use in the application.
When I add the using statement to the project, I have to add:
using MyProject.com.wpdevs.myservice;
I'd like to find a way to eliminate having to reference the project name in the using statement. The project I'm putting together now is destined to be converted into a VS Project template and having that rather strange reference in there, or even having a per-project reference, isn't something I'd like to have in the project.
© Stack Overflow or respective owner