Re: Request from IBM WebSphere causes HTTP status 500

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

 



Hello,

I checked error.log, but it's empty (at least no SOAP-related
entries). So I extended my logging and noticed that my server
script actually IS being called, though my SOAP operation is
not executed.

-----

This is my service class MyServer.class.php:

class MyServer
{
  public function execute($arg)
  {
    Logger::getInstance('server.txt')->writeLog($arg);

    ...
  }
}

-----

This is my server.php:

$log = Logger::getInstance('server.txt');

$log->writeLog('POST request:' . "\r\n\r\n" . $HTTP_RAW_POST_DATA);
$log->writeLog('Server script was called.');

try
{
  $log->writeLog('Script entered try-block.');

  $server = new SoapServer(MY_DIR . 'service.wsdl');
  $server->setClass('MyServer');
  $server->handle();
}
catch (SoapFault $e)
{
  $log->writeLog('Script entered catch-block.');
  $log->writeLog('Error message: ' . $e->faultstring);

  echo $e->faultstring;
}

$log->writeLog('Server script was ended.');

-----

And finally this is the output I got:

##################################################
29.05.2009 09:40:40 (II) POST request:
<SOAP request...>
##################################################
29.05.2009 09:40:40 (II) Server script was called.
##################################################
29.05.2009 09:40:40 (II) Script entered try-block.
##################################################

-----

So obviously the SOAP call fails somewhere before or in my
service class and HTTP status 500 is thrown. The SOAP request
is there and looks valid (at least structure and content are
there as expected).

Any further ideas? Might there be some encoding problems or
something? Has no one experienced similar difficulties? I
thought there's quite a bunch of WebSphere services out there.

Regards,
Bernd

-------- Original-Nachricht --------

> Hello,
> 
> Try to check you apache error log. If you are using Debian Lenny, them  
> it is probably on /var/log/apache2/error.log
> 
> It might show you why error 500 is happening.
> 
> Regards,
> 
> Fernando Morgenstern
-- 
Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02

-- 
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