From 95706abbd7b89c0fc76ff677a1ac29bc73fe22ed Mon Sep 17 00:00:00 2001 From: Teddy Cornaut Date: Thu, 19 Sep 2019 15:29:04 -0400 Subject: [PATCH] =?UTF-8?q?Retour=20=C3=A0=20une=20signature=20iso=20PROD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BeSimple/SoapCommon/Definition/Method.php | 10 ++-------- src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/BeSimple/SoapCommon/Definition/Method.php b/src/BeSimple/SoapCommon/Definition/Method.php index 5c10f56..99b1f4c 100644 --- a/src/BeSimple/SoapCommon/Definition/Method.php +++ b/src/BeSimple/SoapCommon/Definition/Method.php @@ -12,8 +12,6 @@ namespace BeSimple\SoapCommon\Definition; -use BeSimple\SoapCommon\Definition\Type\TypeRepository; - /** * @author Francis Besset */ @@ -53,7 +51,7 @@ class Method public function getUse() { - return \SOAP_ENCODED; + return \SOAP_LITERAL; } public function addHeader($name, $type) @@ -68,11 +66,7 @@ class Method public function setOutput($type, $name = 'return') { - if ('return' !== $name) { - $this->output = new Message($name); - } - - $this->output->add($name, $type); + $this->output->add('return', $type); } public function getHeaders() diff --git a/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php b/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php index e56f2df..c67c035 100644 --- a/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php +++ b/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php @@ -61,7 +61,7 @@ abstract class AbstractVersion implements VersionInterface { if (!$this->bindingNode) { $this->bindingNode = $this->document->createElement('binding'); - $this->bindingNode->setAttribute('name', $this->name.'_SOAP'); + $this->bindingNode->setAttribute('name', $this->name.'Binding'); $this->bindingNode->setAttribute('type', $this->portTypeName); $this->addSoapBinding(); @@ -75,7 +75,7 @@ abstract class AbstractVersion implements VersionInterface if (!$this->servicePortNode) { $this->servicePortNode = $this->document->createElement('port'); $this->servicePortNode->setAttribute('name', $this->name.'Port'); - $this->servicePortNode->setAttribute('binding', $this->typeNs.':'.$this->name.'_SOAP'); + $this->servicePortNode->setAttribute('binding', $this->typeNs.':'.$this->name.'Binding'); $this->addSoapAddress(); }