| Class | WS::Marshaling::SoapTypedArrayFactory |
| In: |
vendor/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb
|
| Parent: | SOAP::Mapping::Factory |
# File vendor/actionwebservice/lib/action_web_service/vendor/ws/marshaling/soap_marshaling.rb, line 245
245: def obj2soap(soap_class, obj, info, map)
246: unless obj.respond_to?(:arytype)
247: return nil
248: end
249: soap_obj = soap_class.new(SOAP::ValueArrayName, 1, obj.arytype)
250: mark_marshalled_obj(obj, soap_obj)
251: obj.each do |item|
252: child = SOAP::Mapping._obj2soap(item, map)
253: soap_obj.add(child)
254: end
255: soap_obj
256: end