Class WSDL::SOAP::MethodDefCreator
In: wsdl/soap/methodDefCreator.rb
Parent: Object

Methods

dump   new  

Included Modules

ClassDefCreatorSupport

Attributes

definitions  [R] 

Public Class methods

[Source]

# File wsdl/soap/methodDefCreator.rb, line 22
  def initialize(definitions)
    @definitions = definitions
    @simpletypes = @definitions.collect_simpletypes
    @complextypes = @definitions.collect_complextypes
    @elements = @definitions.collect_elements
    @types = nil
  end

Public Instance methods

[Source]

# File wsdl/soap/methodDefCreator.rb, line 30
  def dump(porttype)
    @types = []
    result = ""
    operations = @definitions.porttype(porttype).operations
    binding = @definitions.porttype_binding(porttype)
    operations.each do |operation|
      op_bind = binding.operations[operation.name]
      result << ",\n" unless result.empty?
      result << dump_method(operation, op_bind).chomp
    end
    return result, @types
  end

[Validate]