diff options
Diffstat (limited to 'sample/soap/sampleStruct/iSampleStruct.rb')
-rw-r--r-- | sample/soap/sampleStruct/iSampleStruct.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sample/soap/sampleStruct/iSampleStruct.rb b/sample/soap/sampleStruct/iSampleStruct.rb new file mode 100644 index 0000000000..399ea52eb8 --- /dev/null +++ b/sample/soap/sampleStruct/iSampleStruct.rb @@ -0,0 +1,22 @@ +require 'soap/mapping' + +SampleStructServiceNamespace = 'http://tempuri.org/sampleStructService' + +class SampleStruct; include SOAP::Marshallable + attr_accessor :sampleArray + attr_accessor :date + + def initialize + @sampleArray = SampleArray[ "cyclic", self ] + @date = DateTime.now + end + + def wrap( rhs ) + @sampleArray = SampleArray[ "wrap", rhs.dup ] + @date = DateTime.now + self + end +end + +class SampleArray < Array; include SOAP::Marshallable +end |