Class: WSDL::Operation
Defined Under Namespace
Classes: NameInfo
Constant Summary
collapse
- EMPTY =
[].freeze
Instance Attribute Summary collapse
Attributes inherited from Info
#id, #parent, #root
Instance Method Summary
collapse
Methods inherited from Info
#inspect, #parse_epilogue
Constructor Details
Returns a new instance of Operation.
34
35
36
37
38
39
40
41
42
|
# File 'lib/wsdl/operation.rb', line 34
def initialize
super
@name = nil
@type = nil
@parameter_order = nil
@input = nil
@output = nil
@fault = []
end
|
Instance Attribute Details
Returns the value of attribute fault.
31
32
33
|
# File 'lib/wsdl/operation.rb', line 31
def fault
@fault
end
|
Returns the value of attribute input.
29
30
31
|
# File 'lib/wsdl/operation.rb', line 29
def input
@input
end
|
27
28
29
|
# File 'lib/wsdl/operation.rb', line 27
def name
@name
end
|
Returns the value of attribute output.
30
31
32
|
# File 'lib/wsdl/operation.rb', line 30
def output
@output
end
|
#parameter_order ⇒ Object
28
29
30
|
# File 'lib/wsdl/operation.rb', line 28
def parameter_order
@parameter_order
end
|
32
33
34
|
# File 'lib/wsdl/operation.rb', line 32
def type
@type
end
|
Instance Method Details
48
49
50
51
52
53
54
55
|
# File 'lib/wsdl/operation.rb', line 48
def input_info
if message = input_message
typename = message.name
else
typename = nil
end
NameInfo.new(operationname(@name), typename, inputparts)
end
|
76
77
78
79
80
81
82
|
# File 'lib/wsdl/operation.rb', line 76
def inputname
if input
operationname(input.name ? input.name.name : @name)
else
nil
end
end
|
68
69
70
71
72
73
74
|
# File 'lib/wsdl/operation.rb', line 68
def inputparts
if message = input_message
sort_parts(message.parts)
else
EMPTY
end
end
|
#output_info ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'lib/wsdl/operation.rb', line 57
def output_info
if message = output_message
typename = message.name
else
typename = nil
end
NameInfo.new(operationname(@name), typename, outputparts)
end
|
#outputname ⇒ Object
92
93
94
95
96
97
98
|
# File 'lib/wsdl/operation.rb', line 92
def outputname
if output
operationname(output.name ? output.name.name : @name + 'Response')
else
nil
end
end
|
#outputparts ⇒ Object
84
85
86
87
88
89
90
|
# File 'lib/wsdl/operation.rb', line 84
def outputparts
if message = output_message
sort_parts(message.parts)
else
EMPTY
end
end
|
#parse_attr(attr, value) ⇒ Object
122
123
124
125
126
127
128
129
130
131
132
133
|
# File 'lib/wsdl/operation.rb', line 122
def parse_attr(attr, value)
case attr
when NameAttrName
@name = value.source
when TypeAttrName
@type = value
when ParameterOrderAttrName
@parameter_order = value.source.split(/\s+/)
else
nil
end
end
|
#parse_element(element) ⇒ Object
#targetnamespace ⇒ Object
44
45
46
|
# File 'lib/wsdl/operation.rb', line 44
def targetnamespace
parent.targetnamespace
end
|