从字节[]反序列化为字符串

时间:2018-10-22 12:20:13

标签: .net xml serialization soap encoding

我收到AzureServiceBus消息对象,需要反序列化

 _queueClient.RegisterMessageHandler(async (msg, token) =>
        {

            var text = Encoding.UTF8.GetString(msg.Body);



        }, 
        msgOptions);

但是我收到类似

“ p \ b信封 \ t \ u0001s 'http://www.w3.org/2003/05/soap-envelope \ t \ u0001a $ http://www.w3.org/2005/08/addressingp \ u0006Header ^ \ u0006Action8 \ u000emust了解 �\ u000f来自test \ u0001 \ u0001 \ u0001的Hello''

已经尝试了UTF16 / 7,BinaryFromatter。没有帮助

0 个答案:

没有答案
相关问题