Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- public function get_practices_by_filter($sourceService, &$error) {
- // DrupalSoapClient
- $dsc = $this->getDsc();
- if (!$this->setWsdlError($error)) {
- return NULL;
- }
- $method_name = 'TestConnection';
- $method_result_name = $method_name .'Result';
- $params = array(
- 'sourceService' => 'SB',);
- // Calling the method
- $this->logTimes("Start {time}: $method_name");
- $call = $dsc->call($method_name, $params, TRUE);
- $error = $call['#error'] ? $call['#error'] .' - '. $call['#return'] : '';
- $this->logErrors($call, $method_name);
- $this->logTimes("End {time}: $method_name");
- //Return
- return $call['#return'][$method_result_name];
- }
Add Comment
Please, Sign In to add comment