Class: WSDL::Param
Instance Attribute Summary collapse
Attributes inherited from Info
#id, #parent, #root
Instance Method Summary
collapse
Methods inherited from Info
#inspect, #parse_epilogue
Constructor Details
#initialize ⇒ Param
23
24
25
26
27
28
29
30
|
# File 'lib/wsdl/param.rb', line 23
def initialize
super
@message = nil
@name = nil
@soapbody = nil
@soapheader = []
@soapfault = nil
end
|
Instance Attribute Details
17
18
19
|
# File 'lib/wsdl/param.rb', line 17
def message
@message
end
|
optional but required for fault.
18
19
20
|
# File 'lib/wsdl/param.rb', line 18
def name
@name
end
|
Returns the value of attribute soapbody.
19
20
21
|
# File 'lib/wsdl/param.rb', line 19
def soapbody
@soapbody
end
|
#soapfault ⇒ Object
Returns the value of attribute soapfault.
21
22
23
|
# File 'lib/wsdl/param.rb', line 21
def soapfault
@soapfault
end
|
Returns the value of attribute soapheader.
20
21
22
|
# File 'lib/wsdl/param.rb', line 20
def
@soapheader
end
|
Instance Method Details
#find_message ⇒ Object
36
37
38
|
# File 'lib/wsdl/param.rb', line 36
def find_message
root.message(@message) or raise RuntimeError.new("#{@message} not found")
end
|
#parse_attr(attr, value) ⇒ Object
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# File 'lib/wsdl/param.rb', line 78
def parse_attr(attr, value)
case attr
when MessageAttrName
if value.namespace.nil?
value = XSD::QName.new(targetnamespace, value.source)
end
@message = value
when NameAttrName
@name = XSD::QName.new(targetnamespace, value.source)
else
nil
end
end
|
#parse_element(element) ⇒ Object
#soapbody_encodingstyle ⇒ Object
48
49
50
51
52
53
54
|
# File 'lib/wsdl/param.rb', line 48
def soapbody_encodingstyle
if @soapbody
@soapbody.encodingstyle
else
nil
end
end
|
#soapbody_use ⇒ Object
40
41
42
43
44
45
46
|
# File 'lib/wsdl/param.rb', line 40
def soapbody_use
if @soapbody
@soapbody.use || :literal
else
nil
end
end
|
#targetnamespace ⇒ Object
32
33
34
|
# File 'lib/wsdl/param.rb', line 32
def targetnamespace
parent.targetnamespace
end
|