1
# WSDL4R - WSDL importer library.
2
# Copyright (C) 2003, 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
4
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
5
# redistribute it and/or modify it under the same terms of Ruby's license;
6
# either the dual license version in 2003, or any later version.
9
require 'wsdl/xmlSchema/importer'
16
class Importer < WSDL::XMLSchema::Importer
17
def self.import(location, originalroot = nil)
18
new.import(location, originalroot)
23
def parse(content, location, originalroot)
25
:location => location,
26
:originalroot => originalroot
29
WSDL::Parser.new(opt).parse(content)
30
rescue WSDL::Parser::ParseError
31
super(content, location, originalroot)