Hi
I have 2 xsd files, and i want to use a if/else condition in the orchestration.
Reject
<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema xmlns="http://BizTalk_Server_Projecto_IE.Rejeitado" xmlns:b="http://schemas.microsoft.com/BizTalk/2003"targetNamespace="http://BizTalk_Server_Projecto_IE.Rejeitado" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<b:property distinguished="true" xpath="/*[local-name()='IdRejeicao' and namespace-uri()='http://BizTalk_Server_Projecto_IE.Rejeitado']/*[local-name()='Quantidade'
and namespace-uri()='']" />
</b:properties>
</xs:appinfo>
</xs:annotation>
<xs:element name="Codigo" type="xs:unsignedInt" />
<xs:element name="Quantidade" type="xs:unsignedInt" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
and Request
<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema xmlns="http://BizTalk_Server_Projecto_IE.Pedidos" xmlns:b="http://schemas.microsoft.com/BizTalk/2003"targetNamespace="http://BizTalk_Server_Projecto_IE.Pedidos" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<b:property distinguished="true" xpath="/*[local-name()='Carro' and namespace-uri()='http://BizTalk_Server_Projecto_IE.Pedidos']/*[local-name()='Quantidade'
and namespace-uri()='']" />
</b:properties>
</xs:appinfo>
</xs:annotation>
<xs:attribute name="Código" type="xs:string" />
<xs:attribute name="Cor" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:attribute name="Marca" type="xs:string" />
<xs:attribute name="Modelo" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="DataFabrico" type="xs:date" />
<xs:element name="DataRegisto" type="xs:date" />
<xs:element name="NumeroSerie" type="xs:string" />
<xs:element name="PreçoSaida" type="xs:double" />
<xs:element name="Quantidade" type="xs:string" />
<xs:element name="Stand" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Both of them are connected trought "Quantidade"
I want to use If/else to check if the Request is more than 1
How do i call a field "quantidade" from this reject xsd file ?
Thanks