Parent

Methods

Files

Class/Module Index [+]

Quicksearch

WSDL::SOAP::MethodDefCreator

Attributes

assigned_method[R]

TODO: should not export this kind of stateful information. will be rewwritten in 1.6.1

definitions[R]

Public Class Methods

new(definitions, name_creator, modulepath, defined_const) click to toggle source
# File lib/wsdl/soap/methodDefCreator.rb, line 27
def initialize(definitions, name_creator, modulepath, defined_const)
  @definitions = definitions
  @name_creator = name_creator
  @modulepath = modulepath
  @simpletypes = @definitions.collect_simpletypes
  @complextypes = @definitions.collect_complextypes
  @elements = @definitions.collect_elements
  @defined_const = defined_const
  @assigned_method = {}
end

Public Instance Methods

create(bindingname) click to toggle source
# File lib/wsdl/soap/methodDefCreator.rb, line 51
def create(bindingname)
  binding = @definitions.binding(bindingname)
  if binding
    return binding.operations.collect { |op_bind|
      next unless op_bind.soapoperation # not a SOAP operation binding
      create_methoddef(op_bind)
    }
  end
  nil
end
dump(name) click to toggle source
# File lib/wsdl/soap/methodDefCreator.rb, line 38
def dump(name)
  methoddef = ""
  porttype = @definitions.porttype(name)
  binding = porttype.find_binding
  if binding
    create(binding.name).each do |mdef|
      methoddef << ",\n" unless methoddef.empty?
      methoddef << dump_method(mdef).chomp
    end
  end
  methoddef
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.