Issue #0001653: worlcheck class new updates
This commit is contained in:
parent
338afb7711
commit
e82be237fe
@ -66,6 +66,8 @@ class WsWorldCheck
|
||||
$header = new SoapHeader($this->headerData['namespace'], $this->headerData['securityType'], $headerVar, true);
|
||||
return $header;
|
||||
}
|
||||
|
||||
//**** SCREENER WSDL ****//
|
||||
|
||||
/**
|
||||
* getScreener
|
||||
@ -88,4 +90,767 @@ class WsWorldCheck
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** CONTENT WSDL ****//
|
||||
|
||||
/**
|
||||
* getContentSources
|
||||
* @return Content Sources
|
||||
*/
|
||||
public function getContentSources()
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
try {
|
||||
return $client->getContentSources()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getDetails
|
||||
* @param string matchIdentifier
|
||||
* @return object content
|
||||
*/
|
||||
public function getDetailsContent($matchIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $matchIdentifier;
|
||||
try {
|
||||
return $client->getDetails($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getSummaries
|
||||
* @param object
|
||||
* @return object content
|
||||
*/
|
||||
public function getSummaries($data)
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $data->matchIdentifier;
|
||||
$param->matchType = $data->matchType; // value must be watchlist
|
||||
$param->start = $data->start;
|
||||
$param->limit = $data->limit;
|
||||
|
||||
try {
|
||||
return $client->getSummaries($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getSummariesForMatch
|
||||
* @param string matchIdentifier
|
||||
* @return object content
|
||||
*/
|
||||
public function getSummariesForMatch($matchIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $matchIdentifier;
|
||||
try {
|
||||
return $client->getSummariesForMatch($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getTitles
|
||||
* @param object
|
||||
* @return object content
|
||||
*/
|
||||
public function getTitles($data)
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $data->matchIdentifier;
|
||||
$param->matchType = $data->matchType; // value must be watchlist
|
||||
$param->start = $data->start;
|
||||
$param->limit = $data->limit;
|
||||
|
||||
try {
|
||||
return $client->getTitles($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getTitlesForMatch
|
||||
* @param string matchIdentifier
|
||||
* @return object content
|
||||
*/
|
||||
public function getTitlesForMatch($matchIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('content');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = $matchIdentifier;
|
||||
try {
|
||||
return $client->getTitlesForMatch($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** USER WSDL ****//
|
||||
|
||||
/**
|
||||
* change My Password
|
||||
* @param string new password
|
||||
* @return boolean
|
||||
*/
|
||||
public function changeMyPassword($newPassword)
|
||||
{
|
||||
$client = $this->loadClientWC('user');
|
||||
$param = new stdClass();
|
||||
$param->newPassword = $newPassword;
|
||||
try {
|
||||
return $client->changeMyPassword($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* reset Password
|
||||
* @param string username
|
||||
* @return new password
|
||||
*/
|
||||
public function resetPassword($username)
|
||||
{
|
||||
$client = $this->loadClientWC('user');
|
||||
$param = new stdClass();
|
||||
$param->username = $username;
|
||||
try {
|
||||
return $client->resetPassword($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get Usernames
|
||||
* @param string userIdentifier
|
||||
* @return object userNames
|
||||
*/
|
||||
public function getUserNames($userIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('user');
|
||||
$param = new stdClass();
|
||||
$param->userIdentifierList = new stdClass;
|
||||
$param->userIdentifierList->userIdentifiers = new stdClass();
|
||||
$param->userIdentifierList->userIdentifiers->userIdentifier = $userIdentifier;
|
||||
try {
|
||||
return $client->getUserNames($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** PREFERENCE WSDL ****//
|
||||
|
||||
/**
|
||||
* getAllGroupConfingVariables
|
||||
* @param string groupIdentifier
|
||||
* @return object preference
|
||||
*/
|
||||
public function getAllGroupConfingVariables($groupIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('preference');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
try {
|
||||
return $client->getAllGroupConfingVariables($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getGroupConfigVariable
|
||||
* @param string groupIdentifier
|
||||
* @return object preferenceValues
|
||||
*/
|
||||
public function getGroupConfigVariable($groupIdentifier, $groupConfigVariableType)
|
||||
{
|
||||
$client = $this->loadClientWC('preference');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
$param->groupConfigVariableType = $groupConfigVariableType;
|
||||
try {
|
||||
return $client->getGroupConfigVariable($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getGroupConfigVariables
|
||||
* @param string groupIdentifier
|
||||
* @param string groupConfigVariableType
|
||||
* @return object preferenceValues
|
||||
*/
|
||||
public function getGroupConfigVariables($groupIdentifier, $groupConfigVariableType)
|
||||
{
|
||||
$client = $this->loadClientWC('preference');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
$param->groupConfigVariableTypeSet = new stdClass();
|
||||
$param->groupConfigVariableTypeSet->groupConfigVariableTypes = new stdClass();
|
||||
$param->groupConfigVariableTypeSet->groupConfigVariableTypes->groupConfigVariableType = $groupConfigVariableType;
|
||||
|
||||
try {
|
||||
return $client->getGroupConfigVariables($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** STOREDNAME WSDL ****//
|
||||
|
||||
/**
|
||||
* getStoredNameModel
|
||||
* @param string groupIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function getStoredNameModel($groupIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('storedName');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
|
||||
try {
|
||||
return $client->getStoredNameModel($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getStoredNameModelForAllGroups
|
||||
* @return object
|
||||
*/
|
||||
public function getStoredNameModelForAllGroups()
|
||||
{
|
||||
$client = $this->loadClientWC('storedName');
|
||||
|
||||
try {
|
||||
return $client->getStoredNameModelForAllGroups()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getStoredNameModelGroups
|
||||
* @return object
|
||||
*/
|
||||
public function getStoredNameModelGroups()
|
||||
{
|
||||
$client = $this->loadClientWC('storedName');
|
||||
|
||||
try {
|
||||
return $client->getStoredNameModelGroups()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getUserFilters
|
||||
* @return object
|
||||
*/
|
||||
public function getUserFilters()
|
||||
{
|
||||
$client = $this->loadClientWC('storedName');
|
||||
|
||||
try {
|
||||
return $client->getUserFilters()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** NAME WSDL ****//
|
||||
|
||||
/**
|
||||
* addNote
|
||||
* @param string nameIdentifier
|
||||
* @param string note
|
||||
* @return object
|
||||
*/
|
||||
public function addNote($nameIdentifier, $note)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->nameIdentifierList = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers->nameIdentifier = $nameIdentifier;
|
||||
$param->note = $note;
|
||||
|
||||
try {
|
||||
return $client->addNote($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* changeOwner
|
||||
* @param string nameIdentifier
|
||||
* @param string ownerIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function changeOwner($nameIdentifier, $ownerIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->nameIdentifierList = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers->nameIdentifier = $nameIdentifier;
|
||||
$param->ownerIdentifier = $ownerIdentifier;
|
||||
|
||||
try {
|
||||
return $client->changeOwner($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getDetailsName
|
||||
* @param string nameIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function getDetailsName($nameIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->nameIdentifier = $nameIdentifier;
|
||||
|
||||
try {
|
||||
return $client->getDetails($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getMatches
|
||||
* @param string nameIdentifier
|
||||
* @param string matchType
|
||||
* @param int start
|
||||
* @param int limit
|
||||
* @return object
|
||||
*/
|
||||
public function getMatches($nameIdentifier, $matchType, $start, $limit)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->nameIdentifier = $nameIdentifier;
|
||||
$param->matchType = $matchType;
|
||||
$param->start = $start;
|
||||
$param->limit = $limit;
|
||||
|
||||
try {
|
||||
return $client->getMatches($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getSelectableAssignees
|
||||
* @param string groupIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function getSelectableAssignees($groupIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
|
||||
try {
|
||||
return $client->getSelectableAssignees($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getSelectableGroups
|
||||
* @return object
|
||||
*/
|
||||
public function getSelectableGroups()
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
|
||||
try {
|
||||
return $client->getSelectableGroups()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getSelectableOwners
|
||||
* @return object
|
||||
*/
|
||||
public function getSelectableOwners($groupIdentifier, $nameSystemStatus)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
$param->nameSystemStatus = $nameSystemStatus;
|
||||
|
||||
try {
|
||||
return $client->getSelectableOwners($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* saveForOngoingScreening
|
||||
* @param string nameIdentifier
|
||||
* @param string ownerIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function saveForOngoingScreening($nameIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('name');
|
||||
$param = new stdClass();
|
||||
$param->nameIdentifierList = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers = new stdClass();
|
||||
$param->nameIdentifierList->nameIdentifiers->nameIdentifier = $nameIdentifier;
|
||||
|
||||
try {
|
||||
return $client->saveForOngoingScreening($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//**** MATCH WSDL ****//
|
||||
|
||||
/**
|
||||
* acknoledge
|
||||
* @param string matchIdentifier
|
||||
* @param string note
|
||||
* @return object
|
||||
*/
|
||||
public function acknoledge($matchIdentifier, $note)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifierList = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers->matchIdentifier = $matchIdentifier;
|
||||
$param->note = $note;
|
||||
|
||||
try {
|
||||
return $client->acknoledge($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* addNote
|
||||
* @param string matchIdentifier
|
||||
* @param string note
|
||||
* @return object
|
||||
*/
|
||||
public function addNote($matchIdentifier, $note)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifierList = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers->matchIdentifier = $matchIdentifier;
|
||||
$param->note = $note;
|
||||
|
||||
try {
|
||||
return $client->addNote($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getDetailsMatch
|
||||
* @param string matchIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function getDetailsMatch($matchIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifier = new stdClass();
|
||||
$param->matchIdentifier = $matchIdentifier;
|
||||
|
||||
try {
|
||||
return $client->getDetails($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getNewUpdatedNameModel
|
||||
* @param string groupIdentifier
|
||||
* @return object
|
||||
*/
|
||||
public function getNewUpdatedNameModel($groupIdentifier)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
$param->groupIdentifier = new stdClass();
|
||||
$param->groupIdentifier = $groupIdentifier;
|
||||
|
||||
try {
|
||||
return $client->getNewUpdatedNameModel($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getNewUpdatedNameModelForAllGroups
|
||||
* @return object
|
||||
*/
|
||||
public function getNewUpdatedNameModelForAllGroups()
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
|
||||
try {
|
||||
return $client->getNewUpdatedNameModelForAllGroups()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getNewUpdatedNameModelGroups
|
||||
* @return object
|
||||
*/
|
||||
public function getNewUpdatedNameModelGroups()
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
|
||||
try {
|
||||
return $client->getNewUpdatedNameModelGroups()->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getNewUpdatedNames
|
||||
* @param object $data
|
||||
* @return object
|
||||
*/
|
||||
public function getNewUpdatedNames($data)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
//to be continued
|
||||
|
||||
try {
|
||||
return $client->getNewUpdatedNames($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* resolve
|
||||
* @param object $data
|
||||
* @return object
|
||||
*/
|
||||
public function resolve($data)
|
||||
{
|
||||
$client = $this->loadClientWC('match');
|
||||
$param = new stdClass();
|
||||
$param->matchIdentifierList = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers = new stdClass();
|
||||
$param->matchIdentifierList->matchIdentifiers->matchIdentifier = $data->matchIdentifier;
|
||||
$param->matchRisk = $data->matchRisk;
|
||||
$param->matchStatus = $data->matchStatus;
|
||||
$param->note = $data->note;
|
||||
|
||||
try {
|
||||
return $client->resolve($param)->return;
|
||||
} catch (SoapFault $fault) {
|
||||
if ( in_array($fault->faultcode, array('ERR', 'MSG')) ){
|
||||
return $fault->faultstring;
|
||||
} else {
|
||||
echo $client->__getLastResponse();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user