In my project, I define many sevices. In these services , some method may
return object and these object may be parameter as other method. But in
client, these services are in different namespace, so the return object
can't be parameter. For example, server :
[DataContract]
public class A
{
...
}
[ServiceContract]
interface I1
{
[OperationContract]
A GetA();
}
[ServiceContract]
interface I2
{
[OperationContract]
void UseA(A a);
}
so, in client, there will have to class: client.I1.A, client.I1.A, and GetA
will return client.I1.A, UseA will accept client.I2.A.
How to solve this problem?