Class: WSDL::SOAP::Operation

Inherits:
Info show all
Defined in:
lib/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

#initializeOperation

Returns a new instance of Operation.



44
45
46
47
48
# File 'lib/wsdl/soap/operation.rb', line 44

def initialize
  super
  @soapaction = nil
  @style = nil
end

Instance Attribute Details

#soapactionObject (readonly)

Returns the value of attribute soapaction.



41
42
43
# File 'lib/wsdl/soap/operation.rb', line 41

def soapaction
  @soapaction
end

#styleObject (readonly)

Returns the value of attribute style.



42
43
44
# File 'lib/wsdl/soap/operation.rb', line 42

def style
  @style
end

Instance Method Details

#input_infoObject



70
71
72
73
# File 'lib/wsdl/soap/operation.rb', line 70

def input_info
  name_info = parent.find_operation.input_info
  param_info(name_info, parent.input)
end

#operation_styleObject



80
81
82
83
84
85
86
# File 'lib/wsdl/soap/operation.rb', line 80

def operation_style
  return @style if @style
  if parent_binding.soapbinding
    return parent_binding.soapbinding.style
  end
  nil
end

#output_infoObject



75
76
77
78
# File 'lib/wsdl/soap/operation.rb', line 75

def output_info
  name_info = parent.find_operation.output_info
  param_info(name_info, parent.output)
end

#parse_attr(attr, value) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/wsdl/soap/operation.rb', line 54

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



50
51
52
# File 'lib/wsdl/soap/operation.rb', line 50

def parse_element(element)
  nil
end