ERROR when trying to consume wcf services RRS feed

  • Question


    Hi, i try to send data to a service that i consumed using wcf consume wizard 

    and i have this error 

    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'BizTalkServerKnetClient2.KNetEngineServerClient(bb819114-49f8-85eb-1de3-212d8ac732e6)'.

    The service instance will remain suspended until administratively resumed or terminated. 

    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.

    InstanceId: af8bbdce-652a-4d59-bff2-f64696219172

    Shape name: 


    Exception thrown from: segment -1, progress -1

    Inner exception: Received unexpected message type 'http://www.w3.org/2003/05/soap-envelope#Fault' does not match expected type 'http://tempuri.org/#SetObjectAttributeValueByObjectNameResponse'.


    Exception type: UnexpectedMessageTypeException

    Source: Microsoft.XLANGs.Engine

    Target Site: Void VerifyMessage(Microsoft.XLANGs.Core.Envelope, System.String, Microsoft.XLANGs.Core.Context, Microsoft.XLANGs.Core.OperationInfo)

    The following is a stack trace that identifies the location where the exception occured


       à Microsoft.XLANGs.Core.PortBinding.VerifyMessage(Envelope env, String typeName, Context cxt, OperationInfo op)

       à Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBinding.VerifyMessage(Envelope env, String typeName, Context cxt, OperationInfo op)

       à Microsoft.BizTalk.XLANGs.BTXEngine.BTXLogicalPortBinding.VerifyMessage(Envelope env, String typeName, Context cxt, OperationInfo op)

       à Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.VerifyTransport(Envelope env, Int32 operationId, Context ctx)

       à Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx, Envelope& env, Boolean topOnly)

       à Microsoft.XLANGs.Core.PortBase.GetMessageId(Subscription subscription, Segment currentSegment, Context cxt, Envelope& env, CachedObject location)

       à BizTalkServerKnetClient2.KNetEngineServerClient.segment3(StopConditions stopOn)

       à Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

    any idea please??????


    Tuesday, November 29, 2011 2:47 PM


  • Hi Emma,

    You are getting a fault message back from your WCF-Service. To consume this fault message see this blog post by Richard section Handling Exceptions.


    Steef-Jan Wiggers

    Ordina ICT B.V. | MVP & MCTS BizTalk Server 2010

    http://soa-thoughts.blogspot.com/ | @SteefJan

    If this answers your question please mark it accordingly

    Tuesday, November 29, 2011 9:16 PM