Sensation Energy

Tutorials


Web Service

Web Service with PHP, MySql, JSON and XML





Rest

PHP

  
<?php
http://.../user.xml
?>

Id User_id Name Email Year

Soap

PHP


&lt;?php
$books = simplexml_load_file('http://.../users.xml');
file_put_contents('http://.../users.xml', $books-&gt;asXML());
?&gt;

Name Email Year
vlada valad@mail.com 20
vaca vaci@mail.com 22