exposing Data Transfer objects through inheritance

B

Balvinder Singh

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top