public function sendTransportContents() {
        if (!$this->verifySendParams()) {
            return false;
        }

        $this->prepareSend();

        $url = $this->urlbase.$this->urlbranch;

        $query = $this->genQuery();

        $path = $this->options['Action'].'Result';
        if ($this->mockMode){
            $xml = $this->fetchMockFile();
        } else {
            $response = $this->sendRequest($url, array('Post'=>$query));

            if (!$this->checkResponse($response)){
                return false;
            }

            $xml = simplexml_load_string($response['body']);
        }

        $this->parseXml($xml->$path);
    }
public function sendTransportContents() {
        if (!$this->verifySendParams()) {
            return false;
        }

        $this->prepareSend();

        $url = $this->urlbase.$this->urlbranch;

        $query = $this->genQuery();

        $path = $this->options['Action'].'Result';
        if ($this->mockMode){
            $xml = $this->fetchMockFile();
        } else {
            $response = $this->sendRequest($url, array('Post'=>$query));

            if (!$this->checkResponse($response)){
                return false;
            }

            $xml = simplexml_load_string($response['body']);
        }

        $this->parseXml($xml->$path);
    }
public function sendTransportContents ( ) { if ( ! $ this -> verifySendParams ( ) ) { return false ; } $ this -> prepareSend ( ) ; $ url = $ this -> urlbase . $ this -> urlbranch ; $ query = $ this -> genQuery ( ) ; $ path = $ this -> options [ 'Action' ] . 'Result' ; if ( $ this -> mockMode ) { $ xml = $ this -> fetchMockFile ( ) ; } else { $ response = $ this -> sendRequest ( $ url , array ( 'Post' => $ query ) ) ; if ( ! $ this -> checkResponse ( $ response ) ) { return false ; } $ xml = simplexml_load_string ( $ response [ 'body' ] ) ; } $ this -> parseXml ( $ xml -> $ path ) ; }
Sends transport content information for a shipment with Amazon.

Submits a <i>PutTransportContent</i> request to Amazon. In order to do this,
a fulfillment shipment ID, shipment type, IsPartnered, and
various details are required. The exact details required depend on the
IsPartnered and shipment type parameters set.
Amazon will send a status back as a response, which can be retrieved
using <i>getStatus</i>.
@return boolean <b>FALSE</b> if something goes wrong
@see verifySendParams
Sends transport content information for a shipment with Amazon .