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

Changeset 871

Show
Ignore:
Timestamp:
08/24/03 23:59:14 (5 years ago)
Author:
nahi
Message:

use wsdl/importer. run without http-access2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/wsdl2ruby.rb

    r847 r871  
    44require 'xsd/qname' 
    55require 'wsdl/parser' 
     6require 'wsdl/importer' 
    67require 'wsdl/soap/classDefCreator' 
    78require 'wsdl/soap/servantSkeltonCreator' 
     
    229230 
    230231  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) 
    240233  end 
    241234end