c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -


i trying debug c# code wrote consume web service. i'm hitting error when receiving response because content type of response doesn't match binding. exception snippet:

an exception of type 'system.servicemodel.protocolexception' occurred in mscorlib.dll not handled in user code   additional information: content type text/xml of response message not match content type of binding (application/soap+xml; charset=utf-8) 

the web service external can't change on end. know there lot of troubleshooting steps can take besides (and have tried many, it's not simple changing binding), there way view response message, or more info response, before hit exception? have custom message inspector written afterreceivereply method in it, exception occurs before method hit.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -