src/SoapRequestsGenerator.php
public static function generateCreateRequest( Entity $entity ) {
        /* Generate the CreateRequest message */
        $createRequestDOM = new DOMDocument();
        $createNode       = $createRequestDOM->appendChild( $createRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services', 'Create' ) );
        $createNode->appendChild( $createRequestDOM->importNode( $entity->getEntityDOM(), true ) );

        /* Return the DOMNode */

        return $createNode;
    }
public static function generateCreateRequest( Entity $entity ) {
        /* Generate the CreateRequest message */
        $createRequestDOM = new DOMDocument();
        $createNode       = $createRequestDOM->appendChild( $createRequestDOM->createElementNS( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services', 'Create' ) );
        $createNode->appendChild( $createRequestDOM->importNode( $entity->getEntityDOM(), true ) );

        /* Return the DOMNode */

        return $createNode;
    }
public static function generateCreateRequest ( Entity $ entity ) { /* Generate the CreateRequest message */ $ createRequestDOM = new DOMDocument ( ) ; $ createNode = $ createRequestDOM -> appendChild ( $ createRequestDOM -> createElementNS ( 'http://schemas.microsoft.com/xrm/2011/Contracts/Services' , 'Create' ) ) ; $ createNode -> appendChild ( $ createRequestDOM -> importNode ( $ entity -> getEntityDOM ( ) , true ) ) ; /* Return the DOMNode */ return $ createNode ; }
Generate a Create Request

@param Entity $entity

@return DOMNode
Generate a Create Request