# File lib/wsdl/soap/servantSkeltonCreator.rb, line 30 30: def dump(porttype = nil) 31: result = "" 32: if @modulepath 33: result << "\n" 34: result << @modulepath.collect { |ele| "module #{ele}" }.join("; ") 35: result << "\n\n" 36: end 37: if porttype.nil? 38: @definitions.porttypes.each do |type| 39: result << dump_porttype(type.name) 40: result << "\n" 41: end 42: else 43: result << dump_porttype(porttype) 44: end 45: if @modulepath 46: result << "\n\n" 47: result << @modulepath.collect { |ele| "end" }.join("; ") 48: result << "\n" 49: end 50: result 51: end
# File lib/wsdl/soap/servantSkeltonCreator.rb, line 55 55: def dump_porttype(name) 56: class_name = mapped_class_basename(name, @modulepath) 57: c = XSD::CodeGen::ClassDef.new(class_name) 58: element_definitions = @definitions.collect_elements 59: operations = @definitions.porttype(name).operations 60: operations.each do |operation| 61: name = safemethodname(operation.name) 62: input = operation.input 63: params = input.find_message.parts.collect { |part| 64: safevarname(part.name) 65: } 66: m = XSD::CodeGen::MethodDef.new(name, params) do p [#{params.join(", ")}] raise NotImplementedError.new 67: end 68: m.comment = dump_method_signature(operation, element_definitions) 69: c.add_method(m) 70: end 71: c.dump 72: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.