diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 04:05:51 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-04 04:05:51 +0000 |
commit | 20fa0df5cd7f297b1694b75b776516b51460ba55 (patch) | |
tree | 73cbdf22c4ea8ccf43fe55c69396885159db4aea /lib/soap/soap.rb | |
parent | b28a2a1ad645b21679d088c738d0e0ef70758a19 (diff) | |
download | ruby-20fa0df5cd7f297b1694b75b776516b51460ba55.tar.gz |
* lib/soap/soap.rb: add SOAP::Env module for environment repository
such as HTTP_PROXY.
* lib/soap/property.rb: property implementation.
* lib/soap/streamHandler.rb, lib/soap/wsdlDriver.rb,
lib/soap/rpc/driver.rb: use soap/property.rb.
* lib/wsdl/importer.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb:
use SOAP::Env.
* lib/soap/netHttpClient.rb: add basic_auth, ssl_config, and cookie
management interface, but ignored for now.
* lib/xsd/charset.rb: add XSD::Charset.encoding= interface to set
wiredump charset explicitly. it was fixed to 'utf-8' when iconv or
uconv module was found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/soap.rb')
-rw-r--r-- | lib/soap/soap.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/soap/soap.rb b/lib/soap/soap.rb index fcfbb2ef2b..b082823181 100644 --- a/lib/soap/soap.rb +++ b/lib/soap/soap.rb @@ -13,7 +13,7 @@ require 'xsd/charset' module SOAP -Version = '1.5.1' +Version = '1.5.2' EnvelopeNamespace = 'http://schemas.xmlsoap.org/soap/envelope/' EncodingNamespace = 'http://schemas.xmlsoap.org/soap/encoding/' @@ -90,12 +90,22 @@ class FaultError < Error def to_s str = nil - if @faultstring && @faultstring.respond_to?('data') + if @faultstring and @faultstring.respond_to?('data') str = @faultstring.data end str || '(No faultstring)' end end +module Env + def self.getenv(name) + ENV[name.downcase] || ENV[name] + end + + use_proxy = getenv('soap_use_proxy') == 'on' + HTTP_PROXY = use_proxy ? getenv('http_proxy') : nil + NO_PROXY = use_proxy ? getenv('no_proxy') : nil +end + end |