port http://cvs.horde.org/diff.php/framework/RPC/RPC/PhpSoap.php?rt=horde&r1=1.3...
authorChuck Hagenbuch <chuck@horde.org>
Fri, 12 Jun 2009 15:28:37 +0000 (11:28 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 12 Jun 2009 15:28:37 +0000 (11:28 -0400)
fix class name

framework/Rpc/lib/Horde/Rpc/Soap.php

index 8f53ebd..7280542 100644 (file)
@@ -3,8 +3,6 @@
  * The Horde_RPC_PhpSoap class provides a PHP 5 Soap implementation
  * of the Horde RPC system.
  *
- * $Horde: framework/RPC/RPC/PhpSoap.php,v 1.2 2009/01/06 17:49:38 jan Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (LGPL). If you
@@ -14,8 +12,8 @@
  * @since   Horde 3.2
  * @package Horde_RPC
  */
-class Horde_RPC_PhpSoap extends Horde_RPC {
-
+class Horde_Rpc_Soap extends Horde_Rpc
+{
     /**
      * Resource handler for the RPC server.
      *
@@ -51,6 +49,8 @@ class Horde_RPC_PhpSoap extends Horde_RPC {
      */
     public function __construct($params = array())
     {
+        NLS::setCharset('UTF-8');
+
         parent::Horde_RPC($params);
 
         if (!empty($params['allowedTypes'])) {
@@ -144,6 +144,14 @@ class Horde_RPC_PhpSoap extends Horde_RPC {
             $options['allowRedirects'] = true;
             $options['maxRedirects']   = 3;
         }
+        if (isset($options['user'])) {
+            $options['login'] = $options['user'];
+            unset($options['user']);
+        }
+        if (isset($options['pass'])) {
+            $options['password'] = $options['pass'];
+            unset($options['pass']);
+        }
         $options['location'] = $url;
         $options['uri'] = $options['namespace'];