Skip to content

Instantly share code, notes, and snippets.

@centerax
Created January 7, 2015 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save centerax/dedce2a7f7abb6358ac7 to your computer and use it in GitHub Desktop.
Save centerax/dedce2a7f7abb6358ac7 to your computer and use it in GitHub Desktop.
<?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