Ajout des options serveur soap

This commit is contained in:
Michael RICOIS 2011-01-19 16:40:02 +00:00
parent 32bb4adc5d
commit 0baecf1742
2 changed files with 8 additions and 2 deletions

View File

@ -92,7 +92,10 @@ class ServiceController extends Zend_Controller_Action
{
if (APPLICATION_ENV == 'production') {
// @todo Vérifier la présence du fichier sinon envoyer erreur
$server = new Zend_Soap_Server($fichierWsdl);
$options = array(
'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS,
);
$server = new Zend_Soap_Server($fichierWsdl, $options);
} else {
$hostName = $this->getRequest()->getHttpHost();
$server = new Zend_Soap_Server('http://'.$hostName.'/service?wsdl-auto');

View File

@ -46,7 +46,10 @@ class SinterneController extends Zend_Controller_Action
try
{
$hostName = $this->getRequest()->getHttpHost();
$server = new Zend_Soap_Server('http://'.$hostName.'/sinterne?wsdl');
$options = array(
'features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS,
);
$server = new Zend_Soap_Server('http://'.$hostName.'/sinterne?wsdl', $options);
$proxy = new WrappedService_Proxy('WsInterne', array(), array('wrappedParts' => true));
$server->setObject($proxy);
$server->setClassmap($this->classmap);