I need to get the values of two fields from a file in .txt
and send via Soap .
Soap is already working, when I enter the Barcode and absoluteQuantity
it sends the correct value, but now I need to make this field be fed by the file of .txt
, see image below.
<?php
$client = new SoapClient('http://rcs01-sales.fftech.info/pub/apistock.asmx?wsdl');
$function = 'BarcodeProcessAbsoluteQuantity';
$arguments= array('BarcodeProcessAbsoluteQuantity' => array(
'Key' => '5VWyXKYZxH0=',
'Barcode' => 8054182140865,
'absoluteQuantity' => 2,
'ErrMsg' => '0',
'IsAdjustment' => '0',
'currentStock' => '0',
));
$options = array('location' => 'http://rcs01-sales.fftech.info/pub/apistock.asmx?wsdl');
$result = $client->__soapCall($function, $arguments, $options);
echo 'RESPOSTA:';
print_r($result);
?>