Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

biztalk expression editor

$
0
0

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">
- <xs:element name="IdRejeicao">
- <xs:annotation>
- <xs:appinfo>
- <b:properties xmlns:b="http://schemas.microsoft.com/BizTalk/2003">
<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:complexType>
- <xs:sequence>
<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">
- <xs:element name="Carro">
- <xs:annotation>
- <xs:appinfo>
- <b:properties xmlns:b="http://schemas.microsoft.com/BizTalk/2003">
<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:complexType>
- <xs:sequence>
- <xs:element name="Estilo">
- <xs:complexType>
<xs:attribute name="Código" type="xs:string" />
<xs:attribute name="Cor" type="xs:string" />
</xs:complexType>
</xs:element>
- <xs:element name="Tipo">
- <xs:complexType>
<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


Viewing all articles
Browse latest Browse all 872

Trending Articles