P
Picho
Hi all - posted this on the webservices newsgroups but its a bit slow there
so my appologiez in advance.
I have a webservice and a windows app.
both of them reference the same class library called WebServiceTest.Core
that defines a class called Class1.
the webservice exposes a method that looks like this:
[WebMethod]
public WebServiceTest.Core.Class1 GetClass1()
{
return new WebServiceTest.Core.Class1();
}
the windows app has a web reference to the webservice (and a reference to
the class library).
I want (and expected) the web-method to return a
WebServiceTest.Core.Class1 object but instead it returns a
WebServicesTest.Client.localhost.Class1 where:
WebServicesTest.Client is the windows app namespace
localhost is the name of the webreference to the web service
Class1 is some generated class that represents the return type.
my question is simple:
I need the original object. this is why both webservice and windows app
reference the shared assembly...
what can I do?
what am I doing wrong?
thanx,
Picho
so my appologiez in advance.
I have a webservice and a windows app.
both of them reference the same class library called WebServiceTest.Core
that defines a class called Class1.
the webservice exposes a method that looks like this:
[WebMethod]
public WebServiceTest.Core.Class1 GetClass1()
{
return new WebServiceTest.Core.Class1();
}
the windows app has a web reference to the webservice (and a reference to
the class library).
I want (and expected) the web-method to return a
WebServiceTest.Core.Class1 object but instead it returns a
WebServicesTest.Client.localhost.Class1 where:
WebServicesTest.Client is the windows app namespace
localhost is the name of the webreference to the web service
Class1 is some generated class that represents the return type.
my question is simple:
I need the original object. this is why both webservice and windows app
reference the shared assembly...
what can I do?
what am I doing wrong?
thanx,
Picho