Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $username = 'web_service';
- $password = 'webadmin';
- $result = '';
- try {
- $client= new SoapClient('http://69.70.226.251/InfoBase1/ws/test_ws1.1cws?wsdl',
- array('location'=>'http://69.70.226.251/InfoBase1/ws/test_ws1.1cws','login' => $username,
- 'password' => $password));
- try
- {
- $result.=$client->CheckUserNameExist(array('UserName'=>$username))->return;
- }
- catch (Exception $e)
- {
- $result.='Caught exception: '.$e->getMessage()."\n";
- };
- }
- catch (Exception $e)
- {
- $result.= 'Caught exception: '. $e->getMessage()."\n";
- };
- echo $result;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment