如何访问BizTalk多部分消息中的可分辨字段

时间:2017-01-11 16:04:49

标签: biztalk

我有一个带有此架构的多部分消息(为简洁起见而编辑):

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://MyCompany/Schemas/Canonical/Property/1.0" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://MyCompany/Schemas/Canonical/Property/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Property">
    <xs:annotation>
      <xs:appinfo>
        <b:properties>
          <b:property distinguished="true" xpath="/*[local-name()='Property' and namespace-uri()='http://MyCompany/Schemas/Canonical/Property/1.0']/*[local-name()='UPRN' and namespace-uri()='']" />
        </b:properties>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="1" name="Addresses">
          <xs:complexType />
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" name="UPRN" type="xs:string" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

鉴于Orchestration中的消息名称是MyMessage,我如何在BizTalk表达式编辑器中访问标识字段“UPRN”的值。

当我尝试点符号时,我从IntilliSense获得的是MyMessage.Property

1 个答案:

答案 0 :(得分:-1)

应该是:

MessageName.PartName.RootNode.ElememtName [...]。字段名