Discussion:
HTTP Error 500 Internal Server Error, when trying PEAR::SOAP.
Manuel Vázquez Acosta
2003-01-13 01:08:30 UTC
Permalink
Hi all:

I’m trying the SOAP components by PEAR. I downloaded the latest SOAP
package in pear.php.net along with the dependency tree.

I made two simple scripts: the client and the server.

The client looks like:
<?php
chdir('./PEAR'); // This chdir is needed in order to satisfy
including in SOAP scripts
// or you have to change include_path in
php.ini.
require_once 'SOAP/Client.php';

// This is a valid local URL in my workstation
$uri = 'http://pear.local/serv.php';

$namespace = 'urn:MySOAPTest';
$client = new SOAP_Client($uri);
$result = $client->call('TheQuestion', array(), $namespace);
print_r( $result );
?>

And the server is:
<?php
class B
{
var $namespace = 'urn:MySOAPTest';
function TheQuestion()
{
return new SOAP_Value('return', 'string', '10 times 10 plus 1?');
}
}
$server = new SOAP_Server();
$server->addObjectMap( new B() );
$server->service($HTTP_RAW_POST_DATA);
?>

I haven't had success in running this. I've got an HTTP 500 Internal
Server Error after 2 or 3 seconds.
I also tried to run the examples that come with SOAP packages and for
each
$soapclient->call() I got the same HTTP Error 500.

My working env is Win-XP Pro/Apache 2.0/PHP 4.2.3.

Any hints will be welcome.
Manu.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michele Manzato
2003-01-13 10:59:08 UTC
Permalink
I had the same problem, and it was a problem in the PHP header() function
when
setting the HTTP status. It happened when PHP was installed as a CGI rather
than a
Apache Module.

The problem should solve if you install PHP as an Apache module.

Bye
Michele
I'm trying the SOAP components by PEAR. I downloaded the latest SOAP
package in pear.php.net along with the dependency tree.
I made two simple scripts: the client and the server.
<?php
chdir('./PEAR'); // This chdir is needed in order to satisfy
including in SOAP scripts
// or you have to change include_path in
php.ini.
require_once 'SOAP/Client.php';
// This is a valid local URL in my workstation
$uri = 'http://pear.local/serv.php';
$namespace = 'urn:MySOAPTest';
$client = new SOAP_Client($uri);
$result = $client->call('TheQuestion', array(), $namespace);
print_r( $result );
?>
<?php
class B
{
var $namespace = 'urn:MySOAPTest';
function TheQuestion()
{
return new SOAP_Value('return', 'string', '10 times 10 plus 1?');
}
}
$server = new SOAP_Server();
$server->addObjectMap( new B() );
$server->service($HTTP_RAW_POST_DATA);
?>
I haven't had success in running this. I've got an HTTP 500 Internal
Server Error after 2 or 3 seconds.
I also tried to run the examples that come with SOAP packages and for
each
$soapclient->call() I got the same HTTP Error 500.
My working env is Win-XP Pro/Apache 2.0/PHP 4.2.3.
Any hints will be welcome.
Manu.
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Continue reading on narkive:
Search results for 'HTTP Error 500 Internal Server Error, when trying PEAR::SOAP.' (Questions and Answers)
19
replies
Who invented Playing Cards and when?
started 2007-01-16 14:08:33 UTC
card games
Loading...