0

I am trying to update my stock qty via SOAP using Postman. I have no experience using SOAP.
Can anybody tell me what I am doing wrong here?

https://mydomain/soap/default?wsdl&services=catalogInventoryStockRegistryV1

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:def="https://mydomain/soap/default?wsdl&services=catalogInventoryStockRegistryV1">
<soapenv:Header/>
 <soap:Body>
     <def:catalogInventoryStockRegistryV1GetStockItemBySku>
        <productSku>101019NC</productSku>
        <itemId>1</itemID>
            <stock_item>
                <product_id>1</product_id>
                <qty>31</qty> 
            </stock_item>
      </def:catalogInventoryStockRegistryV1GetStockItemBySku>
 </soap:Body>
</soap:Envelope>

The only response that I get is the WSDL definition.

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="https://mydomain/soap/de?services=catalogInventoryStockRegistryV1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="MagentoWSDL" targetNamespace="https://mydomain/soap/de?services=catalogInventoryStockRegistryV1">
    <types>
        <xsd:schema targetNamespace="https://mydomain/soap/de?services=catalogInventoryStockRegistryV1">
            <xsd:element name="GenericFault" type="tns:GenericFault"/>
            <xsd:complexType name="GenericFaultParameter">
                <xsd:sequence>
                    <xsd:element name="key" minOccurs="1" maxOccurs="1" type="xsd:string">
                        <xsd:annotation>
                            <xsd:documentation></xsd:documentation>
                            <xsd:appinfo xmlns:inf="https://mydomain/soap/de?services=catalogInventoryStockRegistryV1">
                                <inf:maxLength/>
                            </xsd:appinfo>
                        </xsd:annotation>
                    </xsd:element>
...

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.