Class: ActionWebService::Protocol::Soap::SoapBase64Factory
- Inherits:
-
SOAP::Mapping::Factory
- Object
- SOAP::Mapping::Factory
- ActionWebService::Protocol::Soap::SoapBase64Factory
- 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
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 |