<? $namespace = "http://www.scit.wlv.ac.uk/~jphb"; require_once('SOAP/Client.php'); $info = new SOAP_client("http://info.scit.wlv.ac.uk/~jphb/cp2101/soap/server/helloserver.php"); $params = array("name" => "Peter"); $response = $info->call("sayboo",$params,$namespace); if(PEAR::iserror($response)) echo "Error " . $response->getCode() . " [ " . $response->getMessage() . "]\n"; else echo $response; echo "\n"; exit; ?> 참조:
http://www.scit.wlv.ac.uk/~jphb/cp2101/week5/phpsoap.html
댓글 없음:
댓글 쓰기