Created
January 7, 2015 12:12
-
-
Save centerax/dedce2a7f7abb6358ac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array( | |
array('warehouse'=>"wh_en",'sku'=>'ace000','sign'=>'+','stock'=>1), | |
array('warehouse'=>"1",'sku'=>'ace000','sign'=>'+','stock'=>1), | |
); | |
$jsonData = json_encode($data); | |
$client = new SoapClient("http://multiwarehouse.ebizmarts.com/index.php/api/?wsdl"); | |
$session = $client->login("soap_username", "soap_password"); | |
$info = $client->call($session, "warehouse.import" ,$jsonData); | |
print_r($info); | |
$client->endSession($session); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment