Changeset 1047
- Timestamp:
- 11/15/03 12:52:02 (5 years ago)
- Files:
-
- trunk/lib/soap/rpc/driver.rb (modified) (2 diffs)
- trunk/lib/soap/rpc/proxy.rb (modified) (3 diffs)
- trunk/lib/soap/wsdlDriver.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/rpc/driver.rb
r973 r1047 48 48 @wiredump_dev = nil 49 49 @wiredump_file_base = nil 50 @httpproxy = ENV['httpproxy'] || ENV['HTTP_PROXY'] 50 name = 'http_proxy' 51 @httpproxy = ENV[name] || ENV[name.upcase] 51 52 @handler = HTTPPostStreamHandler.new(@endpoint_url, @httpproxy, 52 53 XSD::Charset.encoding_label) … … 81 82 @handler.reset 82 83 end 84 end 85 86 def mandatorycharset 87 @proxy.mandatorycharset 88 end 89 90 def mandatorycharset=(mandatorycharset) 91 @proxy.mandatorycharset = mandatorycharset 83 92 end 84 93 trunk/lib/soap/rpc/proxy.rb
r940 r1047 36 36 37 37 attr_accessor :soapaction 38 attr_accessor :allow_unqualified_element, :default_encodingstyle 38 attr_accessor :mandatorycharset 39 attr_accessor :allow_unqualified_element 40 attr_accessor :default_encodingstyle 39 41 attr_reader :method 40 42 … … 43 45 @soapaction = soapaction 44 46 @method = {} 47 @mandatorycharset = nil 45 48 @allow_unqualified_element = false 46 49 @default_encodingstyle = nil … … 105 108 return nil, nil 106 109 end 107 res_charset = StreamHandler.parse_media_type(data.receive_contenttype)108 110 opt = create_options 109 opt[:charset] = res_charset 111 opt[:charset] = @mandatorycharset || 112 StreamHandler.parse_media_type(data.receive_contenttype) 110 113 res_header, res_body = Processor.unmarshal(data.receive_string, opt) 111 114 return res_header, res_body trunk/lib/soap/wsdlDriver.rb
r1007 r1047 106 106 __attr_proxy :wiredump_file_base, true 107 107 __attr_proxy :httpproxy, true 108 __attr_proxy :mandatorycharset, true # force using charset 108 109 109 110 __attr_proxy :default_encodingstyle, true … … 130 131 attr_reader :wiredump_file_base 131 132 attr_reader :httpproxy 133 attr_accessor :mandatorycharset 132 134 133 135 attr_accessor :default_encodingstyle … … 226 228 name = 'http_proxy' 227 229 @httpproxy = ENV[name] || ENV[name.upcase] 230 @mandatorycharset = nil 228 231 229 232 @wsdl_elements = @wsdl.collect_elements … … 362 365 return nil, nil 363 366 end 364 res_charset = StreamHandler.parse_media_type(data.receive_contenttype)365 opt[:charset] = res_charset 367 opt[:charset] = @mandatorycharset || 368 StreamHandler.parse_media_type(data.receive_contenttype) 366 369 res_header, res_body = Processor.unmarshal(data.receive_string, opt) 367 370 return res_header, res_body