How do I avoid web method parameters using proxy classes?

Posted by Alex Angas on Stack Overflow See other posts from Stack Overflow or by Alex Angas
Published on 2010-05-13T01:39:50Z Indexed on 2010/05/13 1:44 UTC
Read the original article Hit count: 304

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about webmethods