c# - Customizing WCF validation / providing more context when a SerializationException occurs -


i working on wcf service rest binding expected accessed systems not developed in .net , have no access c# data contract. result, entirely possible caller create valid xml cause serializationexception. instance, integer or date field might left blank or set null (i:nil="true").

i able return error message user additional context, telling them part of xml not deserialized. there clean way this? unfortunately, serializationexception provides no context whatsoever. can think of extracting schemas teh data conrtact , validating incoming xml schema before attempting deserialize. require me implement custom serialization. there better way?

an obvious caveat of schema approach leaves out json.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -