I am working on a project where I have 2 web services that need the same object. The 2 web services are on the same server, so they have the same classes on the internal server.
On the input side, my code consumes both web services and sees entities from both services as separate (in different namespaces), so I cannot use an object in both services.
Does anyone know a way to let this work in .NET 2.0?
I did this with my entity:
[XmlType(TypeName = "Class1", Namespace = "myNamespace")]
public class Class1
{
public int field;
}
Hoping that my IDE somehow “knows” that the class is the same for both web services, so that it will not create separate entities for both classes, but will fail.
Is it possible to do this with .NET 2.0 web services?
source
share