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

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

Instance Method Summary collapse

Instance Method Details

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



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

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



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

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