Changeset 871
- Timestamp:
- 08/24/03 23:59:14 (5 years ago)
- Files:
-
- trunk/bin/wsdl2ruby.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/wsdl2ruby.rb
r847 r871 4 4 require 'xsd/qname' 5 5 require 'wsdl/parser' 6 require 'wsdl/importer' 6 7 require 'wsdl/soap/classDefCreator' 7 8 require 'wsdl/soap/servantSkeltonCreator' … … 229 230 230 231 def import(location) 231 content = nil 232 if FileTest.exist?(location) 233 content = File.open(location).read 234 else 235 require 'http-access2' 236 c = HTTPAccess2::Client.new(ENV['http_proxy'] || ENV['HTTP_PROXY']) 237 content = c.get_content(location) 238 end 239 WSDL::WSDLParser.create_parser.parse(content) 232 WSDL::Importer.import(location) 240 233 end 241 234 end