+
+ $data = xmlrpc_decode($response->getBody(), $this->__encoding);
+ if (xmlrpc_is_fault($data)) {
+ throw new Exception(
+ (string) $data['faultString'],
+ (int) $data['faultCode']
+ );
+ }
+
+ return $data;
+ }
+
+ /**
+ * Returns self, where namespace is set to variable name
+ *
+ * @param string $ns
+ * @return XmlRpcRequest
+ */
+ public function __get($ns)
+ {
+ $this->__namespace = $ns;
+ return $this;