Child pages
  • Chapter 5 - Modification - Update client

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
// Resource definition
$opt = array('resource' => 'customers'); 

//XML file definition
$opt['putXml'] = $xml->asXML();

// Definition of ID to modify 
$opt['id'] = $_GET[ 'id' ]; 

// Calling asXML () returns a string corresponding to the file
$xml = $webService->edit($opt);

...

If you have trouble, look at the code in the 2-update.php sample file.