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.
VERSION | = | Version = '1.5.5' |
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).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 | = | '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::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, } |
connect_timeout | [RW] | |
debug_dev | [RW] | |
no_proxy | [RW] | |
protocol_version | [RW] | |
proxy | [R] | |
receive_timeout | [RW] | |
send_timeout | [RW] | |
ssl_config | [RW] |
# File soap/netHttpClient.rb, line 33 def initialize(proxy = nil, agent = nil) @proxy = proxy ? URI.parse(proxy) : nil @agent = agent @debug_dev = nil @session_manager = SessionManager.new @no_proxy = @ssl_config = @protocol_version = nil @connect_timeout = @send_timeout = @receive_timeout = nil end
# File soap/netHttpClient.rb, line 98 def get_content(url, header = {}) unless url.is_a?(URI) url = URI.parse(url) end 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 86 def post(url, req_body, header = {}) unless url.is_a?(URI) url = URI.parse(url) end 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 46 def proxy=(proxy) if proxy.nil? @proxy = nil else if proxy.is_a?(URI) @proxy = proxy else @proxy = URI.parse(proxy) end if @proxy.scheme == nil or @proxy.scheme.downcase != 'http' or @proxy.host == nil or @proxy.port == nil raise ArgumentError.new("unsupported proxy `#{proxy}'") end end reset_all @proxy end
# File soap/netHttpClient.rb, line 74 def save_cookie_store(filename) raise NotImplementedError.new end
# File soap/netHttpClient.rb, line 64 def set_basic_auth(uri, user_id, passwd) # net/http does not handle url. @basic_auth = [user_id, passwd] raise NotImplementedError.new("basic_auth is not supported under soap4r + net/http.") end
# File soap/netHttpClient.rb, line 70 def set_cookie_store(filename) raise NotImplementedError.new end