2009年2月2日星期一

[fw-webservices] SoapFault exception: [Sender] looks like we got no XML document

I'm getting the following error from Zend_Soap_Client: SoapFault exception:
[Sender] looks like we got no XML document. Code:

//The server
public function indexAction()
{
$server = new Zend_Soap_Server('wsdl/webprofile.wsdl');
$server->setClass('Profile_Web');
$server->handle();
Zend_Layout::getMvcInstance()->disableLayout();
$this->_helper->viewRenderer->setNeverRender();
}

//The client
public function clientAction(){
$client = new Zend_Soap_Client('http://myhome/wsdl/webprofile.wsdl',
array(
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP |
5));
$result = $client->communityService('username');
$this->_helper->viewRenderer->setNeverRender();
}

Wsdl works fine ($client->getFunctions() works fine), there is no while
space before <?php in the served class. I've hit a dead end :(
--
View this message in context: http://www.nabble.com/SoapFault-exception%3A--Sender--looks-like-we-got-no-XML-document-tp21800185p21800185.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: