Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. // AuthenticateMember;
  2. $client_userName = '117124';
  3. $client_password = '175853530';
  4.  
  5. try {
  6.     $isAlive = $soapclient->AuthenticateMember(array(
  7.         'auth' => new SoapVar(
  8.           array(
  9.             'UserName' => $client_userName,
  10.             'Pwd' => $client_password
  11.           ),
  12.           SOAP_ENC_OBJECT,
  13.           'MemberAuthentication',
  14.           'http://schemas.datacontract.org/2004/07/ConstructionFederation'
  15.         ),
  16.         'userName' => CONST_WS_USERNAME,
  17.         'password' => CONST_WS_PASSWORD
  18.       ));
  19. } catch (Exception $e) {
  20.     echo 'Caught exception: ',  $e->getMessage(), "\n";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement