src/SoapRequestsGenerator.php
public static function generateRetrieveOrganizationRequest() {
        $retrieveOrganizationRequestDOM = new DOMDocument();
        $executeNode                    = $retrieveOrganizationRequestDOM->appendChild( $retrieveOrganizationRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Discovery', 'Execute' ) );
        $requestNode                    = $executeNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'request' ) );
        $requestNode->setAttributeNS( 'http://www.w3.org/2001/XMLSchema-instance', 'i:type', 'RetrieveOrganizationsRequest' );
        $requestNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'AccessType', 'Default' ) );
        $requestNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'Release', 'Current' ) );

        return $executeNode;
    }
public static function generateRetrieveOrganizationRequest() {
        $retrieveOrganizationRequestDOM = new DOMDocument();
        $executeNode                    = $retrieveOrganizationRequestDOM->appendChild( $retrieveOrganizationRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Discovery', 'Execute' ) );
        $requestNode                    = $executeNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'request' ) );
        $requestNode->setAttributeNS( 'http://www.w3.org/2001/XMLSchema-instance', 'i:type', 'RetrieveOrganizationsRequest' );
        $requestNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'AccessType', 'Default' ) );
        $requestNode->appendChild( $retrieveOrganizationRequestDOM->createElement( 'Release', 'Current' ) );

        return $executeNode;
    }
public static function generateRetrieveOrganizationRequest ( ) { $ retrieveOrganizationRequestDOM = new DOMDocument ( ) ; $ executeNode = $ retrieveOrganizationRequestDOM -> appendChild ( $ retrieveOrganizationRequestDOM -> createElementNS ( 'http://schemas.microsoft.com/xrm/2011/Contracts/Discovery' , 'Execute' ) ) ; $ requestNode = $ executeNode -> appendChild ( $ retrieveOrganizationRequestDOM -> createElement ( 'request' ) ) ; $ requestNode -> setAttributeNS ( 'http://www.w3.org/2001/XMLSchema-instance' , 'i:type' , 'RetrieveOrganizationsRequest' ) ; $ requestNode -> appendChild ( $ retrieveOrganizationRequestDOM -> createElement ( 'AccessType' , 'Default' ) ) ; $ requestNode -> appendChild ( $ retrieveOrganizationRequestDOM -> createElement ( 'Release' , 'Current' ) ) ; return $ executeNode ; }
Utility function to generate the XML for a Retrieve Organization request
This XML can be sent as a SOAP message to the Discovery Service to determine all Organizations
available on that service.

@return DOMNode containing the XML for a RetrieveOrganizationRequest message
@ignore
Utility function to generate the XML for a Retrieve Organization request This XML can be sent as a SOAP message to the Discovery Service to determine all Organizations available on that service .