SOAP を使い始めようとしています。このチュートリアルに従っています: http://www.codewalkers.com/c/a/Miscellaneous/Using-SOAP-with-PHP/3/
私が知る限り、必要なものはすべてインストールされています。
soap
Soap Client enabled
Soap Server enabled
Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400
次のコードを実行しようとすると、以下のエラーが発生します
<?php
function getStockQuote($symbol) {
mysql_connect("localhost", "username", "password");
mysql_select_db('captainc_general');
$query = "SELECT stock_price FROM stockprices "
. "WHERE stock_symbol = '$symbol'";
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);
return $row['stock_price'];
}
require_once('nusoap.php'); //use the nusoap library
$server = new soap_server();
$server->configureWSDL('stockserver', 'urn:stockquote');
$server->register("getStockQuote",
array('symbol' => 'xsd:string'),
array('return' => 'xsd:decimal'),
'urn:stockquote',
'urn:stockquote#getStockQuote');
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA)
? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
?>
警告: require_once(nusoap.php) [function.require-once]: ストリームを開くことができませんでした: 17 行目の /home/captainc/public_html/soap/soaptest.php にそのようなファイルまたはディレクトリはありません
致命的なエラー: require_once() [function.require]: 必要な 'nusoap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') を /home/captainc/public_html で開けませんでした/soap/soaptest.php 17 行目
これを整理するために私が何をする必要があるか、誰にもアイデアがありますか?