/** * Set soap request * * @param Request $request * @return self */ public function setRequest(Request $request) { $this->_request = $request; $this->addNamespace($this->_request->getXmlNamespace()); $this->_body = $request->toXml(); $namespaces = array_values($this->_body->getDocNamespaces(true)); $this->addNamespace($namespaces); return $this; }