0
I need to get the values of two fields from a file in .txt
and send via Soap.
Sending Soap is already working, when I insert the Barcode and absoluteQuantity
it sends the correct value, but now I need to make this field be fed by the file .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);
?>
Thanks Junior! Unfortunately using this way I have a problem with sending to the webservice (SOAP).
– Hugo Rutemberg
Ahn? What problem?
– juniorb2ss
He just send the first line of the Barcode.
– Hugo Rutemberg
Then send this out of the loop, send your code.
– juniorb2ss
The code looks like this: https://answall.com/a/237698/91056
– Hugo Rutemberg
And it’s wrong. The flame of SOAP should stay inside the
foreach
.– juniorb2ss
Friend, thank you very much !! IT WORKED.
– Hugo Rutemberg