生成的模式在构建期间发出警告

Generated schema gives warnings during build

我正在使用由 WCF-SQL 适配器生成的架构,用于 TypedPolling 从数据库中获取项目。返回多个项目并在标准 XMLReceive 管道中执行分批处理。

我使用以下配置来分离工作:

入站映射以 TypedPolling-TypedPollingResultSet0-TypedPollingResultSet0 节点为目标。

但是,我在构建过程中收到以下警告:

warning BEC1008: Node "TypedPollingResultSet0" - Body XPath property is invalid or references a node that may not exist in the schema.

warning BEC1008: Node "ArrayOfTypedPollingResultSet0" - Body XPath property is invalid or references a node that may not exist in the schema.

以上警告的解决方法是将模式根节点 Root Reference 属性 设置为 TypedPolling:

但是,当 运行:

时,我收到以下错误消息

There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "XML disassembler" Receive Port: "" URI: "" Reason: The document specification by message type "http://schemas.microsoft.com/sql/2008/05/TypedPolling/SchemaName#TypedPollingResultSet0" failed. Verify the schema deployed properly.

是否可以正确执行此方案,或者我是否必须在构建过程中忍受警告?

你所看到的基本上是正常的和意料之中的。这只是一个警告,它在 TypedPolling 技术上是正确的,它的祖先是 min=0。您可以安全地忽略它。您也会从 Mapper 收到许多类似的警告。

因为架构定义了多个消息,您将不得不撤消架构根节点。

同样,如果一切正常,请忽略警告。