How do I avoid web method parameters using proxy classes?
- by Alex Angas
I have a serializable POCO called DataUnification.ClientData.ClientInfo in a .NET class library project A.
It's used in a parameter for a web service defined in project B:
public XmlDocument CreateNewClient(ClientInfo ci, string system)
I now wish to call this web method from project C and use the original DataUnification.ClientData.ClientInfo type in the parameter. However due to the generated proxy class it has now become a different type: WebServices.ClientDataUnification.DataUnificationWebService.ClientInfo.
As far as .NET is concerned these are not the same types.
How can I get around this?