Re: Schema property promotion and envelop schema

Home Page Forums BizTalk 2004 – BizTalk 2010 Schema property promotion and envelop schema Re: Schema property promotion and envelop schema

#22437

Thanks greg for your reply. It seems like it’s because of the method that I used to created the envelop schema. I will give your method a try soon.

Anyhow, here were the envelop schema I created that didn’t promot the property properly:

  <?xml version=”1.0″ encoding=”utf-16″ ?>
<xs:annotation>
<xs:appinfo>
  <b:schemaInfo is_envelope=”yes root_reference=”RegisteredWaitExpirys xmlns:b=”http://schemas.microsoft.com/BizTalk/2003 />
  </xs:appinfo>
  </xs:annotation>
<xs:element name=”RegisteredWaitExpirys>
<xs:annotation>
<xs:appinfo>
  <b:recordInfo body_xpath=”/*[local-name()=’RegisteredWaitExpirys’ and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D />
  </xs:appinfo>
  </xs:annotation>
<xs:complexType>
<xs:sequence>
  <xs:any />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>

—————————————————————–

  <?xml version=”1.0″ encoding=”utf-16″ ?>
<xs:annotation>
<xs:appinfo>
  <b:namespace prefix=”ns0 uri=”http://ArielBPM.Biztalk.WaitManagement.Schemas.RegisterWaitPropertySchema location=”ArielBPM.Biztalk.WaitManagement.Schemas.RegisterWaitPropertySchema />
  </b:imports>
  </xs:appinfo>
  </xs:annotation>
<xs:element name=”RegisteredWaitExpiry type=”RegisteredWaitExpiry>
<xs:annotation>
<xs:appinfo>
<b:properties>
  <b:property name=”ns0:RegWaitID xpath=”/*[local-name()=’RegisteredWaitExpiry’ and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D/*%5Blocal-name()=’RegWaitID&#8217; and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D />
  <b:property distinguished=”true xpath=”/*[local-name()=’RegisteredWaitExpiry’ and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D/*%5Blocal-name()=’ClientCode&#8217; and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D />
  <b:property distinguished=”true xpath=”/*[local-name()=’RegisteredWaitExpiry’ and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D/*%5Blocal-name()=’RegWaitID&#8217; and namespace-uri()=’http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas’%5D />
  </b:properties>
  </xs:appinfo>
  </xs:annotation>
  </xs:element>
<xs:complexType name=”RegisteredWaitExpiry>
<xs:sequence>
  <xs:element name=”RegWaitID type=”xs:string />
  <xs:element name=”ClientCode type=”xs:string />
  </xs:sequence>
  </xs:complexType>
  </xs:schema>

 ————————————————————-

  Here is a sample data:

<

 

 

ns0:RegisteredWaitExpirys xmlns:ns0=”http://ArielBPM.Biztalk.WaitManagement.RegisterWaitSchemas&#8221; xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”&gt;<ns0:RegisteredWaitExpiry><ns0:RegWaitID>E1024902-6A70-4817-B281-7B3AB934E893</ns0:RegWaitID><ns0:ClientCode>BMS</ns0:ClientCode></ns0:RegisteredWaitExpiry></ns0:RegisteredWaitExpirys>