Guest User

Untitled

a guest
Feb 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?php
  2. public function get_practices_by_filter($sourceService, &$error) {
  3. // DrupalSoapClient
  4. $dsc = $this->getDsc();
  5.  
  6. if (!$this->setWsdlError($error)) {
  7. return NULL;
  8. }
  9.  
  10. $method_name = 'TestConnection';
  11. $method_result_name = $method_name .'Result';
  12.  
  13. $params = array(
  14. 'sourceService' => 'SB',);
  15.  
  16. // Calling the method
  17. $this->logTimes("Start {time}: $method_name");
  18. $call = $dsc->call($method_name, $params, TRUE);
  19. $error = $call['#error'] ? $call['#error'] .' - '. $call['#return'] : '';
  20. $this->logErrors($call, $method_name);
  21. $this->logTimes("End {time}: $method_name");
  22.  
  23. //Return
  24. return $call['#return'][$method_result_name];
  25. }
Add Comment
Please, Sign In to add comment