From ceb69d97c3cf4e7d3c08a5078a9164bc42886de1 Mon Sep 17 00:00:00 2001 From: Gianluigi 'cocciagialla' Mammarella Date: Wed, 10 Apr 2019 07:20:49 +0200 Subject: [PATCH] Fix binding name and soapAction attribute on wsdl --- src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php b/src/BeSimple/SoapWsdl/Dumper/AbstractVersion.php index c67c035..f8a394b 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.'Binding'); + $this->bindingNode->setAttribute('name', $this->name.'_SOAP'); $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.'Binding'); + $this->servicePortNode->setAttribute('binding', $this->typeNs.':'.$this->name.'_SOAP'); $this->addSoapAddress(); } @@ -89,7 +89,7 @@ abstract class AbstractVersion implements VersionInterface $operation->setAttribute('name', $method->getName()); $soapOperation = $this->document->createElement($this->soapNs.':operation'); - $soapOperation->setAttribute('soapAction', $this->namespace.$method->getName()); + $soapOperation->setAttribute('soapAction', $this->namespace.'/'.$method->getName()); $operation->appendChild($soapOperation); $this->getBindingNode()->appendChild($operation);