# File lib/wsdl/soap/complexType.rb, line 22 def check_type if have_any? :TYPE_STRUCT elsif content if attributes.empty? and map_as_array? if name == ::SOAP::Mapping::MapQName :TYPE_MAP else :TYPE_ARRAY end else :TYPE_STRUCT end elsif complexcontent complexcontent.check_type elsif simplecontent :TYPE_SIMPLE elsif !attributes.empty? :TYPE_STRUCT else # empty complexType definition (seen in partner.wsdl of salesforce) :TYPE_EMPTY end end