lib/soap/rpc/element.rb in rubyjedi-soap4r-1.5.8.01 vs lib/soap/rpc/element.rb in rubyjedi-soap4r-1.5.8.20100616125722
- old
+ new
@@ -228,10 +228,10 @@
def init_param(param)
mapped_class = SOAPMethod.parse_mapped_class(param.mapped_class)
qname = param.qname
if qname.nil? and mapped_class
- qname = TypeMap.key(mapped_class)
+ qname = TypeMap.respond_to?(:key) ? TypeMap.key(mapped_class) : TypeMap.index(mapped_class) # RubyJedi: compatible with Ruby 1.8.6 and above
end
case param.io_type
when IN
@signature.push([IN, param.name, qname])
@inparam_names.push(param.name)