Class: WSDL::SOAP::CGIStubCreator

Inherits:
Object
  • Object
show all
Includes:
ClassDefCreatorSupport
Defined in:
lib/action_web_service/wsdl/soap/cgiStubCreator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassDefCreatorSupport

#basetype_mapped_class, #create_class_name, #dq, #dqname, #dump_method_signature, #ndq, #sym

Methods included from XSD::CodeGen::GenSupport

capitalize, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize

Constructor Details

#initialize(definitions) ⇒ CGIStubCreator

Returns a new instance of CGIStubCreator.



24
25
26
# File 'lib/action_web_service/wsdl/soap/cgiStubCreator.rb', line 24

def initialize(definitions)
  @definitions = definitions
end

Instance Attribute Details

#definitionsObject (readonly)

Returns the value of attribute definitions.



22
23
24
# File 'lib/action_web_service/wsdl/soap/cgiStubCreator.rb', line 22

def definitions
  @definitions
end

Instance Method Details

#dump(service_name) ⇒ Object



28
29
30
31
32
# File 'lib/action_web_service/wsdl/soap/cgiStubCreator.rb', line 28

def dump(service_name)
  warn("CGI stub can have only 1 port.  Creating stub for the first port...  Rests are ignored.")
  port = @definitions.service(service_name).ports[0]
  dump_porttype(port.porttype.name)
end