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



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

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



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

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