Source for file jSoapRequest.class.php
Documentation is available at jSoapRequest.class.php
- <?php
- /**
- * @package jelix
- * @subpackage core_request
- * @author Sylvain de Vathaire
- * @contributor
- * @copyright 2008 Sylvain de Vathaire
- * @link http://www.jelix.org
- * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
- */
-
- /**
- * handle a soap call. The response has to be a soap response.
- * @package jelix
- * @subpackage core_request
- */
- class jSoapRequest extends jRequest {
-
- public $type = 'soap';
-
- public $defaultResponseType = 'soap';
-
- public $soapMsg;
-
-
- function __construct(){ }
-
- /**
- * Paramameters initalisation prior to request handling
- */
- function initService(){
-
- if(isset($_GET["service"]) && $_GET['service'] != ''){
- list($module, $action) = explode('~',$_GET["service"]);
- }else{
- throw new JException('jWSDL~errors.service.param.required');
- }
-
- $this->params['module'] = $module;
- $this->params['action'] = $action;
-
- if(isset($HTTP_RAW_POST_DATA) && ($HTTP_RAW_POST_DATA!='')){
- $this->soapMsg = $HTTP_RAW_POST_DATA;
- }else{
- $this->soapMsg = file("php://input");
- $this->soapMsg = implode(" ", $this->soapMsg);
- }
-
- $this->_initUrlData(); //Need to be called manually before coordinator call of init because needed for the WSDL generation
- }
-
-
- /**
- * Overload of the init method to prevent calling twice _initUrlData
- */
- function init(){}
-
- protected function _initParams(){}
-
- public function isAllowedResponse($respclass){
- return ('jResponseSoap' == $respclass);
- }
-
- }
Documentation generated on Thu, 22 Mar 2012 22:17:18 +0100 by phpDocumentor 1.4.3