Class: Sekken::WSDL::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/sekken/wsdl/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, endpoint, binding_operation, port_type_operation, wsdl) ⇒ Operation

Returns a new instance of Operation.



8
9
10
11
12
13
14
# File 'lib/sekken/wsdl/operation.rb', line 8

def initialize(name, endpoint, binding_operation, port_type_operation, wsdl)
  @name = name
  @endpoint = endpoint
  @binding_operation = binding_operation
  @port_type_operation = port_type_operation
  @wsdl = wsdl
end

Instance Attribute Details

#binding_operationObject (readonly)

Returns the value of attribute binding_operation.



16
17
18
# File 'lib/sekken/wsdl/operation.rb', line 16

def binding_operation
  @binding_operation
end

#endpointObject (readonly)

Returns the value of attribute endpoint.



16
17
18
# File 'lib/sekken/wsdl/operation.rb', line 16

def endpoint
  @endpoint
end

#nameObject (readonly)

Returns the value of attribute name.



16
17
18
# File 'lib/sekken/wsdl/operation.rb', line 16

def name
  @name
end

#port_type_operationObject (readonly)

Returns the value of attribute port_type_operation.



16
17
18
# File 'lib/sekken/wsdl/operation.rb', line 16

def port_type_operation
  @port_type_operation
end

Instance Method Details

#inputObject



29
30
31
# File 'lib/sekken/wsdl/operation.rb', line 29

def input
  @input ||= Input.new(@binding_operation, @port_type_operation, @wsdl)
end

#input_styleObject



37
38
39
# File 'lib/sekken/wsdl/operation.rb', line 37

def input_style
  "#{@binding_operation.style}/#{@binding_operation.input_body[:use]}"
end

#outputObject



33
34
35
# File 'lib/sekken/wsdl/operation.rb', line 33

def output
  @output ||= Output.new(@binding_operation, @port_type_operation, @wsdl)
end

#output_styleObject



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

def output_style
  "#{@binding_operation.style}/#{@binding_operation.output[:body][:use]}"
end

#soap_actionObject



18
19
20
# File 'lib/sekken/wsdl/operation.rb', line 18

def soap_action
  @binding_operation.soap_action
end

#soap_versionObject



22
23
24
25
26
27
# File 'lib/sekken/wsdl/operation.rb', line 22

def soap_version
  case @binding_operation.soap_namespace
  when Sekken::NS_SOAP_1_1 then '1.1'
  when Sekken::NS_SOAP_1_2 then '1.2'
  end
end