diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 05:53:16 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 05:53:16 +0000 |
commit | 42bca643c3ec41782d519c7676383f8f71e67a7a (patch) | |
tree | 3ddde51774247d839f4e12ae0d9af6ff2e84d35b /lib/soap/encodingstyle | |
parent | a017b0cc8aea236600d47ff04cd829f84499f414 (diff) | |
download | ruby-42bca643c3ec41782d519c7676383f8f71e67a7a.tar.gz |
* lib/soap/streamHandler.rb: drop unused http parameters.
* lib/soap/encodingstyle/soapHandler.rb, lib/soap/mapping/factory.rb,
lib/soap/mapping/mapping.rb, lib/soap/mapping/registry.rb,
lib/wsdl/soap/complexType.rb: ApacheSOAP's map support was broken under WSDL
dynanic client environment. fixed.
* test/wsdl/raa/*: add tests.
* lib/xsd/datatypes.rb: dateTime precision bug fix (at least, I hope.) bug of
soap4r. XSDDateTimeImple.to_time passed a Float to Time.local/Time.gm as an
usec, and NUM2LONG(rb_num2long for Float) causes rounding error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/soap/encodingstyle')
-rw-r--r-- | lib/soap/encodingstyle/soapHandler.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/soap/encodingstyle/soapHandler.rb b/lib/soap/encodingstyle/soapHandler.rb index 51780f5520..1f359bef4e 100644 --- a/lib/soap/encodingstyle/soapHandler.rb +++ b/lib/soap/encodingstyle/soapHandler.rb @@ -162,8 +162,6 @@ class SOAPHandler < Handler o = SOAPReference.decode(elename, href) @refpool << o elsif @decode_typemap - # to parse multi-ref element with decode_tag_by_type. - # && (parent.node.class != SOAPBody || @is_first_top_ele) o = decode_tag_by_wsdl(ns, elename, type, parent.node, arytype, extraattr) else o = decode_tag_by_type(ns, elename, type, parent.node, arytype, extraattr) @@ -333,6 +331,7 @@ private def decode_tag_by_wsdl(ns, elename, typestr, parent, arytypestr, extraattr) o = nil + # should branch by root attribute? if parent.class == SOAPBody if @is_first_top_ele # Unqualified name is allowed here. @@ -363,11 +362,12 @@ private extraattr) end - # parent.definedtype is nil means the parent is SOAPUnknown. SOAPUnknown is - # generated by decode_tag_by_type when its type is anyType. + # parent.definedtype == nil means the parent is SOAPUnknown. SOAPUnknown + # is generated by decode_tag_by_type when its type is anyType. parenttype = parent.definedtype || @decode_typemap[parent.type] unless parenttype - raise EncodingStyleError.new("Unknown type '#{ parent.type }'.") + return decode_tag_by_type(ns, elename, typestr, parent, arytypestr, + extraattr) end definedtype_name = parenttype.child_type(elename) |