equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_WindowsAzure |
16 * @package Zend_Service_WindowsAzure |
17 * @subpackage Management |
17 * @subpackage Management |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id$ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
37 |
37 |
38 /** |
38 /** |
39 * @see Zend_Service_SqlAzure_Management_FirewallRuleInstance |
39 * @see Zend_Service_SqlAzure_Management_FirewallRuleInstance |
40 */ |
40 */ |
41 require_once 'Zend/Service/SqlAzure/Management/FirewallRuleInstance.php'; |
41 require_once 'Zend/Service/SqlAzure/Management/FirewallRuleInstance.php'; |
42 |
42 |
|
43 /** @see Zend_Xml_Security */ |
|
44 require_once 'Zend/Xml/Security.php'; |
|
45 |
43 /** |
46 /** |
44 * @category Zend |
47 * @category Zend |
45 * @package Zend_Service_SqlAzure |
48 * @package Zend_Service_SqlAzure |
46 * @subpackage Management |
49 * @subpackage Management |
47 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
50 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
48 * @license http://framework.zend.com/license/new-bsd New BSD License |
51 * @license http://framework.zend.com/license/new-bsd New BSD License |
49 */ |
52 */ |
50 class Zend_Service_SqlAzure_Management_Client |
53 class Zend_Service_SqlAzure_Management_Client |
51 { |
54 { |
52 /** |
55 /** |
277 if (is_null($response)) { |
280 if (is_null($response)) { |
278 require_once 'Zend/Service/SqlAzure/Exception.php'; |
281 require_once 'Zend/Service/SqlAzure/Exception.php'; |
279 throw new Zend_Service_SqlAzure_Exception('Response should not be null.'); |
282 throw new Zend_Service_SqlAzure_Exception('Response should not be null.'); |
280 } |
283 } |
281 |
284 |
282 $xml = @simplexml_load_string($response->getBody()); |
285 $xml = @Zend_Xml_Security::scan($response->getBody()); |
283 |
286 |
284 if ($xml !== false) { |
287 if ($xml !== false) { |
285 // Fetch all namespaces |
288 // Fetch all namespaces |
286 $namespaces = array_merge($xml->getNamespaces(true), $xml->getDocNamespaces(true)); |
289 $namespaces = array_merge($xml->getNamespaces(true), $xml->getDocNamespaces(true)); |
287 |
290 |