referencing web service on the same web project

Z

z f

I have an asp.net web project that includes a web service.
i need to reference this web service from the same project.
the idea is that the project can be located on different servers and needs
to call a web service on other servers to get remote data.
but after making the web reference the compiler creates a namespace with the
name of the webservice and gives error.
error BC30175: namespace 'ProjWS' and class 'ProjWS', declared in
'D:\Projects\svc\ProjWS.asmx.vb', conflict in namespace 'Proj'.

can this be achived using any change in the settings?

thanks.
 
J

Javier G. Lozano

When you add web reference, you can change the name of the namespace by
setting a different name in the "Web reference name" of the wizard.
 
Z

z f

worked it out by changing the namespace of the webservice implementation,
and the automatically code generated stayed with the web service name.

thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top