cancel
Showing results for 
Search instead for 
Did you mean: 

Soap OrderList ignoring Date (on suse)

Soap OrderList ignoring Date (on suse)

I have a script that has been running on a windows machine for a good 3 months that pulls orders off of magento.

I tried to move it over to a new linux app server, but soap/magento/something is ignoring my created_at complex filter.

array(
    'complex_filter' => array(
        array(
            'key' => 'created_at',
            'value' => array('key' => 'from', 'value' => date('Y-m-d H:i:s', strtotime(ProgramFlags::$timevar)))
        )
    )
);

$this->soap_client->salesOrderList($this->session_id, $filter);

 

This still works on my windows machine, but refuses to work on the suse box.

Any Thoughts?

 

# php -v
PHP 5.5.14 (cli)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH

 

$this->soap_client->__getLastRequest();

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
    <ns1:salesOrderList>
        <sessionId xsi:type="xsd:string">zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz</sessionId>
        <filters xsi:type="ns1:filters">
            <complex_filter SOAP-ENC:arrayType="ns2:Map[1]" xsi:type="ns1:complexFilterArray">
                <item xsi:type="ns2:Map">
                    <item>
                        <key xsi:type="xsd:string">key</key>
                        <value xsi:type="xsd:string">created_at</value>
                    </item>
                    <item>
                        <key xsi:type="xsd:string">value</key>
                        <value xsi:type="ns2:Map">
                            <item>
                                <key xsi:type="xsd:string">key</key>
                                <value xsi:type="xsd:string">from</value>
                            </item>
                            <item>
                                <key xsi:type="xsd:string">value</key>
                                <value xsi:type="xsd:string">2016-03-28 12:35:01</value>
                            </item>
                        </value>
                    </item>
                </item>
            </complex_filter>
        </filters>
    </ns1:salesOrderList>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>