[geeklog-cvs] Auth_Enterprise/Enterprise/Server SOAPHandler.php,1.3,1.4

tony at iowaoutdoors.org tony at iowaoutdoors.org
Mon Jul 26 15:00:13 EDT 2004


Update of /var/cvs/Auth_Enterprise/Enterprise/Server
In directory www:/tmp/cvs-serv8749

Modified Files:
	SOAPHandler.php 
Log Message:
No longer hard code the location of the WSDL

Index: SOAPHandler.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Enterprise/Server/SOAPHandler.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SOAPHandler.php	26 Jul 2004 18:47:36 -0000	1.3
--- SOAPHandler.php	26 Jul 2004 19:00:11 -0000	1.4
***************
*** 55,63 ****
       * @return bool Success/failure
       */
!     public function __construct($applications)
      {
          $GLOBALS['_Auth_Enterprise_SOAPHandler'] = $applications;
          Auth_Enterprise_SOAPHandler::handleRequest();
-         //return true;
      }
      
--- 55,63 ----
       * @return bool Success/failure
       */
!     public function __construct($applications, $wsdl)
      {
          $GLOBALS['_Auth_Enterprise_SOAPHandler'] = $applications;
+         $GLOBALS['_Auth_Enterpirse_SOAPHandler']['wsdl'] = $wsdl;
          Auth_Enterprise_SOAPHandler::handleRequest();
      }
      
***************
*** 82,106 ****
          $appId = $node->textContent;
          
-         /*
-         $fp = fopen('/srv/www/htdocs/soaprequest.txt', 'a');
-         fwrite($fp, $appId);
-         fclose($fp);
-         exit;
-         */
          try {
              $options = $GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['options'];
              $provider =& Auth_Enterprise::serverSingleton($GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['provider'],
                  $GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['options']);
!             $sudServer = new SoapServer('http://127.0.0.1/Auth_Enterprise.wsdl');
!             /*
!             $fp = fopen('/srv/www/htdocs/soaprequest.txt', 'a');
!             $myArray = $sudServer->getFunctions();
!             foreach ($myArray as $curItem) {
!                 $tmp .= "\n$curItem";
!             }
!             fwrite($fp, $tmp);
!             fclose($fp);
!             */
!             //$sudServer = new SoapServer(null, array('uri'=>'urn:AuthEnterprise'));
              $sudServer->setClass(get_class($provider));
              $sudServer->handle();
--- 82,90 ----
          $appId = $node->textContent;
          
          try {
              $options = $GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['options'];
              $provider =& Auth_Enterprise::serverSingleton($GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['provider'],
                  $GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['options']);
!             $sudServer = new SoapServer($GLOBALS['_Auth_Enterprise_SOAPHandler']['wsdl']);
              $sudServer->setClass(get_class($provider));
              $sudServer->handle();




More information about the geeklog-cvs mailing list