method
complexobj2soap
v1_8_7_72 -
Show latest stable
- Class:
SOAP::Mapping::WSDLEncodedRegistry
complexobj2soap(obj, type)private
No documentation available.
# File lib/soap/mapping/wsdlencodedregistry.rb, line 131
def complexobj2soap(obj, type)
case type.compoundtype
when :TYPE_STRUCT
struct2soap(obj, type.name, type)
when :TYPE_ARRAY
array2soap(obj, type.name, type)
when :TYPE_MAP
map2soap(obj, type.name, type)
when :TYPE_SIMPLE
simpleobj2soap(obj, type.simplecontent)
when :TYPE_EMPTY
raise MappingError.new("should be empty") unless obj.nil?
SOAPNil.new
else
raise MappingError.new("unknown compound type: #{type.compoundtype}")
end
end