Problem with Php5 and integrated Soap Functions on IIS 5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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é

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux