| Class | ActionWebService::Protocol::Soap::SoapBinding |
| In: |
actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb
|
| Parent: | Object |
| element_binding | [R] | |
| mapping | [R] | |
| qname | [R] | |
| type | [R] |
# 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
# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 161 def eql?(other) @qname == other.qname end
# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 166 def hash @qname.hash end
# 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