src/SoapActions.php
public function getSoapAction( $service, $soapAction ) {
        /* Capitalize first char in action name */
        $action = $soapAction; /* ucfirst(strtolower($soapAction)); */
        /* Switch service for soap action */
        switch ( strtolower( $service ) ) {
            case "organization":
                return $this->getOrganizationAction( $action );
                break;
            case "discovery":
                return $this->getDiscoveryAction( $action );
                break;
            default:
                throw new Exception( "Undefined service(" . $service . ") for soap action(" . $action . ")" );
        }
    }
public function getSoapAction( $service, $soapAction ) {
        /* Capitalize first char in action name */
        $action = $soapAction; /* ucfirst(strtolower($soapAction)); */
        /* Switch service for soap action */
        switch ( strtolower( $service ) ) {
            case "organization":
                return $this->getOrganizationAction( $action );
                break;
            case "discovery":
                return $this->getDiscoveryAction( $action );
                break;
            default:
                throw new Exception( "Undefined service(" . $service . ") for soap action(" . $action . ")" );
        }
    }
public function getSoapAction ( $ service , $ soapAction ) { /* Capitalize first char in action name */ $ action = $ soapAction ; /* ucfirst(strtolower($soapAction)); */ /* Switch service for soap action */ switch ( strtolower ( $ service ) ) { case "organization" : return $ this -> getOrganizationAction ( $ action ) ; break ; case "discovery" : return $ this -> getDiscoveryAction ( $ action ) ; break ; default : throw new Exception ( "Undefined service(" . $ service . ") for soap action(" . $ action . ")" ) ; } }
Utility function to get the SoapAction

@param string $service Dynamics CRM soap service, can be 'organization' or 'discovery'
@param string $soapAction Action for soap method

@return string
@throws Exception
Utility function to get the SoapAction