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.



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

#operation_styleObject



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

def operation_style
  return @style if @style
  if parent_binding.soapbinding
    return parent_binding.soapbinding.style
  end
  nil
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