Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/branches/1_5/lib/wsdl/importer.rb

Revision 1824, 0.8 kB (checked in by nahi, 1 year ago)
  • Copyright notice updated. add '2000-2007' uniformly.
  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 # WSDL4R - WSDL importer library.
2 # Copyright (C) 2000-2007  NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
3
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.
7
8
9 require 'wsdl/xmlSchema/importer'
10 require 'wsdl/parser'
11
12
13 module WSDL
14
15
16 class Importer < WSDL::XMLSchema::Importer
17   def self.import(location, originalroot = nil)
18     new.import(location, originalroot)
19   end
20
21 private
22
23   def parse(content, location, originalroot)
24     opt = {
25       :location => location,
26       :originalroot => originalroot
27     }
28     begin
29       WSDL::Parser.new(opt).parse(content)
30     rescue WSDL::Parser::ParseError
31       super(content, location, originalroot)
32     end
33   end
34
35 end
36
37
38 end
Note: See TracBrowser for help on using the browser.