Child pages
  • Chapitre 5 - Modification - Mettre à jour un client

Versions Compared

Key

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

...

Code Block
foreach ( $resources as $nodeKey => $node ) {
  $resources->$nodeKey = $_POST[ $nodeKey ];
}

Nous

...

disposons

...

maintenant

...

d'un

...

fichier

...

XML

...

mis

...

à

...

jour,

...

il

...

ne

...

nous

...

reste

...

plus

...

qu'a

...

l'envoyer

Code Block
$opt 

...

= array( 'resource' => 'customers' ); // Définition de la ressource

...


$opt[ 'xml' ] = $xml->asXML();             // Définition du fichier XML

...


// L'appel de asXML() retourne une chaine correspondant au fichier

...


$xml = $webService->edit($opt);            // Appel
Code Block

Exemple d'une mise à jour

...