public function captureAll($options = array()) { try { $xml = VelocityXmlCreator::captureAllXML(); // got capture xml object. $xml->formatOutput = TRUE; $body = $xml->saveXML(); //echo '<xmp>'.$body.'</xmp>'; die; list($error, $response) = $this->connection->put('Txn/' . self::$workflowid, array('sessiontoken' => $this->sessionToken, 'xml' => $body, 'method' => self::$Txn_method[9])); return $response; //return $this->handleResponse($error, $response); } catch (Exception $e) { throw new Exception($e->getMessage()); } }