Codice PHP:
try {
// create client in WSDL mode
$client = new WSClient(array ("wsdl" =>"https://mnsews.infocamere.it/Minosse2WebService/services/urn:Minosse?wsdl",
"classmap" => $class_map));
// get proxy object reference form client
$proxy = $client->getProxy();
// create input object and set values
$input = new register();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->register($input);
//TODO: Implement business logic to consume $response, which is of type anyType
$input = new getGroup();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getGroup($input);
//TODO: Implement business logic to consume $response, which is of type getGroupResponse
$input = new login();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->login($input);
//TODO: Implement business logic to consume $response, which is of type loginResponse
$input = new getProfiles();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getProfiles($input);
//TODO: Implement business logic to consume $response, which is of type getProfilesResponse
$input = new logout();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->logout($input);
//TODO: Implement business logic to consume $response, which is of type anyType
$input = new certificateLogin();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->certificateLogin($input);
//TODO: Implement business logic to consume $response, which is of type certificateLoginResponse
$input = new logoutAndLogin();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->logoutAndLogin($input);
//TODO: Implement business logic to consume $response, which is of type logoutAndLoginResponse
$input = new connectionLogin();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->connectionLogin($input);
//TODO: Implement business logic to consume $response, which is of type connectionLoginResponse
$input = new getUserId();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getUserId($input);
//TODO: Implement business logic to consume $response, which is of type getUserIdResponse
$input = new verifyRequest();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->verifyRequest($input);
//TODO: Implement business logic to consume $response, which is of type verifyRequestResponse
$input = new getIut();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getIut($input);
//TODO: Implement business logic to consume $response, which is of type getIutResponse
$input = new getAnagrafica();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getAnagrafica($input);
//TODO: Implement business logic to consume $response, which is of type getAnagraficaResponse
$input = new verifyProfile();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->verifyProfile($input);
//TODO: Implement business logic to consume $response, which is of type verifyProfileResponse
$input = new verifyRole();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->verifyRole($input);
//TODO: Implement business logic to consume $response, which is of type verifyRoleResponse
$input = new writeLogAccount();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->writeLogAccount($input);
//TODO: Implement business logic to consume $response, which is of type anyType
$input = new changePassword();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->changePassword($input);
//TODO: Implement business logic to consume $response, which is of type anyType
$input = new connectionAndCertificateLogin();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->connectionAndCertificateLogin($input);
//TODO: Implement business logic to consume $response, which is of type connectionAndCertificateLoginResponse
$input = new sessionout();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->sessionout($input);
//TODO: Implement business logic to consume $response, which is of type anyType
$input = new getAnagraficaItem();
//TODO: fill in the class fields of $input to match your business logic
// call the operation
$response = $proxy->getAnagraficaItem($input);
//TODO: Implement business logic to consume $response, which is of type getAnagraficaItemResponse
} catch (Exception $e) {
// in case of an error, process the fault
if ($e instanceof WSFault) {
printf("Soap Fault: %s\n", $e->Reason);
} else {
printf("Message = %s\n", $e->getMessage());
}
}