Azure Service Bus Queue gives control characters i

2019-08-16 23:18发布

问题:

I am using BizTalk Server SB-Messaging adapter to retreive messages from Azure Service Bus Queue. I have successfully managed to send message to queue myself (using same adapter), and retreive message from queue and do further processing.

Problem arises when a 3rd party software supplier is sending messages to the queue, and for BizTalk Server to retreive and process message. I then receive the following additional "header"-information and control characters in the beginning of the message:

In text: @ACKstringBShttp://schemas.microsoft.com/2003/10/Serialization/?$SOH

Seems like there is some sort of enveloped message, including headers to handle ACKnowledgement of the message to the queue.

SB-Messaging adapter gave following initial error message:

"The WCF service host at address has faulted and as a result no more messages can be received on the corresponding receive location. To fix the issue, BizTalk Server will automatically attempt to restart the service host."

And, another error message:

"No Disassemble stage components can recognize the data."

Did anyone hit this problem before, and, what can be the cause of the problem? Can character encoding be a possible cause of this problem?

回答1:

Here comes the feedback!

Turned out 3rd party software supplier had a setting to send message as stream, instead of string. Turns out it is a .Net application using BrokeredMessage object. Using string makes message serialized, and meta-data is added to the message. Using stream, no such serialization takes place, and message is kept untouched.

So, problem was using string and automatic serialization when sending to Service Bus Queue.