Retour à une signature iso PROD

This commit is contained in:
Teddy Cornaut 2019-09-19 15:29:04 -04:00
parent 6d5f9ff9e5
commit 95706abbd7
2 changed files with 4 additions and 10 deletions

View File

@ -12,8 +12,6 @@
namespace BeSimple\SoapCommon\Definition; namespace BeSimple\SoapCommon\Definition;
use BeSimple\SoapCommon\Definition\Type\TypeRepository;
/** /**
* @author Francis Besset <francis.besset@gmail.com> * @author Francis Besset <francis.besset@gmail.com>
*/ */
@ -53,7 +51,7 @@ class Method
public function getUse() public function getUse()
{ {
return \SOAP_ENCODED; return \SOAP_LITERAL;
} }
public function addHeader($name, $type) public function addHeader($name, $type)
@ -68,11 +66,7 @@ class Method
public function setOutput($type, $name = 'return') public function setOutput($type, $name = 'return')
{ {
if ('return' !== $name) { $this->output->add('return', $type);
$this->output = new Message($name);
}
$this->output->add($name, $type);
} }
public function getHeaders() public function getHeaders()

View File

@ -61,7 +61,7 @@ abstract class AbstractVersion implements VersionInterface
{ {
if (!$this->bindingNode) { if (!$this->bindingNode) {
$this->bindingNode = $this->document->createElement('binding'); $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->bindingNode->setAttribute('type', $this->portTypeName);
$this->addSoapBinding(); $this->addSoapBinding();
@ -75,7 +75,7 @@ abstract class AbstractVersion implements VersionInterface
if (!$this->servicePortNode) { if (!$this->servicePortNode) {
$this->servicePortNode = $this->document->createElement('port'); $this->servicePortNode = $this->document->createElement('port');
$this->servicePortNode->setAttribute('name', $this->name.'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(); $this->addSoapAddress();
} }