rendered paste body<?php //show the wsdl = ?wsdl if(isset($_GET['wsdl'])) { header('Content-type: text/xml'); echo file_get_contents('man2.wsdl'); exit; } class SoapRequest { public function __construct($requestData) { $this->log($requestData); } public function SayHello($person) { return "Hello, ". $person->name ." ". $person->name2 ."!"; } } $s = new SoapServer('http://localhost/~joshteam/Soap/main.wsdl'); //timestamp & request to service $log = date('m/j/y g:i:s').': '.file_get_contents('php://input'); $s->setClass('SoapRequest', $log); $s->handle(); ?>