Class: WSDL::SOAP::Operation
- Inherits:
-
Info
show all
- Defined in:
- lib/action_web_service/wsdl/soap/operation.rb
Defined Under Namespace
Classes: OperationInfo
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.
40
41
42
43
44
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 40
def initialize
super
@soapaction = nil
@style = nil
end
|
Instance Attribute Details
#soapaction ⇒ Object
Returns the value of attribute soapaction.
37
38
39
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 37
def soapaction
@soapaction
end
|
Returns the value of attribute style.
38
39
40
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 38
def style
@style
end
|
Instance Method Details
66
67
68
69
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 66
def input_info
name_info = parent.find_operation.input_info
param_info(name_info, parent.input)
end
|
#operation_style ⇒ Object
76
77
78
79
80
81
82
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 76
def operation_style
return @style if @style
if parent_binding.soapbinding
return parent_binding.soapbinding.style
end
nil
end
|
#output_info ⇒ Object
71
72
73
74
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 71
def output_info
name_info = parent.find_operation.output_info
param_info(name_info, parent.output)
end
|
#parse_attr(attr, value) ⇒ Object
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 50
def parse_attr(attr, value)
case attr
when StyleAttrName
if ["document", "rpc"].include?(value.source)
@style = value.source.intern
else
raise Parser::AttributeConstraintError.new(
"Unexpected value #{ value }.")
end
when SOAPActionAttrName
@soapaction = value.source
else
nil
end
end
|
#parse_element(element) ⇒ Object
46
47
48
|
# File 'lib/action_web_service/wsdl/soap/operation.rb', line 46
def parse_element(element)
nil
end
|