In Files

  • wsdl/operation.rb

Class/Module Index [+]

Quicksearch

WSDL::Operation

Attributes

fault[R]
input[R]
name[R]
output[R]
parameter_order[R]
type[R]

Public Class Methods

new() click to toggle source
 
               # File wsdl/operation.rb, line 34
def initialize
  super
  @name = nil
  @type = nil
  @parameter_order = nil
  @input = nil
  @output = nil
  @fault = []
end
            

Public Instance Methods

input_info() click to toggle source
 
               # File wsdl/operation.rb, line 48
def input_info
  typename = input.find_message.name
  NameInfo.new(@name, typename, inputparts)
end
            
inputname() click to toggle source
 
               # File wsdl/operation.rb, line 62
def inputname
  XSD::QName.new(targetnamespace, input.name ? input.name.name : @name.name)
end
            
inputparts() click to toggle source
 
               # File wsdl/operation.rb, line 58
def inputparts
  sort_parts(input.find_message.parts)
end
            
output_info() click to toggle source
 
               # File wsdl/operation.rb, line 53
def output_info
  typename = output.find_message.name
  NameInfo.new(@name, typename, outputparts)
end
            
outputname() click to toggle source
 
               # File wsdl/operation.rb, line 70
def outputname
  XSD::QName.new(targetnamespace,
    output.name ? output.name.name : @name.name + 'Response')
end
            
outputparts() click to toggle source
 
               # File wsdl/operation.rb, line 66
def outputparts
  sort_parts(output.find_message.parts)
end
            
parse_attr(attr, value) click to toggle source
 
               # File wsdl/operation.rb, line 97
def parse_attr(attr, value)
  case attr
  when NameAttrName
    @name = XSD::QName.new(targetnamespace, value.source)
  when TypeAttrName
    @type = value
  when ParameterOrderAttrName
    @parameter_order = value.source.split(/\s+/)
  else
    nil
  end
end
            
parse_element(element) click to toggle source
 
               # File wsdl/operation.rb, line 75
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 DocumentationName
    o = Documentation.new
    o
  else
    nil
  end
end
            
targetnamespace() click to toggle source
 
               # File wsdl/operation.rb, line 44
def targetnamespace
  parent.targetnamespace
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus