I have a .NET class library called NorthwindLib and a class called Customer.
I have a web server that exposes a web method GetCustomer() and returns a
NorthwindLib.Customer object.
I want to consume this web service in another .NET application that
references NorthwindLib. When the web reference is created I want the
GetCustomer method to return an instance of NorthwindLib.Customer NOT a
generated ServiceProxy.Customer.
What is the easiest way to accomplish this?
From what I have found I could create a SchemaImporter object that maps the
types in the WSDL to a known type in my class library. However, this
solution appears to require a DLL to be built and installed/configured on
each developer machine. I would really like something that is a
project-level solution that doesn't require additional special machine
configuration. Is this possible?
Does WCF address this scenario more gracefully than ASP.NET 2.0 Web Services?