magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Cannot get product list using the SOAP API

Open 3m0 opened this issue 10 years ago • 5 comments

I've been trying to get the product list using the following soap request:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:def="http://magento.upop.com.br/soap/default?services=catalogProductRepositoryV1">
   <soap:Header/>
   <soap:Body>
      <def:catalogProductRepositoryV1GetListRequest>
         <searchCriteria>
            <filterGroups>
            </filterGroups>
         </searchCriteria>
      </def:catalogProductRepositoryV1GetListRequest>
   </soap:Body>
</soap:Envelope>

However, all I get is the following response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Server</faultcode>
         <faultstring>SoapServer::SoapServer(): Invalid parameters</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It says that the parameters are invalid, but I don't see what is invalid, since the filterGroups can be empty.

3m0 avatar Jan 12 '16 17:01 3m0

this will works, filter on enityt_id > 0;

<searchCriteria><filterGroups><item><filters><item><field>entity_id</field><value>0</value><conditionType>gt</conditionType></item></filters></item></filterGroups></searchCriteria>

ericahoekerd avatar Feb 05 '16 08:02 ericahoekerd

Hi @3m0, have you resolved the issue?

maksek avatar May 09 '16 21:05 maksek

This seems to be an issue on 2.0.5 and maybe earlier versions. I am able to make SOAP API calls to my instance on the dev branch but cannot make the same call to my instance on 2.0.5.

nobuttsalex avatar May 18 '16 11:05 nobuttsalex

@3m0 is this issue still actual? If it is please describe detailed steps, actual result and expected result. If it is not, please close it.

veloraven avatar Nov 01 '16 14:11 veloraven

According to contributor guide, tickets without response for two weeks should be closed. If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.

veloraven avatar Nov 16 '16 07:11 veloraven