D
djmc
Hi,
Say I have a business object Person and two have created two web services,
MyWebServices and MySSLWebServices. The first contains web services that do
not need to be secured, and the second is used for retrieving private data
over an SSL connection.
For instance, MyWebServices contains a GetPerson method that returns a
Person object with all of its sensitive information stripped (maybe the
Address property is taken out). However, the MySSLWebServices also has a
GetPerson method, but it returns Person objects in their full glory
including a populated Address property and other sensitive information.
I am consuming these two web services in another .NET application and the
web services proxy has created two Person objects. One is located at
MyWebServices.Person and the other at MySSLWebServices.Person. I have a
control that is for displaying Person objects but MyWebServices.Person and
MySSLWebServices.Person are not the same type. Rather than create a contol
for each of these, is there a way I can cast the object or use an interface
to somehow let my control display whichever Person object is passed in?
Thanks for any assistance!
-DJ
Say I have a business object Person and two have created two web services,
MyWebServices and MySSLWebServices. The first contains web services that do
not need to be secured, and the second is used for retrieving private data
over an SSL connection.
For instance, MyWebServices contains a GetPerson method that returns a
Person object with all of its sensitive information stripped (maybe the
Address property is taken out). However, the MySSLWebServices also has a
GetPerson method, but it returns Person objects in their full glory
including a populated Address property and other sensitive information.
I am consuming these two web services in another .NET application and the
web services proxy has created two Person objects. One is located at
MyWebServices.Person and the other at MySSLWebServices.Person. I have a
control that is for displaying Person objects but MyWebServices.Person and
MySSLWebServices.Person are not the same type. Rather than create a contol
for each of these, is there a way I can cast the object or use an interface
to somehow let my control display whichever Person object is passed in?
Thanks for any assistance!
-DJ