| 12345678910111213141516171819202122232425262728 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Giancarlo
- * Date: 20/07/2018
- * Time: 16:07
- */
- $ws_url = 'http://192.168.253.130/servizi_xchange.asmx';
- $soapAction = 'http://servizi_xchange.org/ImportLists';
- $soapClient = new SoapClient("http://192.168.253.130/servizi_xchange.asmx?wsdl", array(
- 'trace' => true,
- 'exceptions' => true,
- 'cache_wsdl' => false,
- ));
- try {
- $xmlFile = file_get_contents('test.xml');
- $r = $soapClient->__doRequest($xmlFile, $ws_url, $soapAction, SOAP_1_1);
- } catch (SoapFault $e) {
- echo "Exception\n";
- print_r($e);
- }
- print_r($r);
- print_r($soapClient->__getLastRequestHeaders());
- print_r($soapClient->__getLastResponse());
|