Parent

Methods

Files

Class/Module Index [+]

Quicksearch

WSDL::SOAP::CGIStubCreator

Attributes

definitions[R]

Public Class Methods

new(definitions, name_creator, modulepath = nil) click to toggle source
# File lib/wsdl/soap/cgiStubCreator.rb, line 24
def initialize(definitions, name_creator, modulepath = nil)
  @definitions = definitions
  @name_creator = name_creator
  @modulepath = modulepath
end

Public Instance Methods

dump(service_name) click to toggle source
# File lib/wsdl/soap/cgiStubCreator.rb, line 30
def dump(service_name)
  warn("CGI stub can have only 1 port.  Creating stub for the first port...  Rests are ignored.")
  services = @definitions.service(service_name)
  unless services
    raise RuntimeError.new("service not defined: #{service_name}")
  end
  ports = services.ports
  if ports.empty?
    raise RuntimeError.new("ports not found for #{service_name}")
  end
  port = ports[0]
  if port.porttype.nil?
    raise RuntimeError.new("porttype not found for #{port}")
  end
  dump_porttype(port.porttype)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.