We need to show stock from our distributor via a SOAP interface that will extracts the barcode from our website to there webserver each time a product is selected on our web page. we want it to pull the stock level from their server to show above the qty text box (attached image), we want it so we add the EAN13/ barcode to the product and the stock will automaticly show.
Examples of the SOAP file specification below
#$ini = ini_set("soap.wsdl_cache_enabled","0");
$api_key = "nnnnnn"; //Unique ID required to access the service, please request this from BTC
$btc_loc="https://www.-----------------/edi/[url removed, login to view]";
$client = new SoapClient(null, array('location' => $btc_loc,
'uri' => $btc_uri,
'compression' => "SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 5"
# query an array of up to 5000 stock codes
$btc_stock_ids=array(1,6,15,16,167,169,170,171,172,173,175,176,5177,5178,5179,5180,5181); // array of sample sotck id's
$StkQtys = $client->stock_qty_array($api_key,$btc_stock_ids);
# returns hash map array, keys are stock_id values are stock qty. only valid stock id's are returned, incorrect stock id's are not returned.
# Actual stock figure is returned for values up to 500, stock figures over 500 are return as 501.