|
Revision 1843, 465 bytes
(checked in by nahi, 2 years ago)
|
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
require 'soap/mapping' |
|---|
| 2 |
|
|---|
| 3 |
SampleStructServiceNamespace = 'http://tempuri.org/sampleStructService' |
|---|
| 4 |
|
|---|
| 5 |
class SampleStruct; include SOAP::Marshallable |
|---|
| 6 |
attr_accessor :sampleArray |
|---|
| 7 |
attr_accessor :date |
|---|
| 8 |
|
|---|
| 9 |
def initialize |
|---|
| 10 |
@sampleArray = SampleArray[ "cyclic", self ] |
|---|
| 11 |
@date = DateTime.now |
|---|
| 12 |
end |
|---|
| 13 |
|
|---|
| 14 |
def wrap( rhs ) |
|---|
| 15 |
@sampleArray = SampleArray[ "wrap", rhs.dup ] |
|---|
| 16 |
@date = DateTime.now |
|---|
| 17 |
self |
|---|
| 18 |
end |
|---|
| 19 |
end |
|---|
| 20 |
|
|---|
| 21 |
class SampleArray < Array; include SOAP::Marshallable |
|---|
| 22 |
end |
|---|