PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Guthierry Marques Neto   Simple PHP SSAS XMLA Request   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example to use SSAS_request Class
Class: Simple PHP SSAS XMLA Request
Send SOAP request with XMLA for SSAS
Author: By
Last change:
Date: 9 years ago
Size: 1,693 bytes
 

Contents

Class file image Download
-<?php
-
-
/*
- * file: example.php
- *
- * Author: Guthierry Marques Neto
- * "Simple is better"
- *
- */
-
-require(
'Simple_SSAS_request.php');
-
-
//Instance the object SSAS_request / Instancia o objeto SSAS_request
-$send_SSAS = new SSAS_request();
-
//Set URL of SSAS http inteface / Seta a URL da interface HTTP do SSAS
-$send_SSAS->setURL('http://localhost/olap/msmdpump.dll');
-
//Set XMLA for request / Envia o XMLA para processamento
-$send_SSAS->setXMLA(''
- . '<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
- <Parallel>
- <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200" xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300" xmlns:ddl400="http://schemas.microsoft.com/analysisservices/2012/engine/400" xmlns:ddl400_400="http://schemas.microsoft.com/analysisservices/2012/engine/400/400">
- <Object>
- <DatabaseID>Adventure Works DW</DatabaseID>
- <CubeID>Adventure Works DW</CubeID>
- </Object>
- <Type>ProcessFull</Type>
- <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
- </Process>
- </Parallel>
-</Batch>'
);
-
//Request / Envia
-$send_SSAS->request();