Hi,
I'm writing a .net wcf service that can return result in the form the user expects. So a user when adding a web reference to the service can also provide an xsd containing the type definition for the return type he expects and the service will include the xsd in the wsdl so that the service proxy definition will include these type and user need not define them. In addition the service also needs to return the result as this user supplied type.
I'm using a XSLT to transform the output to a form similar to the serialized form of the type. Unfortunately this result is always received as a string on the client side. I also tried intercepting the soap reply and converting the string to XML in which case it is received as an XML. The return type defined for the method is a generic object. Is there any way to modify the soap response so that it returns the desired object instead.
Another way is to create a type and object instance at runtime but I dont want to use that due to its heavy performance and memory requirements.