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.wsWe b.WebData.Test( 'nsProgram.wsWe b.Header)' has some invalid
arguments
Error 2 Argument '1': cannot convert from 'nsProgram.Data ' to
'nsProgram.wsWe b.Data'
Why is the wsWeb also included for all data types? How can I get around
that?
Thank you
Simon
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.wsWe b.WebData.Test( 'nsProgram.wsWe b.Header)' has some invalid
arguments
Error 2 Argument '1': cannot convert from 'nsProgram.Data ' to
'nsProgram.wsWe b.Data'
Why is the wsWeb also included for all data types? How can I get around
that?
Thank you
Simon
Comment