Ajout des options serveur soap
This commit is contained in:
parent
32bb4adc5d
commit
0baecf1742
@ -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');
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user