Guest User

Untitled

a guest
Jul 27th, 2011
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?
  2. $username = 'web_service';
  3. $password = 'webadmin';
  4.          
  5. $result = '';
  6. try {
  7.     $client= new SoapClient('http://69.70.226.251/InfoBase1/ws/test_ws1.1cws?wsdl',
  8.  
  9.     array('location'=>'http://69.70.226.251/InfoBase1/ws/test_ws1.1cws','login' => $username,
  10.  
  11.                 'password' => $password));
  12.  
  13.     try
  14.     {
  15.         $result.=$client->CheckUserNameExist(array('UserName'=>$username))->return;
  16.     }
  17.     catch (Exception $e)
  18.     {
  19.         $result.='Caught exception: '.$e->getMessage()."\n";
  20.     };
  21.        
  22. }
  23. catch (Exception $e)
  24. {
  25.     $result.= 'Caught exception: '. $e->getMessage()."\n";
  26. };
  27.  
  28. echo $result;
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment