Changeset 1817
- Timestamp:
- 05/29/07 22:20:26 (2 years ago)
- Files:
-
- trunk/lib/soap/rpc/router.rb (modified) (1 diff)
- trunk/lib/soap/rpc/soaplet.rb (modified) (1 diff)
- trunk/lib/soap/streamHandler.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/rpc/router.rb
r1803 r1817 180 180 header = call_headers(headerhandler) 181 181 if op.response_use.nil? 182 conn_data.send_string = "" 182 conn_data.send_string = '' 183 conn_data.is_nocontent = true 183 184 conn_data 184 185 else trunk/lib/soap/rpc/soaplet.rb
r1597 r1817 115 115 116 116 def setup_res(conn_data, req, res) 117 if conn_data.is_nocontent 118 res.status = WEBrick::HTTPStatus::RC_ACCEPTED 119 res.body = '' 120 return 121 end 117 122 res['content-type'] = conn_data.send_contenttype 118 123 if conn_data.is_fault trunk/lib/soap/streamHandler.rb
r1777 r1817 29 29 attr_accessor :receive_contenttype 30 30 attr_accessor :is_fault 31 attr_accessor :is_nocontent 31 32 attr_accessor :soapaction 32 33 … … 37 38 @receive_contenttype = nil 38 39 @is_fault = false 40 @is_nocontent = false 39 41 @soapaction = nil 40 42 end … … 224 226 when 405 225 227 raise PostUnavailableError.new("#{ res.status }: #{ res.reason }") 226 when 200, 500227 # Nothing to do. 228 when 200, 202, 500 229 # Nothing to do. 202 is for oneway service. 228 230 else 229 231 raise HTTPStreamError.new("#{ res.status }: #{ res.reason }")