Getting Shipment Increment ID by Order ID in Magento via SOAP
<p>We have an integration with Magento built entirely around the <a href="http://php.net/manual/en/class.soapclient.php" rel="nofollow noreferrer">SoapClient</a>. For example, a shipment is created like so:</p>

<pre><code>$this-&gt;_client = @new SoapClient($this-&gt;getWsdl(), $context);
        if ($this-&gt;_client) {
            $this-&gt;_session = $this-&gt;_client-&gt;login($this-&gt;magentoUser, $this-&gt;magentoKey);
            return $this;
        }
</code></pre>

<p>...</p>

<pre><code>$result = $this-&gt;_client-&gt;salesOrderShipmentCreate(
            $this-&gt;_session,
            $id
        );
return $result;
</code></pre>

<p>And tracking is added similarly. The problem is, if I need to <strong>update</strong> tracking for whatever reason, I need the <code>shipment_increment_id</code>. From our system, I pull the <code>order_id</code>. So I need to query Magento to get the associated <code>shipment_increment_id</code> from the <code>order_id</code>.</p>

<p>So, <a href="https://stackoverflow.com/questions/20734134/how-to-get-shipment-increment-id-by-order-id-in-magento">this seems to be exactly the solution I need</a>, however, there is no <code>Mage</code> object in our codebase, we're communicating entirely via the SoapClient. Looking through the <a href="http://devdocs.magento.com/guides/m1x/api/soap/sales/salesOrder/salesOrder.html" rel="nofollow noreferrer">docs on the sales object</a>, I'm not really seeing a solution here. </p>

<p>How can I get the shipment ID using the order ID via Magento's SOAP API? </p>