diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 15:14:02 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 15:14:02 +0000 |
commit | 7797cbbe3dfd5be7ca7ff33b0c69a04f941243d1 (patch) | |
tree | 559f6780e94880fc3e7c37678fbe8b49ff0556d7 /lib/soap/baseData.rb | |
parent | 7767638d90e56f7d9b7355bc485ca26da64dfe7b (diff) | |
download | ruby-7797cbbe3dfd5be7ca7ff33b0c69a04f941243d1.tar.gz ruby-7797cbbe3dfd5be7ca7ff33b0c69a04f941243d1.tar.xz ruby-7797cbbe3dfd5be7ca7ff33b0c69a04f941243d1.zip |
* 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
Diffstat (limited to 'lib/soap/baseData.rb')
-rw-r--r-- | lib/soap/baseData.rb | 12 |
1 files changed, 10 insertions, 2 deletions
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 @@ -41,9 +41,16 @@ 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 |