From 7797cbbe3dfd5be7ca7ff33b0c69a04f941243d1 Mon Sep 17 00:00:00 2001 From: nahi Date: Tue, 14 Oct 2003 15:14:02 +0000 Subject: * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor of SOAPBasetype and SOAPCompoundtype. * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*: Encoding methods signature change. Pass SOAPGenerator as a parameter. * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better marshalling/unmarshalling support. Now I think SOAP marshaller supports all kind of object graph which is supported by Ruby's original marshaller. Of course there could be bugs as always. Find it. :-) * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO. DEBUG is too noisy. * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset. * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/soap/baseData.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/soap/baseData.rb') diff --git a/lib/soap/baseData.rb b/lib/soap/baseData.rb index 30f3bce76..c175072e4 100644 --- a/lib/soap/baseData.rb +++ b/lib/soap/baseData.rb @@ -40,10 +40,17 @@ public end +### +## Marker of SOAP/DM types. +# +module SOAPType; end + + ### ## Mix-in module for SOAP base type instances. # module SOAPBasetype + include SOAPType include SOAP attr_accessor :encodingstyle @@ -75,6 +82,7 @@ end ## Mix-in module for SOAP compound type instances. # module SOAPCompoundtype + include SOAPType include SOAP attr_accessor :encodingstyle @@ -168,7 +176,7 @@ public d end - def SOAPReference.create_refid(obj) + def self.create_refid(obj) 'id' << obj.__id__.to_s end end @@ -597,7 +605,7 @@ public data = retrieve(idxary[0, idxary.size - 1]) data[idxary.last] = value - if value.is_a?(SOAPBasetype) || value.is_a?(SOAPCompoundtype) + if value.is_a?(SOAPType) value.elename = value.elename.dup_name('item') # Sync type -- cgit