Serialization and Shared Interfaces



Hello:

I have a Serializable class that I pass to clients via web services.
In the web service, the class implements a shared interface. The
clients also use the interface. The web reference automatically
creates an class on the client, but it doesn't implement the
interface. This means that I have to implement another class that
implements the interface, which I build from the web service class. So
I always have to convert one to the other every time I call the web
service.

Is there are way to make the automatically generated class implement
the interface?

Thanks,
Travis
.



Relevant Pages

  • Re: Update Web Reference - at run time
    ... If the interface designer "breaks" ... If the breakage is in the programming ... When the creator of your web service adds function, ... because new clients might not work with old servers. ...
    (microsoft.public.dotnet.xml)
  • Re: Returning interfaces from web-services and remoting servers?
    ... You could certainly make it appear like the web service and remoting server ... use the same, well-defined interface. ... you've defined an IDocument interface for. ...
    (microsoft.public.dotnet.framework)
  • Re: .NET Best Practices for Exposing Biz Objects thru Web Services
    ... You can minimize the retyping by abstracting the business object interface ... Web service code-behind (as well as in the business object of course). ... > At the webservice layer you get to add in interface-centric function, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Serialization and Shared Interfaces
    ... In the web service, the class implements a shared interface. ... there is no information there that could be used to derive information ... implemented the way you want to the clients. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Implementing custom interfaces
    ... that derives from SoapHttpClientProtocol. ... implemented in this file will not have derived from your interface even if ... I have created a web service which implements a custom interface. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading