I'm in need of a method of updating the inventory of a particular stock item via the SOAP API, I can perform a "Get" using the catalogInventoryStockRegistryV1GetStockStatusBySku but there doesn't appear to be a "Post" or a set.
When I look at the REST equivelant here http://devdocs.magento.com/swagger/index.html#/ there is this a PUT as UpdateStockItemBySkuPut - but this doesn't appear to be in the WSDL for SOAP.
Am I missing something or referencing the wrong service somehow?
Thanks in advance.
stockItems will be always 1 if you're not having multiple stocks.
As parameter, provide qty in JSON, for example:
Thanks - but that's REST - we're using SOAP in this project - the WSDL doesn't appear to contain the Update method - or am I going mad?
Well, there is actually. catalogInventoryStockRegistryV1UpdateStockItemBySku.
Where is the issue? Well, you've probably used something like:
And that's why you haven't seen all methods available. You have to authenticate and call it again, and then you will see the additional set of methods.
This is how it looks when I make a call from SoapUI software:
Ah - now that makes sense, but the next question is - how do I authenticate to get the WSDL into Visual Studio in order for Visual Studio to build up the classes etc. for the calls?
I think the answer is here:
Use SOAPUI etc to authenicate and download WSDL, then use downloaded WSDL as service reference in Visual Studio, will confirm as solution once tested.
Well, Visual Studio is out of my knowledge.
I hope I've helped you with the issue.
I think you have, it's certainly the first SOAP interface I've come across that requires you to "login" before you can download the description of the service, missguided security?