mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* added files:
* lib/soap/mapping/wsdl*.rb * lib/wsdl/soap/element.rb * lib/wsdl/xmlSchema/simpleContent.rb * modified files: * lib/soap/* * lib/wsdl/* * lib/xsd/* * test/soap/* * test/wsdl/* * test/xsd/* * sample/soap/* * sample/sdl/* * summary * imported from the soap4r repository. Version: 1.5.3-ruby1.8.2 * added several XSD basetype support: nonPositiveInteger, negativeInteger, nonNegativeInteger, unsignedLong, unsignedInt, unsignedShort, unsignedByte, positiveInteger * HTTP client connection/send/receive timeout support. * HTTP client/server gzipped content encoding support. * improved WSDL schema definition support; still is far from complete, but is making step by step improovement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
330a8e51c5
commit
e8ed175fe0
81 changed files with 2442 additions and 1150 deletions
|
@ -163,16 +163,16 @@ private
|
|||
@response = WEBrick::HTTPResponse.new({:HTTPVersion => httpversion})
|
||||
conn_data = nil
|
||||
begin
|
||||
log(INFO) { "Received a request from '#{ @remote_user }@#{ @remote_host }'." }
|
||||
@log.info { "Received a request from '#{ @remote_user }@#{ @remote_host }'." }
|
||||
# SOAP request parsing.
|
||||
@request = SOAPRequest.new.init
|
||||
@response['Status'] = 200
|
||||
conn_data = ::SOAP::StreamHandler::ConnectionData.new
|
||||
conn_data.receive_string = @request.dump
|
||||
conn_data.receive_contenttype = @request.contenttype
|
||||
log(DEBUG) { "XML Request: #{conn_data.receive_string}" }
|
||||
@log.debug { "XML Request: #{conn_data.receive_string}" }
|
||||
conn_data = route(conn_data)
|
||||
log(DEBUG) { "XML Response: #{conn_data.send_string}" }
|
||||
@log.debug { "XML Response: #{conn_data.send_string}" }
|
||||
if conn_data.is_fault
|
||||
@response['Status'] = 500
|
||||
end
|
||||
|
@ -189,7 +189,7 @@ private
|
|||
buf = ''
|
||||
@response.send_response(buf)
|
||||
buf.sub!(/^[^\r]+\r\n/, '') # Trim status line.
|
||||
log(DEBUG) { "SOAP CGI Response:\n#{ buf }" }
|
||||
@log.debug { "SOAP CGI Response:\n#{ buf }" }
|
||||
print buf
|
||||
epilogue
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue