WSDL::OperationBinding (Class)

In: wsdl/operationBinding.rb
Parent: Info

Attributes

fault  [R] 
input  [R] 
name  [R] 
output  [R] 
soapoperation  [R] 

Public Class methods

[Source]

# File wsdl/operationBinding.rb, line 22
  def initialize
    super
    @name = nil
    @input = nil
    @output = nil
    @fault = []
    @soapoperation = nil
  end

Public Instance methods

[Source]

# File wsdl/operationBinding.rb, line 39
  def find_operation
    porttype.operations[@name]
  end

[Source]

# File wsdl/operationBinding.rb, line 69
  def parse_attr(attr, value)
    case attr
    when NameAttrName
      @name = XSD::QName.new(targetnamespace, value)
    else
      nil
    end
  end

[Source]

# File wsdl/operationBinding.rb, line 43
  def parse_element(element)
    case element
    when InputName
      o = Param.new
      @input = o
      o
    when OutputName
      o = Param.new
      @output = o
      o
    when FaultName
      o = Param.new
      @fault << o
      o
    when SOAPOperationName
      o = WSDL::SOAP::Operation.new
      @soapoperation = o
      o
    when DocumentationName
      o = Documentation.new
      o
    else
      nil
    end
  end

[Source]

# File wsdl/operationBinding.rb, line 35
  def porttype
    root.porttype(parent.type)
  end

[Source]

# File wsdl/operationBinding.rb, line 31
  def targetnamespace
    parent.targetnamespace
  end

[Validate]