Changeset 1538
- Timestamp:
- 05/07/05 14:51:57 (4 years ago)
- Files:
-
- trunk/lib/soap/encodingstyle/soapHandler.rb (modified) (1 diff)
- trunk/lib/soap/mapping/wsdlencodedregistry.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/classDefCreator.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/complexType.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/mappingRegistryCreator.rb (modified) (1 diff)
- trunk/lib/wsdl/soap/methodDefCreator.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/encodingstyle/soapHandler.rb
r1520 r1538 418 418 o.elename = elename 419 419 end 420 o.definedtype = typedef 421 return o 422 when :TYPE_EMPTY 423 o = SOAPNil.decode(elename) 420 424 o.definedtype = typedef 421 425 return o trunk/lib/soap/mapping/wsdlencodedregistry.rb
r1520 r1538 131 131 when :TYPE_SIMPLE 132 132 simple2soap(obj, type.simplecontent) 133 when :TYPE_EMPTY 134 raise MappingError.new("should be empty") unless obj.nil? 135 SOAPNil.new 133 136 else 134 137 raise MappingError.new("unknown compound type: #{type.compoundtype}") trunk/lib/wsdl/soap/classDefCreator.rb
r1522 r1538 76 76 @complextypes.collect { |type| 77 77 case type.compoundtype 78 when :TYPE_STRUCT 78 when :TYPE_STRUCT, :TYPE_EMPTY 79 79 dump_classdef(type.name, type) 80 80 when :TYPE_ARRAY trunk/lib/wsdl/soap/complexType.rb
r1520 r1538 42 42 elsif !attributes.empty? 43 43 :TYPE_STRUCT 44 else 45 raise NotImplementedError.new("Unknown kind of complexType.")44 else # empty complexType definition (seen in partner.wsdl of salesforce) 45 :TYPE_EMPTY 46 46 end 47 47 end trunk/lib/wsdl/soap/mappingRegistryCreator.rb
r1520 r1538 52 52 when :TYPE_ARRAY 53 53 dump_array_typemap(definedtype) 54 when :TYPE_MAP 54 when :TYPE_MAP, :TYPE_EMPTY 55 55 nil 56 56 else trunk/lib/wsdl/soap/methodDefCreator.rb
r1532 r1538 112 112 elsif definedtype = @complextypes[part.type] 113 113 case definedtype.compoundtype 114 when :TYPE_STRUCT 114 when :TYPE_STRUCT, :TYPE_EMPTY # ToDo: empty should be treated as void. 115 115 type = create_class_name(part.type) 116 116 [type, part.type.namespace, part.type.name]