<?php

namespace patest\ServiceType;

use \WsdlToPhp\PackageBase\AbstractSoapClientBase;

/**
 * This class stands for Invalidate ServiceType
 * @subpackage Services
 */
class Invalidate extends AbstractSoapClientBase
{
    /**
     * Sets the Context SoapHeader param
     * @uses AbstractSoapClientBase::setSoapHeader()
     * @param \patest\StructType\Context $context
     * @param string $nameSpace
     * @param bool $mustUnderstand
     * @param string $actor
     * @return bool
     */
    public function setSoapHeaderContext(\patest\StructType\Context $context, $nameSpace = 'http://foundation.toptix.com/2007', $mustUnderstand = false, $actor = null)
    {
        return $this->setSoapHeader($nameSpace, 'Context', $context, $mustUnderstand, $actor);
    }
    /**
     * Sets the SroBusinessFlow SoapHeader param
     * @uses AbstractSoapClientBase::setSoapHeader()
     * @param \patest\StructType\SroBusinessFlow $sroBusinessFlow
     * @param string $nameSpace
     * @param bool $mustUnderstand
     * @param string $actor
     * @return bool
     */
    public function setSoapHeaderSroBusinessFlow(\patest\StructType\SroBusinessFlow $sroBusinessFlow, $nameSpace = 'http://foundation.toptix.com/2007', $mustUnderstand = false, $actor = null)
    {
        return $this->setSoapHeader($nameSpace, 'SroBusinessFlow', $sroBusinessFlow, $mustUnderstand, $actor);
    }
    /**
     * Method to call the operation originally named
     * InvalidateEntityManagementQueryToken
     * Meta information extracted from the WSDL
     * - SOAPHeaderNames: Context, SroBusinessFlow
     * - SOAPHeaderNamespaces: http://foundation.toptix.com/2007, http://foundation.toptix.com/2007
     * - SOAPHeaderTypes: \patest\StructType\Context, \patest\StructType\SroBusinessFlow
     * - SOAPHeaders: required, required
     * @uses AbstractSoapClientBase::getSoapClient()
     * @uses AbstractSoapClientBase::setResult()
     * @uses AbstractSoapClientBase::getResult()
     * @uses AbstractSoapClientBase::saveLastError()
     * @param \patest\StructType\InvalidateEntityManagementQueryTokenRequest $iFoundationService_InvalidateEntityManagementQueryToken_RequestMsg
     * @return \patest\StructType\InvalidateEntityManagementQueryTokenResponse|bool
     */
    public function InvalidateEntityManagementQueryToken(\patest\StructType\InvalidateEntityManagementQueryTokenRequest $iFoundationService_InvalidateEntityManagementQueryToken_RequestMsg)
    {
        try {
            $this->setResult($this->getSoapClient()->InvalidateEntityManagementQueryToken($iFoundationService_InvalidateEntityManagementQueryToken_RequestMsg));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }
    /**
     * Method to call the operation originally named
     * InvalidateExpiredEntityManagementQueryTokens
     * Meta information extracted from the WSDL
     * - SOAPHeaderNames: SroBusinessFlow
     * - SOAPHeaderNamespaces: http://foundation.toptix.com/2007
     * - SOAPHeaderTypes: \patest\StructType\SroBusinessFlow
     * - SOAPHeaders: required
     * @uses AbstractSoapClientBase::getSoapClient()
     * @uses AbstractSoapClientBase::setResult()
     * @uses AbstractSoapClientBase::getResult()
     * @uses AbstractSoapClientBase::saveLastError()
     * @param \patest\StructType\InvalidateExpiredEntityManagementQueryTokensRequest $iFoundationService_InvalidateExpiredEntityManagementQueryTokens_RequestMsg
     * @return \patest\StructType\InvalidateExpiredEntityManagementQueryTokensResponse|bool
     */
    public function InvalidateExpiredEntityManagementQueryTokens(\patest\StructType\InvalidateExpiredEntityManagementQueryTokensRequest $iFoundationService_InvalidateExpiredEntityManagementQueryTokens_RequestMsg)
    {
        try {
            $this->setResult($this->getSoapClient()->InvalidateExpiredEntityManagementQueryTokens($iFoundationService_InvalidateExpiredEntityManagementQueryTokens_RequestMsg));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }
    /**
     * Returns the result
     * @see AbstractSoapClientBase::getResult()
     * @return \patest\StructType\InvalidateEntityManagementQueryTokenResponse|\patest\StructType\InvalidateExpiredEntityManagementQueryTokensResponse
     */
    public function getResult()
    {
        return parent::getResult();
    }
}
