Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/trunk/test/wsdl/any/expectedEcho.rb

Revision 1949, 1.1 kB (checked in by nahi, 1 year ago)
  • do not create extraattr entry in SOAP/OM when the value is nil. it fixes unneccesary XML attribute serialization introduced in [1945].
  • let it be distinguishable <ele attr=> from <ele> (no attribute in the element). now the former returns and the latter returns nil. closes #418.
  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 require 'xsd/qname'
2
3 module WSDL; module Any
4
5
6 # {urn:example.com:echo-type}foo.bar
7 #   before - SOAP::SOAPString
8 #   after - SOAP::SOAPString
9 class FooBar
10   attr_accessor :before
11   attr_reader :__xmlele_any
12   attr_accessor :after
13
14   def set_any(elements)
15     @__xmlele_any = elements
16   end
17
18   def initialize(before = nil, after = nil)
19     @before = before
20     @__xmlele_any = nil
21     @after = after
22   end
23 end
24
25 # {urn:example.com:echo-type}setOutputAndCompleteRequest
26 #   taskId - SOAP::SOAPString
27 #   data - WSDL::Any::SetOutputAndCompleteRequest::C_Data
28 #   participantToken - SOAP::SOAPString
29 class SetOutputAndCompleteRequest
30
31   # inner class for member: data
32   # {}data
33   class C_Data
34     attr_reader :__xmlele_any
35
36     def set_any(elements)
37       @__xmlele_any = elements
38     end
39
40     def initialize
41       @__xmlele_any = nil
42     end
43   end
44
45   attr_accessor :taskId
46   attr_accessor :data
47   attr_accessor :participantToken
48
49   def initialize(taskId = nil, data = nil, participantToken = nil)
50     @taskId = taskId
51     @data = data
52     @participantToken = participantToken
53   end
54 end
55
56
57 end; end
Note: See TracBrowser for help on using the browser.