Class: WSDL::SOAP::Operation

Inherits:
Info show all
Defined in:
lib/wsdl/soap/operation.rb

Defined Under Namespace

Classes: ParamInfo

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.


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

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

Instance Attribute Details

#soapactionObject (readonly)

Returns the value of attribute soapaction


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

def soapaction
  @soapaction
end

#styleObject (readonly)

Returns the value of attribute style


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

def style
  @style
end

Instance Method Details

#operation_styleObject


71
72
73
74
75
76
77
# File 'lib/wsdl/soap/operation.rb', line 71

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

#parse_attr(attr, value) ⇒ Object


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

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


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

def parse_element(element)
  nil
end