Problems with namespaces
- From: "Simon" <none@xxxxxxxx>
- Date: Wed, 2 Jan 2008 08:54:55 +0100
I have problem with namespaces. I have a program that consumes the web service and has for instance names space nsProgram. In this program I have defined several classes that I use for storing and handling internal information. Than I have web service, that also uses the same classes (I included the file as linked external resource). I included this web service as web reference and used name wsWeb.
When I am trying to call the web service with parameter that is my class (for instance Data) I can declare this Data class in my main program without any problem, but compiler reports an error:
Error 1 The best overloaded method match for 'nsProgram.wsWeb.WebData.Test('nsProgram.wsWeb.Header)' has some invalid arguments
Error 2 Argument '1': cannot convert from 'nsProgram.Data' to 'nsProgram.wsWeb.Data'
Why is the wsWeb also included for all data types? How can I get around that?
Thank you
Simon
.
- Follow-Ups:
- Re: Problems with namespaces
- From: John Saunders [MVP]
- RE: Problems with namespaces
- From: Steven Cheng[MSFT]
- Re: Problems with namespaces
- Prev by Date: Re: VS2008 - Calling web service from Windows service
- Next by Date: RE: Problems with namespaces
- Previous by thread: Re: Connection strings
- Next by thread: RE: Problems with namespaces
- Index(es):