I am creating (successfully) a dynamic webservice via ServiceDescription and ServiceDescriptionImporter.
BUT
how the heck do I intercept the deserialization (error:InvalidCast... can not convert to array) if I get some wrong xml-document from the web service host ? even reading the wrong xml-document is a mistery for me.
Is it possible to replace the generated SoapHttpClientProtocol ? Or the XmlSerializer ?
If so, HOW ?
I do not want to fail the whole request.
can someone help me out ?
well finally I was able to replace GetWebResponse via IL-Emitter.
Hard stuff though... The closest hint I got was here
If anyone is interessted, I can show more code. just drop a line.
thanks for passing by.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.