Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. //Data, connection, auth
  5. $dataCode = "BNALRC64D09H1631"; // checkthiscode
  6. $soapUrl = "https://myurl............"; // WSDL
  7. $soapUser = "my_user"; // username
  8. $soapPassword = "my_Password"; // password
  9.  
  10. //Create the client object
  11. $soapclient = new SoapClient($soapUrl);
  12.  
  13. //Use the functions of the client with params array
  14. $params = array(
  15. 'credentials' => array(
  16. 'wsUsername' => $soapUser,
  17. 'wsPassword' => $soapPassword),
  18. 'fiscalCode' => $dataCF
  19. );
  20.  
  21. $response = $soapclient->checkMemberByFiscalCode($params);
  22.  
  23. if ($response->return->member && !$response->return->student) {
  24. echo: "Exist";
  25.  
  26. } else {
  27. echo: "Doesen't exist";
  28.  
  29. }
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement