cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP via Curl

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

SOAP via Curl

Hello,

 

we try to connect Magento API via cURL and SOAP. But receiving some issues. Have anyone experience with this?

 

E.g.: 

curl -H "Content-Type: text/xml;charset=UTF-8;Authorization:
Bearer 5s4we4##3d3h" -d "@stock.txt" "https://URL.com/soap?wsdl&services=catalogInventoryStockRegistryV1"
curl: (6) Could not resolve host: text
curl: (6) Could not resolve host: Bearer
curl: (3) Failed to convert 5s4we4##3d3h" to ACE;

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" >
<env:Body>
<env:Fault>
<env:Code>
<env:Value>envSmiley Frustratedender</env:Value>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Not allowed parameters: &lt;soap:Envelope_xm
lns:soap. Please use only wsdl and services.</env:Text>
</env:Reason>

</env:Fault>
</env:Body>
</env:Envelope>

 

Stock.txt:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:kle="https://URL.com?services=integrationAdminTokenServiceV1%2CcatalogInventoryStockRegistryV1%2CsalesOrderRepositoryV1%2CsalesInvoiceOrderV1%2CsalesShipOrderV1">
<soap:Header/>
<soap:Body>
<kle:catalogInventoryStockRegistryV1UpdateStockItemBySkuRequest>
<productSku>MIH8515000020P00096</productSku>
<stockItem>
<qty>3</qty>
</stockItem>
</kle:catalogInventoryStockRegistryV1UpdateStockItemBySkuRequest>
</soap:Body>
</soap:Envelope>

 

Thank you for your support.

Mike