Class: ActionWebService::Protocol::Soap::SoapBase64Factory

Inherits:
SOAP::Mapping::Factory show all
Defined in:
lib/action_web_service/protocol/soap_protocol/marshaler.rb

Instance Method Summary collapse

Methods inherited from SOAP::Mapping::Factory

#initialize, #setiv2obj, #setiv2soap

Methods included from SOAP::Mapping::TraverseSupport

#mark_marshalled_obj, #mark_unmarshalled_obj

Constructor Details

This class inherits a constructor from SOAP::Mapping::Factory

Instance Method Details

#obj2soap(soap_class, obj, info, map) ⇒ Object



225
226
227
228
229
230
# File 'lib/action_web_service/protocol/soap_protocol/marshaler.rb', line 225

def obj2soap(soap_class, obj, info, map)
  unless obj.is_a?(ActionWebService::Base64)
    return nil
  end
  return soap_class.new(obj)
end

#soap2obj(obj_class, node, info, map) ⇒ Object



232
233
234
235
236
237
# File 'lib/action_web_service/protocol/soap_protocol/marshaler.rb', line 232

def soap2obj(obj_class, node, info, map)
  unless node.type == SOAP::SOAPBase64::Type
    return false
  end
  return true, obj_class.new(node.string)
end