/**
  * @return \GoetasWebservices\XML\XSDReader\Schema\Schema
  */
 public function readNode(\DOMNode $node, $file = 'schema.xsd')
 {
     $this->loadedFiles[$file] = $rootSchema = new Schema();
     $rootSchema->addSchema($this->getGlobalSchema());
     $callbacks = $this->schemaNode($rootSchema, $node);
     foreach ($callbacks as $callback) {
         call_user_func($callback);
     }
     return $rootSchema;
 }
예제 #2
0
 /**
  *
  * @return \oetas\XML\WSDLReader\Wsdl\Definitions
  */
 public function readNode(\DOMElement $node, $file = 'wsdl.xsd')
 {
     $this->loadedFiles[$file] = $rootDefinitions = new Definitions();
     $schema = new Schema();
     $schema->addSchema($this->reader->getGlobalSchema());
     $rootDefinitions->setSchema($schema);
     $callbacks = $this->rootNode($rootDefinitions, $node);
     foreach ($callbacks as $callback) {
         call_user_func($callback);
     }
     return $rootDefinitions;
 }