Issue while receiving message from Service Bus Queue in BizTalk

Answered Issue while receiving message from Service Bus Queue in BizTalk

  • Thursday, September 20, 2012 7:44 AM
     
     

    Hi Team

    I have send the message to the service bus using .Net APis and try to receive it in BizTalk using WCF Custom adapter..

    I can see the message getting successfully posted to the queue. But while receiving i got the warning in Biztalk and message gets deleted from the queue.

    The adapter "WCF-Custom" raised an error message. Details "System.ServiceModel.CommunicationException: Unrecognized message version.

       at System.ServiceModel.Channels.ReceivedMessage.ReadStartEnvelope(XmlDictionaryReader reader)

       at System.ServiceModel.Channels.StreamedMessage..ctor(XmlDictionaryReader reader, Int32 maxSizeOfHeaders, MessageVersion desiredVersion)

    at System.ServiceModel.Channels.Message.CreateMessage(XmlDictionaryReader envelopeReader, Int32 maxSizeOfHeaders, MessageVersion version)

       at System.ServiceModel.Channels.BinaryMessageEncoderFactory.BinaryMessageEncoder.ReadMessage(Stream stream, Int32 maxSizeOfHeaders, String contentType)

       at Microsoft.ServiceBus.Messaging.Channels.ServiceBusInputChannelBase`1.ConvertToWcfMessage(BrokeredMessage brokeredMessage)

       at Microsoft.ServiceBus.Messaging.Channels.ServiceBusInputChannelBase`1.System.ServiceModel.Channels.IInputChannel.EndTryReceive(IAsyncResult result, Message& wcfMessage)

       at System.ServiceModel.Dispatcher.InputChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)

       at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)".

    Please help

    Thanks

    Deepak Sanghi


    Deepak Sanghi Happy Biztalking.........

    • Changed Type Deepak sanghi Thursday, September 20, 2012 10:11 AM
    •  

All Replies

  • Thursday, September 20, 2012 7:56 AM
     
     

    Hi,

    Could it be that a schema for the message is not deployed to BizTalk?

    Kent Weare has a great walkthrough in BizTalk Service Bus integration here: http://kentweare.blogspot.se

    You could check and see if you have followed all the steps.

    Regards,

    Alan

    


    Free EBook: "Windows Azure Service Bus Developer Guide" http://www.cloudcasts.net/devguide/

  • Thursday, September 20, 2012 8:42 AM
     
     

    Hi,

    Can you please change the type of the thread to question as it is a question than a discussion?



    Please mark the replies as Answered if they help and Vote if you found them helpful.

  • Thursday, September 20, 2012 8:45 AM
     
     
    Schema is deployed to the BizTalk.Even if the schema is not deployed, i should get the different error right?

    Deepak Sanghi Happy Biztalking.........

  • Thursday, September 20, 2012 10:12 AM
     
     

    I used the DataContratSerializer in .NET to send the message .. Now getting a different error:

    The adapter "WCF-Custom" raised an error message. Details "System.Xml.XmlException: The input source is not correctly formatted.

       at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)

       at System.Xml.XmlBufferReader.ReadValue(XmlBinaryNodeType nodeType, ValueHandle value)

       at System.Xml.XmlBinaryReader.ReadNode()

       at System.Xml.XmlBinaryReader.Read()

       at System.Xml.XmlBaseReader.MoveToContent()

       at System.ServiceModel.Channels.StreamedMessage..ctor(XmlDictionaryReader reader, Int32 maxSizeOfHeaders, MessageVersion desiredVersion)

    at System.ServiceModel.Channels.Message.CreateMessage(XmlDictionaryReader envelopeReader, Int32 maxSizeOfHeaders, MessageVersion version)

       at System.ServiceModel.Channels.BinaryMessageEncoderFactory.BinaryMessageEncoder.ReadMessage(Stream stream, Int32 maxSizeOfHeaders, String contentType)

       at Microsoft.ServiceBus.Messaging.Channels.ServiceBusInputChannelBase`1.ConvertToWcfMessage(BrokeredMessage brokeredMessage)

       at Microsoft.ServiceBus.Messaging.Channels.ServiceBusInputChannelBase`1.System.ServiceModel.Channels.IInputChannel.EndTryReceive(IAsyncResult result, Message& wcfMessage)

       at System.ServiceModel.Dispatcher.InputChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)

       at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)".


    Deepak Sanghi Happy Biztalking.........

  • Thursday, September 27, 2012 1:30 PM
    Moderator
     
     Answered

    If you write your own program, does it work? If this is a BizTalk specific issue, please ask the question on http://social.msdn.microsoft.com/Forums/en-US/biztalkr2adapters/threads.