我收到了端口和简单的XML:
<root id = “1” name = “name” >
<childs>
<chilId id = “2” />
</childs>
</root>
BAM活动:
id – BD Integer
name – BD Text
childId – BD Integer
然后使用TPE消息字段绑定到活动字段。
id = root -> id
name = root -> name
childId = root.childs.child -> id
但是在DB中我得到空字段[childId]。 XSD:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://BizTalk_Test.InMsg" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://BizTalk_Test.InMsg" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="childs">
<xs:complexType>
<xs:sequence>
<xs:element name="child">
<xs:complexType>
<xs:attribute name="id" type="xs:int" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:integer" />
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:schema>
简单信息:
<root xmlns="http://BizTalk_Test.InMsg" id = "1" name = "Test 1" >
<childs>
<child id = "1" />
</childs>
</root>
DB中的结果:
id Name childId
1 Test 1 NULL