[geeklog-cvs] Auth_Enterprise/Enterprise/Server SOAPHandler.php,1.2,1.3
tony at iowaoutdoors.org
tony at iowaoutdoors.org
Mon Jul 26 14:47:39 EDT 2004
Update of /var/cvs/Auth_Enterprise/Enterprise/Server
In directory www:/tmp/cvs-serv7648
Modified Files:
SOAPHandler.php
Log Message:
Latest non-working copy
Index: SOAPHandler.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Enterprise/Server/SOAPHandler.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SOAPHandler.php 15 Jul 2004 04:46:11 -0000 1.2
--- SOAPHandler.php 26 Jul 2004 18:47:36 -0000 1.3
***************
*** 58,63 ****
{
$GLOBALS['_Auth_Enterprise_SOAPHandler'] = $applications;
!
! return true;
}
--- 58,63 ----
{
$GLOBALS['_Auth_Enterprise_SOAPHandler'] = $applications;
! Auth_Enterprise_SOAPHandler::handleRequest();
! //return true;
}
***************
*** 72,84 ****
public static function handleRequest()
{
! $options = $GLOBALS['_Auth_Enterprise_SOAPHandler'][$appId]['options'];
! if (!isset($options['appId'])) {
! $options['appId'] = $appId;
! }
! $provider =& Auth_Enterprise::serverSingleton($GLOBALS['_Auth_Enterprise_XMLRPCHandler'][$appId]['provider'], $options);
! $sudServer = new SoapServer("http://192.168.1.3/Auth_Enterprise/soap/Auth_Enterprise.wsdl");
! $sudServer->setClass(get_class($provider));
! $sudServer->handle();
}
--- 72,114 ----
public static function handleRequest()
{
! global $HTTP_RAW_POST_DATA;
! // Get appliation ID out of request. This is a bit of a hack as we are accessing SOAP parameters from the
! // raw request but in order to act as a true proxy we must get it out.
! $dom = new DomDocument();
! $dom->loadXML($HTTP_RAW_POST_DATA);
! $tmpNodeList = $dom->getElementsByTagName('appId');
! $node = $tmpNodeList->item(0);
! $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();
! } catch (AEBaseException $e) {
! return new SoapFault('Auth_Enterprise_Server Service Error', $e->getMessage());
! } catch (Exception $e) {
! // Handle unknown problems
! return new SoapFault('Auth_EnterpriseS_erver PHP Error', $e->getMessage());
! }
}
More information about the geeklog-cvs
mailing list