Re: exposing Data Transfer objects through inheritance

From: Sami Vaaraniemi (samivanospam_at_pleasejippii.fi)
Date: 08/12/04


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

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlSerializationXmlIncludeAttributeClassTopic.asp

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



Relevant Pages

  • Re: I dont think I can do that !
    ... Regards, ... >> Hi DaveP, ... you can do the same on the proxy class for the web service. ... >> Pablo Cibraro. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Session Variables in WSE 3.0
    ... >> used to protect the communication during that session. ... >> Regards, ... >> Pablo Cibraro ... >>> I got many webmethods in my web service. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: How to expose a class in the Webservice.
    ... parameter in the WebMethods the web service and generate the Stubb class ... please be aware that even if your client referred to the same C# DLL ... The reson behind why i want to expose the classes with out using in the ...
    (microsoft.public.dotnet.framework.webservices)
  • calling java from DOTNET 2? how stable or painfull?
    ... (sorry but i posted this in a dotnet newsgroup as well becoue i ... so i need to write an RMI CLIENT to this thing, and expose it microsoft ... at first we thought to have it exposed as web service and consume this ... service via dotnet dll. ...
    (comp.lang.java.programmer)
  • calling java from DOTNET 2? how stable painfull?
    ... so i need to write an RMI CLIENT to this thing, and expose it microsoft ... at first we thought to have it exposed as web service and consume this ... service via dotnet dll. ... developers which canno parse XML. ...
    (microsoft.public.dotnet.framework)