Skip to content

Instantly share code, notes, and snippets.

@dinamic
Last active June 13, 2016 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinamic/e7e2d904c76553bda390e5d9b1a5bcca to your computer and use it in GitHub Desktop.
Save dinamic/e7e2d904c76553bda390e5d9b1a5bcca to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$item = array ('amount' => 1.2);
$data = array ('items' => array(&$item));
// ...
$item['amount'] = 1123.23;
// ...
$client = new SoapClient(null, array(
'location' => 'http://localhost/soapserver.php',
'uri' => '',
'wsdl_cache' => WSDL_CACHE_NONE,
));
echo $client->__soapCall('createItem', $data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment