<?php require_once("./ArrayToXML.class.php"); $myArray = array( "name"=>"Joe", "age"=>"36" ); $Request = new ArrayToXMLClient( "./simpleServer.php", $myArray ); $responseArray = $Request->getResponseArray( ); echo $responseArray['response'];