Changeset 1652
- Timestamp:
- 10/22/05 00:36:57 (3 years ago)
- Files:
-
- trunk/lib/soap/baseData.rb (modified) (31 diffs)
- trunk/lib/soap/encodingstyle/soapHandler.rb (modified) (1 diff)
- trunk/lib/soap/mapping/typeMap.rb (modified) (2 diffs)
- trunk/lib/soap/mapping/wsdlencodedregistry.rb (modified) (1 diff)
- trunk/test/wsdl/soap/wsdl2ruby/soapenc (added)
- trunk/test/wsdl/soap/wsdl2ruby/soapenc/soapenc.wsdl (added)
- trunk/test/wsdl/soap/wsdl2ruby/soapenc/test_soapenc.rb (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/soap/baseData.rb
r1650 r1652 223 223 include SOAPBasetype 224 224 extend SOAPModuleUtils 225 SOAPENCType = QName.new(EncodingNamespace, StringLiteral) 225 226 end 226 227 … … 228 229 include SOAPBasetype 229 230 extend SOAPModuleUtils 231 SOAPENCType = QName.new(EncodingNamespace, BooleanLiteral) 230 232 end 231 233 … … 233 235 include SOAPBasetype 234 236 extend SOAPModuleUtils 237 SOAPENCType = QName.new(EncodingNamespace, DecimalLiteral) 235 238 end 236 239 … … 238 241 include SOAPBasetype 239 242 extend SOAPModuleUtils 243 SOAPENCType = QName.new(EncodingNamespace, FloatLiteral) 240 244 end 241 245 … … 243 247 include SOAPBasetype 244 248 extend SOAPModuleUtils 249 SOAPENCType = QName.new(EncodingNamespace, DoubleLiteral) 245 250 end 246 251 … … 248 253 include SOAPBasetype 249 254 extend SOAPModuleUtils 255 SOAPENCType = QName.new(EncodingNamespace, DurationLiteral) 250 256 end 251 257 … … 253 259 include SOAPBasetype 254 260 extend SOAPModuleUtils 261 SOAPENCType = QName.new(EncodingNamespace, DateTimeLiteral) 255 262 end 256 263 … … 258 265 include SOAPBasetype 259 266 extend SOAPModuleUtils 267 SOAPENCType = QName.new(EncodingNamespace, TimeLiteral) 260 268 end 261 269 … … 263 271 include SOAPBasetype 264 272 extend SOAPModuleUtils 273 SOAPENCType = QName.new(EncodingNamespace, DateLiteral) 265 274 end 266 275 … … 268 277 include SOAPBasetype 269 278 extend SOAPModuleUtils 279 SOAPENCType = QName.new(EncodingNamespace, GYearMonthLiteral) 270 280 end 271 281 … … 273 283 include SOAPBasetype 274 284 extend SOAPModuleUtils 285 SOAPENCType = QName.new(EncodingNamespace, GYearLiteral) 275 286 end 276 287 … … 278 289 include SOAPBasetype 279 290 extend SOAPModuleUtils 291 SOAPENCType = QName.new(EncodingNamespace, GMonthDayLiteral) 280 292 end 281 293 … … 283 295 include SOAPBasetype 284 296 extend SOAPModuleUtils 297 SOAPENCType = QName.new(EncodingNamespace, GDayLiteral) 285 298 end 286 299 … … 288 301 include SOAPBasetype 289 302 extend SOAPModuleUtils 303 SOAPENCType = QName.new(EncodingNamespace, GMonthLiteral) 290 304 end 291 305 … … 293 307 include SOAPBasetype 294 308 extend SOAPModuleUtils 309 SOAPENCType = QName.new(EncodingNamespace, HexBinaryLiteral) 295 310 end 296 311 … … 298 313 include SOAPBasetype 299 314 extend SOAPModuleUtils 300 Type = QName.new(EncodingNamespace, Base64Literal)315 Type = SOAPENCType = QName.new(EncodingNamespace, Base64Literal) 301 316 302 317 public … … 315 330 include SOAPBasetype 316 331 extend SOAPModuleUtils 332 SOAPENCType = QName.new(EncodingNamespace, AnyURILiteral) 317 333 end 318 334 … … 320 336 include SOAPBasetype 321 337 extend SOAPModuleUtils 338 SOAPENCType = QName.new(EncodingNamespace, QNameLiteral) 322 339 end 323 340 … … 326 343 include SOAPBasetype 327 344 extend SOAPModuleUtils 345 SOAPENCType = QName.new(EncodingNamespace, IntegerLiteral) 328 346 end 329 347 … … 331 349 include SOAPBasetype 332 350 extend SOAPModuleUtils 351 SOAPENCType = QName.new(EncodingNamespace, NonPositiveIntegerLiteral) 333 352 end 334 353 … … 336 355 include SOAPBasetype 337 356 extend SOAPModuleUtils 357 SOAPENCType = QName.new(EncodingNamespace, NegativeIntegerLiteral) 338 358 end 339 359 … … 341 361 include SOAPBasetype 342 362 extend SOAPModuleUtils 363 SOAPENCType = QName.new(EncodingNamespace, LongLiteral) 343 364 end 344 365 … … 346 367 include SOAPBasetype 347 368 extend SOAPModuleUtils 369 SOAPENCType = QName.new(EncodingNamespace, IntLiteral) 348 370 end 349 371 … … 351 373 include SOAPBasetype 352 374 extend SOAPModuleUtils 375 SOAPENCType = QName.new(EncodingNamespace, ShortLiteral) 353 376 end 354 377 … … 356 379 include SOAPBasetype 357 380 extend SOAPModuleUtils 381 SOAPENCType = QName.new(EncodingNamespace, ByteLiteral) 358 382 end 359 383 … … 361 385 include SOAPBasetype 362 386 extend SOAPModuleUtils 387 SOAPENCType = QName.new(EncodingNamespace, NonNegativeIntegerLiteral) 363 388 end 364 389 … … 366 391 include SOAPBasetype 367 392 extend SOAPModuleUtils 393 SOAPENCType = QName.new(EncodingNamespace, UnsignedLongLiteral) 368 394 end 369 395 … … 371 397 include SOAPBasetype 372 398 extend SOAPModuleUtils 399 SOAPENCType = QName.new(EncodingNamespace, UnsignedIntLiteral) 373 400 end 374 401 … … 376 403 include SOAPBasetype 377 404 extend SOAPModuleUtils 405 SOAPENCType = QName.new(EncodingNamespace, UnsignedShortLiteral) 378 406 end 379 407 … … 381 409 include SOAPBasetype 382 410 extend SOAPModuleUtils 411 SOAPENCType = QName.new(EncodingNamespace, UnsignedByteLiteral) 383 412 end 384 413 … … 386 415 include SOAPBasetype 387 416 extend SOAPModuleUtils 417 SOAPENCType = QName.new(EncodingNamespace, PositiveIntegerLiteral) 388 418 end 389 419 trunk/lib/soap/encodingstyle/soapHandler.rb
r1603 r1652 439 439 end 440 440 441 if (klass = TypeMap[type])441 if klass = TypeMap[type] 442 442 node = decode_basetype(klass, elename) 443 443 node.extraattr.update(extraattr) trunk/lib/soap/mapping/typeMap.rb
r1520 r1652 12 12 TypeMap = { 13 13 XSD::XSDAnySimpleType::Type => SOAPAnySimpleType, 14 14 15 XSD::XSDString::Type => SOAPString, 15 16 XSD::XSDBoolean::Type => SOAPBoolean, … … 44 45 XSD::XSDPositiveInteger::Type => SOAPPositiveInteger, 45 46 46 SOAP::SOAPBase64::Type => SOAPBase64, 47 # soap4r does not use soapenc types actively but it should be accepted. 48 SOAP::SOAPString::SOAPENCType => SOAPString, 49 SOAP::SOAPBoolean::SOAPENCType => SOAPBoolean, 50 SOAP::SOAPDecimal::SOAPENCType => SOAPDecimal, 51 SOAP::SOAPFloat::SOAPENCType => SOAPFloat, 52 SOAP::SOAPDouble::SOAPENCType => SOAPDouble, 53 SOAP::SOAPDuration::SOAPENCType => SOAPDuration, 54 SOAP::SOAPDateTime::SOAPENCType => SOAPDateTime, 55 SOAP::SOAPTime::SOAPENCType => SOAPTime, 56 SOAP::SOAPDate::SOAPENCType => SOAPDate, 57 SOAP::SOAPGYearMonth::SOAPENCType => SOAPGYearMonth, 58 SOAP::SOAPGYear::SOAPENCType => SOAPGYear, 59 SOAP::SOAPGMonthDay::SOAPENCType => SOAPGMonthDay, 60 SOAP::SOAPGDay::SOAPENCType => SOAPGDay, 61 SOAP::SOAPGMonth::SOAPENCType => SOAPGMonth, 62 SOAP::SOAPHexBinary::SOAPENCType => SOAPHexBinary, 63 SOAP::SOAPBase64::SOAPENCType => SOAPBase64, 64 SOAP::SOAPAnyURI::SOAPENCType => SOAPAnyURI, 65 SOAP::SOAPQName::SOAPENCType => SOAPQName, 66 SOAP::SOAPInteger::SOAPENCType => SOAPInteger, 67 SOAP::SOAPNonPositiveInteger::SOAPENCType => SOAPNonPositiveInteger, 68 SOAP::SOAPNegativeInteger::SOAPENCType => SOAPNegativeInteger, 69 SOAP::SOAPLong::SOAPENCType => SOAPLong, 70 SOAP::SOAPInt::SOAPENCType => SOAPInt, 71 SOAP::SOAPShort::SOAPENCType => SOAPShort, 72 SOAP::SOAPByte::SOAPENCType => SOAPByte, 73 SOAP::SOAPNonNegativeInteger::SOAPENCType => SOAPNonNegativeInteger, 74 SOAP::SOAPUnsignedLong::SOAPENCType => SOAPUnsignedLong, 75 SOAP::SOAPUnsignedInt::SOAPENCType => SOAPUnsignedInt, 76 SOAP::SOAPUnsignedShort::SOAPENCType => SOAPUnsignedShort, 77 SOAP::SOAPUnsignedByte::SOAPENCType => SOAPUnsignedByte, 78 SOAP::SOAPPositiveInteger::SOAPENCType => SOAPPositiveInteger, 47 79 } 48 80 trunk/lib/soap/mapping/wsdlencodedregistry.rb
r1638 r1652 86 86 elsif obj.is_a?(XSD::NSDBase) 87 87 soap2soap(obj, qname) 88 elsif (type = TypeMap[qname])88 elsif type = TypeMap[qname] 89 89 base2soap(obj, type) 90 90 else