Hi community people,
I have a soapserver which has been working well, but for some reason it
stopped working. Could be because I changed my htaccess some time ago.
I have the following structure:
application
configs
controllers
forms
models
views
public
index.php
My soap controller looks like this:
private $_WSDL_URI = null;
public function init()
{
$this->_helper->layout->disableLayout("layout.phtml");
$this->_helper->viewRenderer->setNoRender();
$this->_WSDL_URI = "http://www.mydomain.org/controller?wsdl";
}
public function indexAction()
{
if(isset($_GET['wsdl'])) {
$this->handleWSDL();
} else {
$this->handleSOAP();
}
}
private function handleWSDL() {
$autodiscover = new
OpenSolarDB_WS_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex');
$autodiscover->setClass('MyClass');
$autodiscover->handle();
}
private function handleSOAP() {
$soap = new Zend_Soap_Server($this->_WSDL_URI);
$soap->setClass('Myclass');
$soap->handle();
}
My htaccess looks like this:
RewriteCond %{REQUEST_URI} !/forum.*$
RewriteRule ^(.*)$ /public/$1 [QSA,L]
When I call the service from a soap client, I get the 500 Internal Server
Error .
However when I put as WSDL_URI =
"http://www.mydomain.org/public/index.php/controller?wsdl" (added
public/index.php )and when I call from my client to this same url, the call
from the client works!!! But of course, that is not wat I want.
My question: is there a way (change .htaccess???) that also a call to
http://www.mydomain.org/controller?wsdl will work?
Regards,
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Internal-server-error-500-on-new-Zend-Soap-Server-tp4659418.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]