Updated to work with latest version of Zend\Soap
This commit is contained in:
parent
f0031e8923
commit
d2cdc9ccad
|
@ -99,7 +99,7 @@ class RpcLiteralRequestMessageBinder implements MessageBinderInterface
|
|||
$value = $this->processType($type->getValue(), $value);
|
||||
|
||||
if (!$type->isNillable() && null === $value) {
|
||||
throw new \SoapFault('SOAP_ERROR_COMPLEX_TYPE', sprintf('"%s:%s" cannot be null.', ucfirst(Wsdl::translateType($phpType)), $type->getName()));
|
||||
throw new \SoapFault('SOAP_ERROR_COMPLEX_TYPE', sprintf('"%s:%s" cannot be null.', ucfirst($phpType), $type->getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@ use BeSimple\SoapBundle\Util\String;
|
|||
|
||||
use Zend\Soap\Exception;
|
||||
use Zend\Soap\Wsdl as BaseWsdl;
|
||||
use Zend\Soap\Wsdl\Strategy;
|
||||
use Zend\Soap\Wsdl\Strategy\ArrayOfTypeSequence;
|
||||
use Zend\Soap\Wsdl\ComplexTypeStrategy;
|
||||
use Zend\Soap\Wsdl\ComplexTypeStrategy\ArrayOfTypeSequence;
|
||||
|
||||
class WsdlTypeStrategy implements Strategy
|
||||
class WsdlTypeStrategy implements ComplexTypeStrategy
|
||||
{
|
||||
/**
|
||||
* Context WSDL file
|
||||
|
|
|
@ -48,7 +48,7 @@ class ComplexType extends AbstractStrategy
|
|||
|
||||
$dom = $this->getContext()->toDomDocument();
|
||||
|
||||
$soapTypeName = Wsdl::translateType($type);
|
||||
$soapTypeName = $this->getContext()->translateType($type);
|
||||
$soapType = 'tns:'.$soapTypeName;
|
||||
|
||||
if (!$classmap->has($soapTypeName)) {
|
||||
|
|
Loading…
Reference in New Issue