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.
Classes and Modules
Module SOAP::EncodingStyleModule SOAP::Env
Module SOAP::HTTPConfigLoader
Module SOAP::Header
Module SOAP::Mapping
Module SOAP::Marshal
Module SOAP::Marshallable
Module SOAP::Processor
Module SOAP::RPC
Module SOAP::SOAPBasetype
Module SOAP::SOAPCompoundtype
Module SOAP::SOAPEnvelopeElement
Module SOAP::SOAPModuleUtils
Module SOAP::SOAPType
Class SOAP::ArrayIndexOutOfBoundsError
Class SOAP::ArrayStoreError
Class SOAP::Attachment
Class SOAP::EmptyResponseError
Class SOAP::Error
Class SOAP::FaultError
Class SOAP::HTTPStreamError
Class SOAP::HTTPStreamHandler
Class SOAP::MIMEMessage
Class SOAP::MPostUnavailableError
Class SOAP::NetHttpClient
Class SOAP::Parser
Class SOAP::PostUnavailableError
Class SOAP::Property
Class SOAP::RPCRoutingError
Class SOAP::Response
Class SOAP::ResponseFormatError
Class SOAP::SOAPAnySimpleType
Class SOAP::SOAPAnyURI
Class SOAP::SOAPArray
Class SOAP::SOAPAttachment
Class SOAP::SOAPBase64
Class SOAP::SOAPBody
Class SOAP::SOAPBoolean
Class SOAP::SOAPByte
Class SOAP::SOAPDate
Class SOAP::SOAPDateTime
Class SOAP::SOAPDecimal
Class SOAP::SOAPDouble
Class SOAP::SOAPDuration
Class SOAP::SOAPElement
Class SOAP::SOAPEnvelope
Class SOAP::SOAPExternalReference
Class SOAP::SOAPFault
Class SOAP::SOAPFloat
Class SOAP::SOAPGDay
Class SOAP::SOAPGMonth
Class SOAP::SOAPGMonthDay
Class SOAP::SOAPGYear
Class SOAP::SOAPGYearMonth
Class SOAP::SOAPGenerator
Class SOAP::SOAPHeader
Class SOAP::SOAPHeaderItem
Class SOAP::SOAPHexBinary
Class SOAP::SOAPInt
Class SOAP::SOAPInteger
Class SOAP::SOAPLong
Class SOAP::SOAPNegativeInteger
Class SOAP::SOAPNil
Class SOAP::SOAPNonNegativeInteger
Class SOAP::SOAPNonPositiveInteger
Class SOAP::SOAPPositiveInteger
Class SOAP::SOAPQName
Class SOAP::SOAPRawString
Class SOAP::SOAPReference
Class SOAP::SOAPShort
Class SOAP::SOAPString
Class SOAP::SOAPStruct
Class SOAP::SOAPTime
Class SOAP::SOAPUnsignedByte
Class SOAP::SOAPUnsignedInt
Class SOAP::SOAPUnsignedLong
Class SOAP::SOAPUnsignedShort
Class SOAP::SessionManager
Class SOAP::StreamError
Class SOAP::StreamHandler
Class SOAP::UnhandledMustUnderstandHeaderError
Class SOAP::WSDLDriver
Class SOAP::WSDLDriverFactory
Constants
| 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::XSDNonPositiveInteger::Type => SOAPNonPositiveInteger, XSD::XSDNegativeInteger::Type => SOAPNegativeInteger, XSD::XSDLong::Type => SOAPLong, XSD::XSDInt::Type => SOAPInt, XSD::XSDShort::Type => SOAPShort, XSD::XSDByte::Type => SOAPByte, XSD::XSDNonNegativeInteger::Type => SOAPNonNegativeInteger, XSD::XSDUnsignedLong::Type => SOAPUnsignedLong, XSD::XSDUnsignedInt::Type => SOAPUnsignedInt, XSD::XSDUnsignedShort::Type => SOAPUnsignedShort, XSD::XSDUnsignedByte::Type => SOAPUnsignedByte, XSD::XSDPositiveInteger::Type => SOAPPositiveInteger, SOAP::SOAPBase64::Type => SOAPBase64, } |
| VERSION | = | Version = '1.5.5' |
| PropertyName | = | 'soap/property' |
| EnvelopeNamespace | = | |
| EncodingNamespace | = | |
| LiteralNamespace | = | |
| NextActor | = | |
| 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).freeze |
| EleHeaderName | = | XSD::QName.new(EnvelopeNamespace, EleHeader).freeze |
| EleBodyName | = | XSD::QName.new(EnvelopeNamespace, EleBody).freeze |
| EleFaultName | = | XSD::QName.new(EnvelopeNamespace, EleFault).freeze |
| EleFaultStringName | = | XSD::QName.new(nil, EleFaultString).freeze |
| EleFaultActorName | = | XSD::QName.new(nil, EleFaultActor).freeze |
| EleFaultCodeName | = | XSD::QName.new(nil, EleFaultCode).freeze |
| EleFaultDetailName | = | XSD::QName.new(nil, EleFaultDetail).freeze |
| AttrMustUnderstandName | = | XSD::QName.new(EnvelopeNamespace, AttrMustUnderstand).freeze |
| AttrEncodingStyleName | = | XSD::QName.new(EnvelopeNamespace, AttrEncodingStyle).freeze |
| AttrRootName | = | XSD::QName.new(EncodingNamespace, AttrRoot).freeze |
| AttrArrayTypeName | = | XSD::QName.new(EncodingNamespace, AttrArrayType).freeze |
| AttrOffsetName | = | XSD::QName.new(EncodingNamespace, AttrOffset).freeze |
| AttrPositionName | = | XSD::QName.new(EncodingNamespace, AttrPosition).freeze |
| ValueArrayName | = | XSD::QName.new(EncodingNamespace, ValueArray).freeze |
| Base64Literal | = | 'base64' |
| SOAPNamespaceTag | = | 'env' |
| XSDNamespaceTag | = | 'xsd' |
| XSINamespaceTag | = | 'xsi' |
| MediaType | = | |
| NO_PROXY_HOSTS | = | ['localhost'] |
Attributes
| connect_timeout | [RW] | |
| debug_dev | [RW] | |
| no_proxy | [RW] | |
| protocol_version | [RW] | |
| proxy | [R] | |
| receive_timeout | [RW] | |
| send_timeout | [RW] | |
| ssl_config | [RW] |
Public Class methods
# File soap/netHttpClient.rb, line 33
33: def initialize(proxy = nil, agent = nil)
34: @proxy = proxy ? URI.parse(proxy) : nil
35: @agent = agent
36: @debug_dev = nil
37: @session_manager = SessionManager.new
38: @no_proxy = @ssl_config = @protocol_version = nil
39: @connect_timeout = @send_timeout = @receive_timeout = nil
40: end
Public Instance methods
# File soap/netHttpClient.rb, line 98
98: def get_content(url, header = {})
99: unless url.is_a?(URI)
100: url = URI.parse(url)
101: end
102: extra = header.dup
103: extra['User-Agent'] = @agent if @agent
104: res = start(url) { |http|
105: http.get(url.request_uri, extra)
106: }
107: res.body
108: end
# File soap/netHttpClient.rb, line 86
86: def post(url, req_body, header = {})
87: unless url.is_a?(URI)
88: url = URI.parse(url)
89: end
90: extra = header.dup
91: extra['User-Agent'] = @agent if @agent
92: res = start(url) { |http|
93: http.post(url.request_uri, req_body, extra)
94: }
95: Response.new(res)
96: end
# File soap/netHttpClient.rb, line 46
46: def proxy=(proxy)
47: if proxy.nil?
48: @proxy = nil
49: else
50: if proxy.is_a?(URI)
51: @proxy = proxy
52: else
53: @proxy = URI.parse(proxy)
54: end
55: if @proxy.scheme == nil or @proxy.scheme.downcase != 'http' or
56: @proxy.host == nil or @proxy.port == nil
57: raise ArgumentError.new("unsupported proxy `#{proxy}'")
58: end
59: end
60: reset_all
61: @proxy
62: end
# File soap/netHttpClient.rb, line 78
78: def reset(url)
79: # no persistent connection. ignored.
80: end
# File soap/netHttpClient.rb, line 82
82: def reset_all
83: # no persistent connection. ignored.
84: end
# File soap/netHttpClient.rb, line 74
74: def save_cookie_store(filename)
75: raise NotImplementedError.new
76: end
# File soap/netHttpClient.rb, line 64
64: def set_basic_auth(uri, user_id, passwd)
65: # net/http does not handle url.
66: @basic_auth = [user_id, passwd]
67: raise NotImplementedError.new("basic_auth is not supported under soap4r + net/http.")
68: end
# File soap/netHttpClient.rb, line 70
70: def set_cookie_store(filename)
71: raise NotImplementedError.new
72: end