registerWrapper(); $client = new Wexo_Integration_Helper_NTLMSoapClient($this->_baseUrl . $page, array ( 'cache_wsdl'=>WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => true)); $filterQuery = array ( 'filter' => array(), 'setSize' => $size ); foreach ( $filter as $field => $criteria ) { array_push ( $filterQuery['filter'], array ( 'Field' => $field, 'Criteria' => $criteria ) ); } if ( count ($filter)) $result = $client->ReadMultiple( $filterQuery ); else $result = $client->ReadMultiple(); $result = $result->ReadMultiple_Result->$page; return $result; } public function createData ( $page, $params ) { $this->registerWrapper(); $client = new Wexo_Integration_Helper_NTLMSoapClient($this->_baseUrl . $page, array ( 'cache_wsdl'=>WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => true)); return $client->Create ( $params ); } public function createMultiple ( $page, $params ) { $this->registerWrapper(); $client = new Wexo_Integration_Helper_NTLMSoapClient($this->_baseUrl . $page, array ( 'cache_wsdl'=>WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => true)); return $client->CreateMultiple ( $params ); } public function callCustomFunction ( $page, $function, $params ) { $this->registerWrapper(); $client = new Wexo_Integration_Helper_NTLMSoapClient($this->_baseUrl . $page, array ( 'cache_wsdl'=>WSDL_CACHE_NONE, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS, 'trace' => true, 'custom_params' => $params )); $result = call_user_func_array ( array ( $client, $function ), array ( $function => $params ) ); return $result; } }