1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/soap/netHttpClient.rb: proxy support did not work. fixed.

* lib/soap/property.rb: add class methods for loading property from
          stream/file/propertyfile.  propertyfile is a file which is located at
          somedir in $:.

        * lib/soap/soap.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb,
          lib/wsdl/importer.rb: load property from propertyfile 'soap/property'
          e.g. /usr/local/lib/ruby/site_ruby/1.8/soap/property.

        * test/soap/test_property.rb, test/soap/test_streamhandler.rb: new file.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nahi 2003-12-05 13:26:26 +00:00
parent 3be09a4f4f
commit 1ed39b7392
10 changed files with 645 additions and 38 deletions

View file

@ -21,7 +21,7 @@ class NetHttpClient
false
end
attr_accessor :proxy
attr_reader :proxy
attr_accessor :no_proxy
attr_accessor :debug_dev
attr_accessor :ssl_config # ignored for now.
@ -34,21 +34,30 @@ class NetHttpClient
@session_manager = SessionManager.new
@no_proxy = nil
end
def proxy=(proxy_str)
if proxy_str.nil?
@proxy = nil
else
@proxy = URI.parse(proxy_str)
end
end
def set_basic_auth(uri, user_id, passwd)
# ignored for now.
# net/http does not handle url.
@basic_auth = [user_id, passwd]
end
def set_cookie_store(filename)
# ignored for now.
# ignored.
end
def reset(url)
# ignored for now.
# no persistent connection. ignored.
end
def reset_all
# ignored for now.
# no persistent connection. ignored.
end
def post(url, req_body, header = {})