Module | SOAP

In:

soap/wsdlDriver.rb
soap/streamHandler.rb
soap/soap.rb
soap/rpc/standaloneServer.rb
soap/rpc/soaplet.rb
soap/rpc/rpc.rb
soap/rpc/router.rb
soap/rpc/proxy.rb
soap/rpc/httpserver.rb
soap/rpc/element.rb
soap/rpc/driver.rb
soap/rpc/cgistub.rb
soap/property.rb
soap/processor.rb
soap/parser.rb
soap/netHttpClient.rb
soap/mimemessage.rb
soap/marshal.rb
soap/mapping/wsdlliteralregistry.rb
soap/mapping/wsdlencodedregistry.rb
soap/mapping/typeMap.rb
soap/mapping/rubytypeFactory.rb
soap/mapping/registry.rb
soap/mapping/mapping.rb
soap/mapping/factory.rb
soap/httpconfigloader.rb
soap/header/simplehandler.rb
soap/header/handlerset.rb
soap/header/handler.rb
soap/generator.rb
soap/encodingstyle/soapHandler.rb
soap/encodingstyle/literalHandler.rb
soap/encodingstyle/handler.rb
soap/encodingstyle/aspDotNetHandler.rb
soap/element.rb
soap/baseData.rb
soap/attachment.rb

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.

### Methods

get_content new post proxy= reset reset_all save_cookie_store set_basic_auth set_cookie_store test_loopback_response

### Classes and Modules

Module SOAP::EncodingStyle
Module 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

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, }

### 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

new(proxy = nil, agent = nil)

[Source]

    # 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

### Public Instance methods

get_content(url, header = {})

[Source]

    # 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

post(url, req_body, header = {})

[Source]

    # 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

proxy=(proxy)

[Source]

    # 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

reset(url)

[Source]

    # File soap/netHttpClient.rb, line 78
      def reset(url)
        # no persistent connection.  ignored.
      end

reset_all()

[Source]

    # File soap/netHttpClient.rb, line 82
      def reset_all
        # no persistent connection.  ignored.
      end

save_cookie_store(filename)

[Source]

    # File soap/netHttpClient.rb, line 74
      def save_cookie_store(filename)
        raise NotImplementedError.new
      end

set_basic_auth(uri, user_id, passwd)

[Source]

    # 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

set_cookie_store(filename)

[Source]

    # File soap/netHttpClient.rb, line 70
      def set_cookie_store(filename)
        raise NotImplementedError.new
      end

test_loopback_response()

[Source]

    # File soap/netHttpClient.rb, line 42
      def test_loopback_response
        raise NotImplementedError.new("not supported for now")
      end

[Validate]