Changeset 1077
- Timestamp:
- 11/29/03 15:05:27 (5 years ago)
- Files:
-
- trunk/lib/soap/encodingstyle/soapHandler.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/encodingstyle/soapHandler.rb
r1066 r1077 332 332 def decode_tag_by_wsdl(ns, elename, typestr, parent, arytypestr, extraattr) 333 333 o = nil 334 # should branch by root attribute?335 334 if parent.class == SOAPBody 335 # root element: should branch by root attribute? 336 336 if @is_first_top_ele 337 337 # Unqualified name is allowed here. … … 339 339 type = @decode_typemap[elename] || 340 340 @decode_typemap.find_name(elename.name) 341 unless type 342 raise EncodingStyleError.new("Unknown operation '#{ elename }'.") 341 if type 342 o = SOAPStruct.new(elename) 343 o.definedtype = type 344 return o 343 345 end 344 o = SOAPStruct.new(elename) 345 o.definedtype = type 346 return o 347 elsif !typestr 348 # typeless multi-ref element. 349 return decode_tag_by_type(ns, elename, typestr, parent, arytypestr, 350 extraattr) 351 else 352 # typed multi-ref element. 346 end 347 # multi-ref element. 348 if typestr 353 349 typename = ns.parse(typestr) 354 350 typedef = @decode_typemap[typename] 355 return decode_defined_compoundtype(elename, typename, typedef, 356 arytypestr) 357 end 351 if typedef 352 return decode_defined_compoundtype(elename, typename, typedef, 353 arytypestr) 354 end 355 end 356 return decode_tag_by_type(ns, elename, typestr, parent, arytypestr, 357 extraattr) 358 358 end 359 359