Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Data, connection, auth
- $dataCode = "BNALRC64D09H1631"; // checkthiscode
- $soapUrl = "https://myurl............"; // WSDL
- $soapUser = "my_user"; // username
- $soapPassword = "my_Password"; // password
- //Create the client object
- $soapclient = new SoapClient($soapUrl);
- //Use the functions of the client with params array
- $params = array(
- 'credentials' => array(
- 'wsUsername' => $soapUser,
- 'wsPassword' => $soapPassword),
- 'fiscalCode' => $dataCF
- );
- $response = $soapclient->checkMemberByFiscalCode($params);
- if ($response->return->member && !$response->return->student) {
- echo: "Exist";
- } else {
- echo: "Doesen't exist";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement