Module: XSD::ClassLoader

Defined in:
lib/xsd/classloader.rb

Class Method Summary collapse

Class Method Details

.import(xsdlocation) ⇒ Object


17
18
19
20
21
22
# File 'lib/xsd/classloader.rb', line 17

def self.import(xsdlocation)
  xsd = WSDL::XMLSchema::Importer.import(xsdlocation)
  classdef = WSDL::SOAP::ClassDefCreator.new(xsd).dump
  eval(classdef, TOPLEVEL_BINDING)
  classdef
end