Re: exposing Data Transfer objects through inheritance
From: Sami Vaaraniemi (samivanospam_at_pleasejippii.fi)
Date: 08/12/04
- Next message: Trebek: "Re: Can't Bind Datagrid with Dataset returned by WebService"
- Previous message: QuocSI: "Can't Bind Datagrid with Dataset returned by WebService"
- In reply to: Balvinder Singh: "exposing Data Transfer objects through inheritance"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 12:15:32 +0300
You need to list parameter types that are not statically known with the
XmlInclude attribute. See
for an example of how to do this.
Regards,
Sami
"Balvinder Singh" <bsabharwal@rediffmail.com> wrote in message
news:9d945c07.0408110141.128f6188@posting.google.com...
> Hi,
>
> I'm developing a web service in which i have to expose lot of buisness
> entities. These entities are implemented as Data Transfer objects to
> be exposed to clients. i have defined a base class IData for all these
> business entity classes and the web method exposed in web service is
> [WebMethod]
> public boolean submit(IData d)
> {
> //do processing
> return true;
> }
> When i build it in VS.Net, the wsdl generated contains definition for
> IData only but does not contain definition for business entities, so
> the clients cannot see there definition in proxy generated.
> When i add another web method taking as input buisness entity object
> say Recording
> [WebMethod]
> public boolean submitRecordingData(Recording r)
> {
> //do processing
> return true;
> }
> then Recording class becomes visible at client side.
> Can anyone tell me how i can expose all business entity classes from
> web service while exposing single web method "submit" which takes as
> input IData.
> Any help will be greatly appreciated.
>
> thanks & regards
> Balvinder
- Next message: Trebek: "Re: Can't Bind Datagrid with Dataset returned by WebService"
- Previous message: QuocSI: "Can't Bind Datagrid with Dataset returned by WebService"
- In reply to: Balvinder Singh: "exposing Data Transfer objects through inheritance"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|