Exposing dynamic proxy classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Symon

    #1

    Exposing dynamic proxy classes

    Hi everyone,

    I'm writing a webservice where I'm trying to expose a framework that
    contains a number of classes which have read-only properties. I want to
    expose data-transfer proxies of these objects with both getters and setters
    and so that all the properties are exposed via the webservice and want to
    copy all the data to the proxy before sending the data and only copy the data
    from the proxy where the underlying object's property isn't read-only when
    receiving.

    I can dynamically generate these proxy objects on Appliction start using
    reflection.emit so that if the underlying framework is updated I won't need
    to recode the proxies, however exposing them in the WSDL is proving to be a
    sticky point for me.

    The methods that return the objects will, in fact, return type 'object' and
    normally I would use the [XmlInclude] attribute to instruct the WSDL
    generator to add the appropriate types that could be returned by the method -
    is it possible to do something similar with objects created at runtime?

    Hoping someone out there can help out...

    Cheers,

    Symon.
Working...