public function __construct(Binding $binding, XMLDomElement $bind) { parent::__construct($binding->getWsdl(), $bind->getAttribute("name"), $binding->getNs()); $this->data = $bind; $this->binding = $binding; $this->operation = $binding->getPortType()->getOperation($this->getName()); $parts = $bind->query("wsdl:input|wsdl:output|wsdl:fault", array("wsdl" => Wsdl::WSDL_NS)); foreach ($parts as $part) { switch ($part->localName) { case "input": $this->input = new BindingMessage($this->operation->getInput(), $part); break; case "output": $this->output = new BindingMessage($this->operation->getOutput(), $part); break; } } }
public function findOperation(WsdlBinding $binding, $operationName, array $params) { return $binding->getOperation($operationName); }