Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i change the default namespace for web service

Status
Not open for further replies.

misterstick

Programmer
Apr 7, 2000
633
GB
the title says it all.

i have a web service whose code should be shared between solutions.

i've decided arbitrarily that these solutions should compile to a single DLL, so single project.

is there a way to set the default namespace on the code generated by visual studio for a web service to something other than the default one for the project?

many thanks,


mr s. <;)

 
right, accepted answer:

select "show hidden files" in solution view.
click on web service reference to show contained files.
click on Reference.map.
press f4 to go to the preferences page.
change the "Custom Tool Namespace" property to your desired namespace.
NB: this is the full namespace, so if the reference is called MyWebReference
and you want it to go in the Company.WebReferences namespace you need
to put Company.WebReferences.MyWebReference in this property.

yay!





mr s. <;)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top