This program is copyrighted free software by NAKAMURA, Hiroshi. You can redistribute it and/or modify it under the same terms of Ruby’s license; either the dual license version in 2003, or any later version.
RUBY_VERSION_STRING | = | "ruby #{ RUBY_VERSION } (#{ RUBY_RELEASE_DATE }) [#{ RUBY_PLATFORM }]" |
Version | = | '1.5.2' |
PropertyName | = | 'soap/property' |
EnvelopeNamespace | = | 'http://schemas.xmlsoap.org/soap/envelope/' |
EncodingNamespace | = | 'http://schemas.xmlsoap.org/soap/encoding/' |
LiteralNamespace | = | 'http://xml.apache.org/xml-soap/literalxml' |
NextActor | = | 'http://schemas.xmlsoap.org/soap/actor/next' |
EleEnvelope | = | 'Envelope' |
EleHeader | = | 'Header' |
EleBody | = | 'Body' |
EleFault | = | 'Fault' |
EleFaultString | = | 'faultstring' |
EleFaultActor | = | 'faultactor' |
EleFaultCode | = | 'faultcode' |
EleFaultDetail | = | 'detail' |
AttrMustUnderstand | = | 'mustUnderstand' |
AttrEncodingStyle | = | 'encodingStyle' |
AttrActor | = | 'actor' |
AttrRoot | = | 'root' |
AttrArrayType | = | 'arrayType' |
AttrOffset | = | 'offset' |
AttrPosition | = | 'position' |
ValueArray | = | 'Array' |
EleEnvelopeName | = | XSD::QName.new(EnvelopeNamespace, EleEnvelope) |
EleHeaderName | = | XSD::QName.new(EnvelopeNamespace, EleHeader) |
EleBodyName | = | XSD::QName.new(EnvelopeNamespace, EleBody) |
EleFaultName | = | XSD::QName.new(EnvelopeNamespace, EleFault) |
EleFaultStringName | = | XSD::QName.new(nil, EleFaultString) |
EleFaultActorName | = | XSD::QName.new(nil, EleFaultActor) |
EleFaultCodeName | = | XSD::QName.new(nil, EleFaultCode) |
EleFaultDetailName | = | XSD::QName.new(nil, EleFaultDetail) |
AttrEncodingStyleName | = | XSD::QName.new(EnvelopeNamespace, AttrEncodingStyle) |
AttrRootName | = | XSD::QName.new(EncodingNamespace, AttrRoot) |
AttrArrayTypeName | = | XSD::QName.new(EncodingNamespace, AttrArrayType) |
AttrOffsetName | = | XSD::QName.new(EncodingNamespace, AttrOffset) |
AttrPositionName | = | XSD::QName.new(EncodingNamespace, AttrPosition) |
ValueArrayName | = | XSD::QName.new(EncodingNamespace, ValueArray) |
Base64Literal | = | 'base64' |
SOAPNamespaceTag | = | 'env' |
XSDNamespaceTag | = | 'xsd' |
XSINamespaceTag | = | 'xsi' |
MediaType | = | 'text/xml' |
NO_PROXY_HOSTS | = | ['localhost'] |
TypeMap | = | { XSD::XSDAnySimpleType::Type => SOAPAnySimpleType, XSD::XSDString::Type => SOAPString, XSD::XSDBoolean::Type => SOAPBoolean, XSD::XSDDecimal::Type => SOAPDecimal, XSD::XSDFloat::Type => SOAPFloat, XSD::XSDDouble::Type => SOAPDouble, XSD::XSDDuration::Type => SOAPDuration, XSD::XSDDateTime::Type => SOAPDateTime, XSD::XSDTime::Type => SOAPTime, XSD::XSDDate::Type => SOAPDate, XSD::XSDGYearMonth::Type => SOAPGYearMonth, XSD::XSDGYear::Type => SOAPGYear, XSD::XSDGMonthDay::Type => SOAPGMonthDay, XSD::XSDGDay::Type => SOAPGDay, XSD::XSDGMonth::Type => SOAPGMonth, XSD::XSDHexBinary::Type => SOAPHexBinary, XSD::XSDBase64Binary::Type => SOAPBase64, XSD::XSDAnyURI::Type => SOAPAnyURI, XSD::XSDQName::Type => SOAPQName, XSD::XSDInteger::Type => SOAPInteger, XSD::XSDLong::Type => SOAPLong, XSD::XSDInt::Type => SOAPInt, XSD::XSDShort::Type => SOAPShort, SOAP::SOAPBase64::Type => SOAPBase64, } |
debug_dev | [RW] | |
endpoint_url | [RW] | |
no_proxy | [RW] | |
protocol_version | [RW] | |
proxy | [R] | |
ssl_config | [RW] |
# File soap/streamHandler.rb, line 69 def self.create_media_type(charset) "#{ MediaType }; charset=#{ charset }" end
# File soap/netHttpClient.rb, line 30 def initialize(proxy = nil, agent = nil) @proxy = proxy ? URI.parse(proxy) : nil @agent = agent @debug_dev = nil @session_manager = SessionManager.new @no_proxy = nil end
# File soap/streamHandler.rb, line 60 def self.parse_media_type(str) if /^#{ MediaType }(?:\s*;\s*charset=([^"]+|"[^"]+"))?$/i !~ str raise StreamError.new("Illegal media type."); end charset = $1 charset.gsub!(/"/, '') if charset charset || 'us-ascii' end
# File soap/netHttpClient.rb, line 78 def get_content(url, header = {}) url = URI.parse(url) extra = header.dup extra['User-Agent'] = @agent if @agent res = start(url) { |http| http.get(url.request_uri, extra) } res.body end
# File soap/netHttpClient.rb, line 68 def post(url, req_body, header = {}) url = URI.parse(url) extra = header.dup extra['User-Agent'] = @agent if @agent res = start(url) { |http| http.post(url.request_uri, req_body, extra) } Response.new(res) end
# File soap/netHttpClient.rb, line 38 def proxy=(proxy_str) if proxy_str.nil? @proxy = nil else @proxy = URI.parse(proxy_str) if @proxy.scheme == nil or @proxy.scheme.downcase != 'http' or @proxy.host == nil or @proxy.port == nil raise ArgumentError.new("unsupported proxy `#{proxy_str}'") end @proxy end end
# File soap/netHttpClient.rb, line 51 def set_basic_auth(uri, user_id, passwd) # net/http does not handle url. @basic_auth = [user_id, passwd] end