Problem with Php5 and integrated Soap Functions on IIS 5
| From: | Andr� Wussow | Date: | Thu, 05 Aug 2004 14:02:18 +0000 |
| Subject: | Problem with Php5 and integrated Soap Functions on IIS 5 | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1588@lists.php.net to get a copy of this message | ||
Hi together,
i have installed a local test-environment for Php5.
It runs on a Windows 2000 Platform with IIS 5.
It works well, exclude the Soap-Extension. I have activated it in the
php.ini.
I have used a sample Code from
http://www.zend.com/php5/articles/php5-SOAP.php,
but if i call the server
scripts, i get a 500 Internal Server Error.
This are my scripts:
Server:
--------------------------------------------------------------------
<?php
$quotes = array(
"ibm" => 98.42
);
function getQuote($symbol) {
global $quotes;
return $quotes[$symbol];
}
ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
$server = new SoapServer("stockquote.wsdl");
$server->addFunction("getQuote");
$server->handle();
?>
Client:
--------------------------------------------------------------------
<?php
$client = new SoapClient("stockquote.wsdl");
print($client->getQuote("ibm"));
?>
But it seems, that the Server ist not working. (500-Error)
So logical, the client doesn't work, to. If i point my browser to the
Client Script i get the following error:
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] looks like we
got no XML document in c:\Inetpub\wwwroot\soap\bla\client.php5:3 Stack
trace: #0 c:\Inetpub\wwwroot\soap\bla\client.php5(3):
SoapClient->getQuote('getQuote', Array) #1 {main} thrown in
c:\Inetpub\wwwroot\soap\bla\client.php5 on line 3
Has andybode some idea for me, how to solve this problem?
Thanks in advanced.
Greets,
André