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.Web service_A ws_A = new MyNamespace.Web service_A();
MyNamespace.Web Service_B ws_B = new MyNamespace.Web Service_B();
MyNamespace.Cla ss1 class1 = ws_A.GetClass1( );
ws_B.Consume(cl ass1);
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.W ebservice_A ws_A = new MyNamespace_A.W ebservice_A();
MyNamespace_B.W ebService_B ws_B = new MyNamespace_B.W ebService_B();
MyNamespace_A.C lass1 class1 = ws_A.GetClass1( );
ws_B.Consume(cl ass1);
I get an error saying I cannot convert from MyNamespace_A.C lass1 to
MyNamespace_B.C lass1
Can anyone help me?
Thanks