Method: WSDL::XMLSchema::ComplexType#find_arytype

Defined in:
lib/wsdl/soap/complexType.rb

#find_arytypeObject

Raises:

  • (RuntimeError)


113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/wsdl/soap/complexType.rb', line 113

def find_arytype
  unless compoundtype == :TYPE_ARRAY
    raise RuntimeError.new("Assert: not for array")
  end
  if arytype = find_soapenc_arytype
    return arytype
  end
  if map_as_array?
    return element_simpletype(elements[0])
  end
  raise RuntimeError.new("Assert: Unknown array definition.")
end