Re: HTTP Error 500 Internal Server Error, when trying PEAR::SOAP.
| From: | Michele Manzato | Date: | Mon, 13 Jan 2003 10:59:08 +0000 |
| Subject: | Re: HTTP Error 500 Internal Server Error, when trying PEAR::SOAP. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3269@lists.php.net to get a copy of this message | ||
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
"Manuel vázquez acosta" <manu@chasqui.cu> ha scritto nel messaggio
news:001c01c2baa0$4948b2b0$650914ac@chasqui.uclv.etecsa.cu...
> 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.
>
>
>
>