WCF - adapter, problem handling response message from external web service


hi!

we're experiencing problems handle response message web service call biztalk wcf - basichttp adapter.

the error message is:

system.servicemodel.protocolexception: there problem xml received network. see inner exception more details. ---> system.xml.xmlexception: encoding in declaration 'iso-8859-1' not match encoding of document 'utf-8'.     @ system.xml.encodingstreamwrapper.throwencodingmismatch(string declenc, string docenc)     @ system.xml.encodingstreamwrapper.checkutf8declarationencoding(byte[] buffer, int32 offset, int32 count, supportedencoding e, supportedencoding expectedenc)     @ system.xml.encodingstreamwrapper.processbuffer(byte[] buffer, int32 offset, int32 count, encoding encoding)     @ system.xml.xmlutf8textreader.setinput(byte[] buffer, int32 offset, int32 count, encoding encoding, xmldictionaryreaderquotas quotas, onxmldictionaryreaderclose onclose)     @ system.xml.xmldictionaryreader.createtextreader(byte[] buffer, int32 offset, int32 count, encoding encoding, xmldictionaryreaderquotas quotas, onxmldictionaryreaderclose onclose)     @ system.serv

the message never makes pipeline component. can read error message there's som missmatch between declaration of encoding and the actual encoding of message. works ok in soap ui when using wcf-adapter we can't fetch response.

anybody encountered error before or have ideas could use solve it?

thanks!

best regards /jakob

the key here coming across wire.  if byte order mark included , "ef bb bf" message encoded in utf-8.  if xml declaration set iso-8859-1, response mismatch, indicates bug in responder.  fact working in soap ui means soap ui not check match between bom encoding , encoding specified in  xml declaration.

david downing... if answers question, please mark answer. if post helpful, please vote helpful.



BizTalk Server  >  BizTalk Server Adapters and Adapter Pack



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'