第2课 消息关联 通过Correlation我们可以把消息关联到某一个特殊的orchestration 实例,这样,当有多个实例运行的时候,我们依旧可以或许我们需要的信息。而不至于错乱。 1. 创建关联属性Schema 在B2BSchemas 工程里添加一个名字为 CorProperties.xsd 的Property Schema ,并把根节点名字改为PO_Num 2. 提升属性 a.用CorProperties.xsd 的PO_Num 提升CommonPO.POHeader.Number(Web References->localhost->reference.map->Reference) b. 提升CommonInvoice.InvoiceHeader.PONumber c. 提升CommonAdvancedShipNotice.Shipment.Order.PONumber 重新Build B2BSchema, 如果出现 "obj\Debug\B2BSchemas.dll" to "bin\Debug\B2BSchemas.dll". The process cannot access the file 'bin\Debug\B2BSchemas.dll' 这样的错误信息,从新启动VS即可。然后点B2BOrchestrations Reference 里的B2BSchema True -> False;False-> True 3. 给B2BOrchestrations工程下的B2BProcess.odx创建Correlation type 和 Correlation Set 4. 初始化 Correlation Set 在Send_CommonPO 里初始化Correlation Set 5. Follow Correlation set 分别设置Receive_ASN 和Receive_Invoice Follow PO_CorrelSet 这个时候Build B2BSolution 应该出现Build succeeded教程三第2课结束 update: 记得 Solution Explorer里要点击Show All FileBizTalk 2009 教程 修正版(十二) - 教程三:第3课
BizTalk
Add comment
Cancel reply to comment
Email: xhinker@gmail.com