none
Error receiving answer from WCF service RRS feed

  • Question

  •  

    Hi,

     

    I'm testing call to WCF service using WCF Ws_Http adapter, and I'm receiving a strange error when getting the answer from the service:

     

    Event Type: Error
    Event Source: XLANG/s
    Event Category: None
    Event ID: 10034
    Date:  2/25/2008
    Time:  4:44:08 PM
    User:  N/A
    Computer: VAL-SBRIANT
    Description:
    Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'VendorIntegration_Orchestration.Orch_VendorProfile_VDB_Pivot(de057ced-abc0-85bf-54dd-5f58b19775e2)'.
    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: e2cd6c6f-3c1c-4d05-912b-6fe173e4a00f
    Shape name:
    ShapeId: 166f8fed-93e0-42d6-aced-cc6dd005c896
    Exception thrown from: segment 1, progress 17
    Inner exception: This is an unclosed string.
           
    Exception type: XPathException
    Source: System.Xml
    Target Site: System.String ScanString()
    The following is a stack trace that identifies the location where the exception occured

       at MS.Internal.Xml.XPath.XPathScanner.ScanString()
       at MS.Internal.Xml.XPath.XPathScanner.NextLex()
       at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseMethod(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParsePrimaryExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseFilterExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput)
       at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
       at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
       at System.Xml.XPath.XPathNavigator.Evaluate(String xpath)
       at Microsoft.XLANGs.Core.Part.XPathLoad(Part sourcePart, String xpath, Type dstType)
       at VendorIntegration_Orchestration.Orch_VendorProfile_Lionstore_Mappings.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

           

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    I don't understand what is causing this error, the schemas were generated using biztalk wizard Consume WCF and the service is working fine.

     

    Please help.

    Thanks,

    Stéphanie

    Monday, February 25, 2008 4:21 PM

All replies

  • It appears here that your soap response message is missing some elements/attributes, or is not correct according to what BizTalk is looking for.  There may be a problem with the wrapper, namespace or a number of other issues.

     

    Turn on tracing on the WCF Adapter to see what message you're consuming in as a response from the WCF service. To turn on tracing, open your BTSNTSSvc.exe.config with the WCF Configuration editor and goto diagnostics and turn on full message logging.

     

    This will allow you to see the actual response from the service and determine what's missing or in-correct according to what BizTalk is really looking for.

     

    HTH

     

    Friday, February 29, 2008 9:12 PM