Class ActionWebService::Protocol::Soap::SoapBinding
In: actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb
Parent: Object

Methods

==   eql?   hash   new   qualified_type_name   type_name  

Attributes

element_binding  [R] 
mapping  [R] 
qname  [R] 
type  [R] 

Public Class methods

[Source]

# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 136
        def initialize(marshaler, qname, type, mapping, element_binding=nil)
          @marshaler = marshaler
          @qname = qname
          @type = type
          @mapping = mapping
          @element_binding = element_binding
        end

Public Instance methods

==(other)

Alias for eql?

[Source]

# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 161
        def eql?(other)
          @qname == other.qname
        end

[Source]

# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 166
        def hash
          @qname.hash
        end

[Source]

# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 148
        def qualified_type_name(ns=nil)
          if @type.custom?
            "#{ns ? ns : @qname.namespace}:#{@qname.name}"
          else
            ns = XSD::NS.new
            ns.assign(XSD::Namespace, SOAP::XSDNamespaceTag)
            ns.assign(SOAP::EncodingNamespace, "soapenc")
            xsd_klass = mapping[0].ancestors.find{|c| c.const_defined?('Type')}
            return ns.name(XSD::AnyTypeName) unless xsd_klass
            ns.name(xsd_klass.const_get('Type'))
          end
        end

[Source]

# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 144
        def type_name
          @type.custom? ? @qname.name : nil
        end

[Validate]