verticalstorageimporter.php 663 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Giancarlo
  5. * Date: 20/07/2018
  6. * Time: 16:07
  7. */
  8. $ws_url = 'http://192.168.253.130/servizi_xchange.asmx';
  9. $soapAction = 'http://servizi_xchange.org/ImportLists';
  10. $soapClient = new SoapClient("http://192.168.253.130/servizi_xchange.asmx?wsdl", array(
  11. 'trace' => true,
  12. 'exceptions' => true,
  13. 'cache_wsdl' => false,
  14. ));
  15. try {
  16. $xmlFile = file_get_contents('test.xml');
  17. $r = $soapClient->__doRequest($xmlFile, $ws_url, $soapAction, SOAP_1_1);
  18. } catch (SoapFault $e) {
  19. echo "Exception\n";
  20. print_r($e);
  21. }
  22. print_r($r);
  23. print_r($soapClient->__getLastRequestHeaders());
  24. print_r($soapClient->__getLastResponse());