Hello World!
XML;
try {
$client = new WSClient(array( "to" => "http://localhost/samples/class_based_service.php" ));
$responseMessage = $client->request($requestPayloadString);
printf("Response = %s
", htmlspecialchars($responseMessage->str));
} catch (Exception $e) {
if ($e instanceof WSFault) {
printf("Soap Fault: %s\n", $e->Reason);
} else {
printf("Message = %s\n",$e->getMessage());
}
}
?>