ralf.w.
ralf.w.

Reputation: 1696

how can I catch the deserialization error or xml from a dynamic soap-web-service?

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 ?

Upvotes: 0

Views: 462

Answers (1)

ralf.w.
ralf.w.

Reputation: 1696

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.

Upvotes: 1

Related Questions