Basic extraction of paid event processing
[civicrm-core.git] / extern / soap.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12 if (defined('PANTHEON_ENVIRONMENT')) {
13 ini_set('session.save_handler', 'files');
14 }
15 session_start();
16
17 require_once '../civicrm.config.php';
18 require_once 'CRM/Core/Config.php';
19
20 $server = new SoapServer(NULL,
21 array(
22 'uri' => 'urn:civicrm',
23 'soap_version' => SOAP_1_2,
24 )
25 );
26
27
28 require_once 'CRM/Utils/SoapServer.php';
29 $crm_soap = new CRM_Utils_SoapServer();
30
31 /* Cache the real UF, override it with the SOAP environment */
32
33 $config = CRM_Core_Config::singleton();
34
35 $server->setClass('CRM_Utils_SoapServer', $config->userFrameworkClass);
36
37 $server->setPersistence(SOAP_PERSISTENCE_SESSION);
38
39 $server->handle();