0
我正在嘗試使用soap API。答案包含:必須將排序順序指定爲升序的%1或降序的%2。我做錯了什麼?請求:Magento2 SOAP排序錯誤
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:def="http://xxx/Magento-2-0-2-0-ce/soap/default?services=salesOrderRepositoryV1">
<soap:Header/>
<soap:Body>
<def:salesOrderRepositoryV1GetListRequest>
<searchCriteria>
<filterGroups>
<!--Zero or more repetitions:-->
<item>
<!--Optional:-->
<filters>
<!--Zero or more repetitions:-->
<item>
<field>*</field>
<value>*</value>
<!--Optional:-->
<conditionType>?</conditionType>
</item>
</filters>
</item>
</filterGroups>
<!--Optional:-->
<sortOrders>
<!--Zero or more repetitions:-->
<item>
<field>Name</field>
<direction>%1</direction>
</item>
</sortOrders>
<!--Optional:-->
<pageSize>10</pageSize><currentPage>0</currentPage>
<!--Optional:-->
</searchCriteria>
</def:salesOrderRepositoryV1GetListRequest>
</soap:Body>
</soap:Envelope>
響應: ENV:發件人 排序順序已經被指定爲1%爲升序或%2降序排列。