#45084 [Fbk->Opn]: SoapServer Don't Work at Windows Vista

[email protected] ("neumann at ntech dot com dot br")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45084
 User updated by:  neumann at ntech dot com dot br
 Reported By:      neumann at ntech dot com dot br
-Status:           Feedback
+Status:           Open
 Bug Type:         SOAP related
 Operating System: Windows Vista
 PHP Version:      5.2.6
 New Comment:

the error returned is: PHP Fatal error:  Maximum execution time of 30
seconds exceeded in C:\\wwwroot\\soap\\HelloClient.php.... The error
don't occurs with the same script running at XP or Linux. I turn off the
firewall, was increased the PHP parameter 'max_execution_time' but
allways return the same error.


Previous Comments:
------------------------------------------------------------------------

[2008-06-02 12:08:32] albert at insad dot nl

Did you check your firewall rules?
To me it looks like Vista is blocking you :)

------------------------------------------------------------------------

[2008-06-02 06:42:35] [email protected]

Have you checked your error log for any errors? When I try to run the
reproduce script I get a maximum execution error, I've seen on some
setups that PHP errors mixed with output buffering may cause HTTP 500
errors.

[02-Jun-2008 08:37:56] PHP Fatal error:  Maximum execution time of 30
seconds exceeded in C:\webserver\www\HelloClient.php on line 9

------------------------------------------------------------------------

[2008-05-24 00:59:42] neumann at ntech dot com dot br

Description:
------------
If I execute HelloClient.php with the HelloServer.php at windows vista,
don't work(error 500). If I Copy the same HelloServer.php to another
server, and execute the same HelloClient.php at Windows Vista, it work
well...

PS:. Remember to change the param location in HelloClient.php, point it
to the HelloServer.php location URL.

Reproduce code:
---------------
<?php #HelloClient.php
   $client = new SoapClient(null, array(
      'location' => "http://localhost/soap/HelloServer.php",
      'uri'      => "http://localhost/",
      'trace'    => 1 ));

   $return = $client->__soapCall("hello",array("world"));
   echo $return;
?>
*************
<?php #HelloServer.php
function hello($someone) { 
   return new SoapParam("Hello " . $someone . "!","myparam");
} 
   $server = new SoapServer(null, 
      array('uri' => "http://localhost/"));
   $server->addFunction("hello"); 
   $server->handle(); 
?>

Expected result:
----------------
display the text: Hello world! 

Actual result:
--------------
http server error 500


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45084&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.