【问题标题】:Response Error form sql adapter in Biztalk 2013Biztalk 2013 中的 sql 适配器响应错误
【发布时间】:2014-04-17 19:26:34
【问题描述】:

我创建了一个 sql 适配器来使用 biztalk 2013 将数据插入到 sql server 2008。但我一直收到此错误。当我将包含我的记录的文件放入文件夹时,它将被插入到 sql 中,重复该过程和文件作为 WIP 文件保留在文件夹中并被挂起。如果我重新启动 biztalk 服务,并检查 sql server,我的记录就在那里。不确定是什么原因造成的。

    Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'GMLSQLInsert_Final.Orchestration_1(53af03a7-0a27-d8cc-631f-8bbb55d960f3)'.
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: 241a55bb-b5e4-499c-a495-477b973fad3f
Shape name: 
ShapeId: 
Exception thrown from: segment -1, progress -1
Inner exception: Received unexpected message type 'HTTP://InsertSQLData#MyResponse' does not match expected type 'http://InsertSQLData#MyResponse'.

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

   at Microsoft.XLANGs.Core.PortBinding.VerifyM

这是 XSD

<?xml version="1.0" encoding="utf-16" ?> 
- <xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:tns="http://InsertSQLData" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://InsertSQLData" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="MyRequest">
- <xs:complexType>
- <xs:sequence>
- <xs:element xmlns:updategram="urn:schemas-microsoft-com:xml-updategram" updategram:Prefix="updg" minOccurs="1" maxOccurs="unbounded" name="sync">
- <xs:complexType>
- <xs:sequence>
- <xs:element updategram:Prefix="updg" minOccurs="0" maxOccurs="unbounded" name="after">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="testTable">
- <xs:complexType>
  <xs:attribute name="FirstName" type="xs:string" /> 
  <xs:attribute name="Lastname" type="xs:string" /> 
  <xs:attribute name="city" type="xs:string" /> 
  <xs:attribute name="address" type="xs:string" /> 
  <xs:attribute name="postalCode" type="xs:string" /> 
  </xs:complexType>
  </xs:element>
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="MyResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element name="Success" type="xs:anyType" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>

响应中的消息

<ns:MyResponse xmlns:ns="HTTP://InsertSQLData"><ns:Success /></ns:MyResponse>

【问题讨论】:

    标签: sql-server biztalk


    【解决方案1】:

    该错误不是来自 WCF SQL 适配器。该错误由编排引擎引发,因为接收到的消息类型与端口上配置的不匹配。

    您需要找出响应命名空间中 HTTP 是 CAPS 的原因。我知道没有 BizTalk 组件可以做到这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 2010-10-06
      相关资源
      最近更新 更多