Re: Calling a method on a webservice
- From: bjornms@xxxxxxxxx
- Date: 29 Mar 2007 23:35:12 -0700
On Mar 29, 7:27 pm, "John Saunders" <john.saunders at trizetto.com>
wrote:
<bjor...@xxxxxxxxx> wrote in message
news:1175159988.174948.47330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...
But...:
My situation is different.
For some reason ( i'm not going to explain it here ), i do not use the
Window definition from LogService. Instead, on the client project i
also have a namespace House with a class Window, which is exactly
identical to that on the webservice LogService. To call the method Log
i do the following:
LogService.LogService logService = new LogService.LogService();
House.Window window = new House.Window();
logService.Log(window);
But... then i get some errors which i can not get rid of.
The errors i get:
1) The best overloaded method match for
'LogService.LogService.Log(LogService.Window)' has some invalid
arguments
2) Argument '1': cannot convert from House.Window to LogService.Window
And i also can't cast between the two classes.
My Question: Does somebody know how to fix those errors? Has it
something to do with Namespaces? I'm lost here.
The two classes are not related in any way that matters to C#. Of courseOk, they are not related for C#. For me they are. Actually, for me
you're going to get errors. You'd get the same result if you passed an
"int".
they are identical. So is there a way to typecast between the both? Or
do i have to create a copy constructor? Or is there another solution
to this problem?
.
- Follow-Ups:
- Re: Calling a method on a webservice
- From: Scott Holman
- Re: Calling a method on a webservice
- References:
- Calling a method on a webservice
- From: bjornms
- Re: Calling a method on a webservice
- From: John Saunders
- Calling a method on a webservice
- Prev by Date: Re: HTML-page clicked in Google don't get me to the website
- Next by Date: Re: HTML-page clicked in Google don't get me to the website
- Previous by thread: Re: Calling a method on a webservice
- Next by thread: Re: Calling a method on a webservice
- Index(es):
Relevant Pages
|