58 $this->_aModules = $aModules;
78 $this->_sRawResponseMessage = $sRawResponseMessage;
98 $this->_sWebServiceUrl = $sWebServiceUrl;
127 $this->_blIsException = $blIsException;
137 $aPreparedModules = array();
140 if( !is_array($aModules) ) {
144 foreach( $aModules as $sModule ) {
145 $oModule =
oxNew(
'oxModule');
146 if (!$oModule->load($sModule)) {
150 $oPreparedModule =
new stdClass();
151 $oPreparedModule->id = $oModule->getId();
152 $oPreparedModule->version = $oModule->getInfo(
'version');
154 $oPreparedModule->activeInShops =
new stdClass();
155 $oPreparedModule->activeInShops->activeInShop = array( ($oModule->isActive() ?
oxRegistry::getConfig()->getShopUrl() : null) );
157 $aPreparedModules[] = $oPreparedModule;
176 $oXml =
oxNew(
'oxSimpleXml');
177 $sXml = $oXml->objectToXml($oRequestParams,
'omvnRequest');
181 $oCurl =
oxNew(
'oxCurl' );
182 $oCurl->setMethod(
'POST' );
184 $oCurl->setParameters( array(
"xmlRequest" => $sXml) );
185 $sOutput = $oCurl->execute();
187 throw new oxException(
'OMVN_ERROR_REQUEST_FAILED');
202 $oRequestParams =
new stdClass();
204 $oRequestParams->modules =
new stdClass();
205 $oRequestParams->modules->module = $this->
getModules();
213 if ( !$sOutput = $this->
_doRequest($oRequestParams) ){
214 throw new oxException(
'OMVN_ERROR_REQUEST_FAILED');