简体   繁体   English

如何在 AIF Soap UI 中使用 OR 创建请求

[英]How to create request with OR in AIF Soap UI

I have webservice AIF from Dynamics AX 2012 which return information from CustTable.我有来自 Dynamics AX 2012 的 webservice AIF,它从 CustTable 返回信息。 How can I write request that return me information about Customers with AccountNum "1111" or "2222" if they are exist?如果存在 AccountNum 为“1111”或“2222”的客户,我该如何写请求返回我的信息?

Something like this, doesn't work.这样的东西,行不通。

            <quer:CriteriaElement>
               <quer:DataSourceName>CustTable</quer:DataSourceName>
               <quer:FieldName>AccountNum</quer:FieldName>
               <quer:Operator>Equal</quer:Operator>
               <quer:Value1>1111,2222</quer:Value1>   
               <!--Optional:-->
               <quer:Value2></quer:Value2>
            </quer:CriteriaElement>
         </quer:QueryCriteria>

You can place more than one <CriteriaElement> tag in the <QueryCriteria> section.您可以在<QueryCriteria>部分中放置多个<CriteriaElement>标记。 The system uses Boolean OR logic to connect all the tags.系统使用布尔 OR 逻辑来连接所有标签。 This means that the record information returned in the outbound message comes from records that satisfy any one of the following conditions:这意味着出站消息中返回的记录信息来自满足以下任一条件的记录:

<quer:QueryCriteria>
    <quer:CriteriaElement>
        <quer:DataSourceName>CustTable</quer:DataSourceName>
        <quer:FieldName>AccountNum</quer:FieldName>
        <quer:Operator>Equal</quer:Operator>
        <quer:Value1>1111</quer:Value1>   
        <quer:Value2></quer:Value2>
    </quer:CriteriaElement>
    <quer:CriteriaElement>
        <quer:DataSourceName>CustTable</quer:DataSourceName>
        <quer:FieldName>AccountNum</quer:FieldName>
        <quer:Operator>Equal</quer:Operator>
        <quer:Value1>2222</quer:Value1>   
        <quer:Value2></quer:Value2>
    </quer:CriteriaElement>
</quer:QueryCriteria>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM