PHP code example of meng-tian / php-soap-interpreter
1. Go to this page and download the library: Download meng-tian/php-soap-interpreter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// In non-WSDL mode, location and uri must be provided as they are ervicex.net/length.asmx', 'uri'=>'http://www.webserviceX.NET/']);
$request = $interpreter->request(
'ChangeLengthUnit',
[
new SoapParam('1', 'ns1:LengthValue'),
new SoapParam('Inches', 'ns1:fromLengthUnit'),
new SoapParam('Meters', 'ns1:toLengthUnit')
],
['soapaction'=>'http://www.webserviceX.NET/ChangeLengthUnit']
);
print_r($request->getSoapMessage());