I have created a website using .NET Framework 2.0 with some web services that
share the same object model (defined in the App_Code).
When adding web references to these web services from a web application,
they assume the same namespace and I have no problem passing objects between
them.
Example:
MyNamespace.Webservice_A ws_A = new MyNamespace.Webservice_A();
MyNamespace.WebService_B ws_B = new MyNamespace.WebService_B();
MyNamespace.Class1 class1 = ws_A.GetClass1();
ws_B.Consume(class1);
The problem appeard when I created a windows application and tried to do the
same. Now, I cannot associate both web services with the same namespace.
Example in the windows application:
MyNamespace_A.Webservice_A ws_A = new MyNamespace_A.Webservice_A();
MyNamespace_B.WebService_B ws_B = new MyNamespace_B.WebService_B();
MyNamespace_A.Class1 class1 = ws_A.GetClass1();
ws_B.Consume(class1);
I get an error saying I cannot convert from MyNamespace_A.Class1 to
MyNamespace_B.Class1
Can anyone help me?
Thanks