Changeset 1832
- Timestamp:
- 06/05/07 10:32:04 (1 year ago)
- Files:
-
- trunk/lib/soap/baseData.rb (modified) (1 diff)
- trunk/lib/soap/mapping/mapping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/baseData.rb
r1824 r1832 752 752 753 753 754 class SOAPREXMLElementWrap 755 def initialize(ele) 756 @ele = ele 757 end 758 759 def to_xml 760 @ele.to_s 761 end 762 end 763 764 754 765 class SOAPArray < XSD::NSDBase 755 766 include SOAPCompoundtype trunk/lib/soap/mapping/mapping.rb
r1830 r1832 120 120 end 121 121 122 class REXMLElementWrap123 def initialize(ele)124 @ele = ele125 end126 127 def to_xml128 @ele.to_s129 end130 end131 132 122 def self._obj2soap(obj, registry, type = nil) 133 123 if obj.respond_to?(:to_xml) 134 124 SOAPRawData.new(obj) 135 125 elsif defined?(::REXML) and obj.is_a?(::REXML::Element) 136 SOAPRawData.new( REXMLElementWrap.new(obj))126 SOAPRawData.new(SOAPREXMLElementWrap.new(obj)) 137 127 elsif referent = Thread.current[:SOAPMapping][:MarshalKey][obj.__id__] and 138 128 !Thread.current[:SOAPMapping][:NoReference]