Ejemplo n.º 1
0
 /**
  * @param $operation \GoetasWebservices\XML\WSDLReader\Wsdl\PortType\Operation
  */
 public function addOperation(\GoetasWebservices\XML\WSDLReader\Wsdl\PortType\Operation $operation)
 {
     $this->operation[$operation->getName()] = $operation;
     return $this;
 }
Ejemplo n.º 2
0
 public function __construct(Operation $operation, $name)
 {
     parent::__construct($operation->getDefinition());
     $this->name = $name;
     $this->operation = $operation;
 }
Ejemplo n.º 3
0
 private function loadFault(Operation $operation, DOMElement $node)
 {
     $fault = new Fault($operation, $node->getAttribute("name"));
     $fault->setDocumentation($this->getDocumentation($node));
     $operation->addFault($fault);
     return function () use($fault, $operation, $node) {
         list($name, $ns) = self::splitParts($node, $node->getAttribute("message"));
         $fault->setMessage($operation->getDefinition()->findMessage($name, $ns));
         $this->dispatcher->dispatch('portType.operation.fault', new FaultEvent($fault, $node));
     };
 }