wsdl definition can now be retrieved; aligned controller method and route naming;

This commit is contained in:
Christian Kerl
2011-04-08 00:46:58 +02:00
parent a4d69aedbc
commit fa07646e3a
4 changed files with 49 additions and 21 deletions

View File

@ -30,15 +30,17 @@ class WsdlDumper implements DumperInterface
{
Assert::thatArgumentNotNull('definition', $definition);
$options = array_merge(array('endpoint' => ''), $options);
$this->definition = $definition;
$wsdl = new Wsdl($definition->getName(), $definition->getNamespace());
$port = $wsdl->addPortType($this->getPortTypeName());
$binding = $wsdl->addBinding($this->getBindingName(), $this->getPortTypeName());
$wsdl->addSoapBinding($binding, 'document');
$wsdl->addService($this->getServiceName(), $this->getPortTypeName(), $this->getBindingName(), '');
$wsdl->addSoapBinding($binding, 'rpc');
$wsdl->addService($this->getServiceName(), $this->getPortTypeName(), $this->getBindingName(), $options['endpoint']);
foreach($definition->getMethods() as $method)
{
@ -77,6 +79,8 @@ class WsdlDumper implements DumperInterface
$this->definition = null;
$wsdl->toDomDocument()->formatOutput = true;
return $wsdl->toXml();
}