Changeset 1931
- Timestamp:
- 08/31/07 23:17:57 (1 year ago)
- Files:
-
- trunk/lib/soap/mapping/encodedregistry.rb (modified) (3 diffs)
- trunk/lib/soap/mapping/factory.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/mapping/encodedregistry.rb
r1930 r1931 124 124 StringFactory = StringFactory_.new 125 125 BasetypeFactory = BasetypeFactory_.new 126 FixnumFactory = FixnumFactory_.new 126 127 DateTimeFactory = DateTimeFactory_.new 127 128 ArrayFactory = ArrayFactory_.new … … 147 148 [::Float, ::SOAP::SOAPFloat, BasetypeFactory, 148 149 {:derived_class => true}], 150 [::Fixnum, ::SOAP::SOAPInt, FixnumFactory], 149 151 [::Integer, ::SOAP::SOAPInt, BasetypeFactory, 150 152 {:derived_class => true}], … … 210 212 [::Float, ::SOAP::SOAPFloat, BasetypeFactory, 211 213 {:derived_class => true}], 214 [::Fixnum, ::SOAP::SOAPInt, FixnumFactory], 212 215 [::Integer, ::SOAP::SOAPInt, BasetypeFactory, 213 216 {:derived_class => true}], trunk/lib/soap/mapping/factory.rb
r1925 r1931 126 126 end 127 127 128 class FixnumFactory_ < Factory 129 def obj2soap(soap_class, obj, info, map) 130 soap_obj = nil 131 begin 132 soap_obj = soap_class.new(obj) 133 rescue XSD::ValueSpaceError 134 return nil 135 end 136 soap_obj 137 end 138 139 def soap2obj(obj_class, node, info, map) 140 obj = node.data 141 return true, obj 142 end 143 end 144 128 145 class BasetypeFactory_ < Factory 129 146 def initialize(allow_original_mapping = false)