Module: WSDL::SOAP::ClassDefCreatorSupport
Instance Method Summary
collapse
capitalize, #format, keyword?, safeconstname, safeconstname?, safemethodname, safemethodname?, safevarname, safevarname?, uncapitalize
Instance Method Details
#basetype_mapped_class(name) ⇒ Object
30
31
32
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 30
def basetype_mapped_class(name)
::SOAP::TypeMap[name]
end
|
#create_class_name(qname) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 22
def create_class_name(qname)
if klass = basetype_mapped_class(qname)
::SOAP::Mapping::DefaultRegistry.find_mapped_obj_class(klass).name
else
safeconstname(qname.name)
end
end
|
62
63
64
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 62
def dq(ele)
ele.dump
end
|
#dqname(qname) ⇒ Object
74
75
76
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 74
def dqname(qname)
qname.dump
end
|
#dump_method_signature(operation) ⇒ Object
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 34
def dump_method_signature(operation)
name = operation.name.name
input = operation.input
output = operation.output
fault = operation.fault
signature = "#{ name }#{ dump_inputparam(input) }"
str = <<__EOD__
# SYNOPSIS
# #{name}#{dump_inputparam(input)}
#
# ARGS
#{dump_inout_type(input).chomp}
#
# RETURNS
#{dump_inout_type(output).chomp}
#
__EOD__
unless fault.empty?
faultstr = (fault.collect { |f| dump_inout_type(f).chomp }).join(', ')
str <<<<__EOD__
# RAISES
# #{faultstr}
#
__EOD__
end
str
end
|
66
67
68
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 66
def ndq(ele)
ele.nil? ? 'nil' : dq(ele)
end
|
70
71
72
|
# File 'lib/action_web_service/wsdl/soap/classDefCreatorSupport.rb', line 70
def sym(ele)
':' + ele
end
|