Перезапуск Apache2 при использовании wsf / php - PullRequest
0 голосов
/ 29 августа 2011

У меня другая проблема с фреймворком WSF / PHP.Большую часть времени (не всегда, но все же), когда я запускаю свой скрипт, он заканчивается потерянным соединением.Там нет страницы ошибки или чего-то еще, просто ошибка соединения с хостом (через localahost).

Вот мой код:

<?php
    $server_location = "https://some.address";
    $clientCert_location = "clientCert.pem";
    $CACert_location = "CACert.cer";
    $passphrase = "some.password";
    $request = file_get_contents("./requests/example.xml");
    $action = "some.action";

    $rec_cert = ws_get_cert_from_file($CACert_location);
    $pvt_key = ws_get_key_from_file($clientCert_location);
    $sec_token = new WSSecurityToken(array("privateKey" => $pvt_key,
                                           "receiverCertificate" => $rec_cert));

    $client = new WSClient(array("useSOAP" => "1.1",
                                 "policy" => new WSPolicy(array()),
                                 "securityToken" => $sec_token,
                                 "to"=>$server_location,
                                 "action" => $action,
                                 "CACert" => $CACert_location));

    try {
        $response = $client->request($request);
    } catch (Exception $e) {
        if ($e instanceof WSFault) {
            $response = "Soap Fault: ".$e->Code."\n";
        } else {
            $response = "Message = ".$e->getMessage()."\n";
        }
    }
?>

А вот журнал ошибок от apache:

[Mon Aug 29 11:13:41 2011] [info]  Cannot find path D:\Aplikacje\wsf-php-2.1.0\wsf_c/services.
[Mon Aug 29 11:13:41 2011] [info]  [rampart] rampart_mod initialized
[Mon Aug 29 11:13:41 2011] [info]  [rahas]Rahas module initialized
[Mon Aug 29 11:13:41 2011] [error] ..\..\axiom\src\om\om_document.c(102) Unable to get root node
[Mon Aug 29 11:13:41 2011] [info]  Starting addressing out handler
[Mon Aug 29 11:13:41 2011] [warning] ..\..\src\core\context\msg_ctx.c(1384) RampartClientConfiguration not set in message context
[Mon Aug 29 11:13:41 2011] [info]  [rampart][rampart_signature] No parts specified or specified parts can't be found for Signature.
OPENSSL_Uplink(100EC020,08): no OPENSSL_Applink
[Mon Aug 29 11:13:41 2011] [notice] Parent: child process exited with status 1 -- Restarting.
[Mon Aug 29 11:13:41 2011] [info]  [rampart] rampart_mod shutdown
[Mon Aug 29 11:13:41 2011] [info]  [rahas] Rahas module shutdown
[Mon Aug 29 11:13:43 2011] [notice] Apache/2.2.19 (Win32) PHP/5.3.6 configured -- resuming normal operations
[Mon Aug 29 11:13:43 2011] [notice] Server built: May 20 2011 17:39:35
[Mon Aug 29 11:13:43 2011] [notice] Parent: Created child process 4636
[Mon Aug 29 11:13:44 2011] [info]  Cannot find path D:\Aplikacje\wsf-php-2.1.0\wsf_c/services.
[Mon Aug 29 11:13:44 2011] [info]  [rampart] rampart_mod initialized
[Mon Aug 29 11:13:44 2011] [info]  [rahas]Rahas module initialized
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Child process is running
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Acquired the start mutex.
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Starting 64 worker threads.
[Mon Aug 29 11:13:44 2011] [notice] Child 4636: Starting thread to listen on port 80.

Помощь будет высоко ценится;)

РЕДАКТИРОВАТЬ: Я понял это.В моем ПУТИ отсутствовало местоположение ... / php / ext, поэтому файл wsf.dll не найден.Однако это не конец моей проблемы.Больше идут ...;)

РЕДАКТИРОВАТЬ2: Нет ... Это было не так: (

1 Ответ

1 голос
/ 21 сентября 2011

Если кому-то будет интересно узнать, как это закончилось, я решил проблему, обновив apache-httpd до 2.2.21 и используя wse-php вместо wsf-php .

...