コード例 #1
0
 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;
         }
     }
 }
コード例 #2
0
ファイル: SoapClient.php プロジェクト: goetas/webservices
 public function findOperation(WsdlBinding $binding, $operationName, array $params)
 {
     return $binding->getOperation($operationName);
 }