-
Notifications
You must be signed in to change notification settings - Fork 29
/
ApexServiceClient.rb
executable file
·82 lines (72 loc) · 1.98 KB
/
ApexServiceClient.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/env ruby
require 'defaultDriver.rb'
endpoint_url = ARGV.shift
obj = ApexPortType.new(endpoint_url)
# run ruby with -d to see SOAP wiredumps.
obj.wiredump_dev = STDERR if $DEBUG
# SYNOPSIS
# compileAndTest(parameters)
#
# ARGS
# parameters CompileAndTest - {http://soap.sforce.com/2006/08/apex}compileAndTest
#
# RETURNS
# parameters CompileAndTestResponse - {http://soap.sforce.com/2006/08/apex}compileAndTestResponse
#
parameters = nil
puts obj.compileAndTest(parameters)
# SYNOPSIS
# compileClasses(parameters)
#
# ARGS
# parameters CompileClasses - {http://soap.sforce.com/2006/08/apex}compileClasses
#
# RETURNS
# parameters CompileClassesResponse - {http://soap.sforce.com/2006/08/apex}compileClassesResponse
#
parameters = nil
puts obj.compileClasses(parameters)
# SYNOPSIS
# compileTriggers(parameters)
#
# ARGS
# parameters CompileTriggers - {http://soap.sforce.com/2006/08/apex}compileTriggers
#
# RETURNS
# parameters CompileTriggersResponse - {http://soap.sforce.com/2006/08/apex}compileTriggersResponse
#
parameters = nil
puts obj.compileTriggers(parameters)
# SYNOPSIS
# executeAnonymous(parameters)
#
# ARGS
# parameters ExecuteAnonymous - {http://soap.sforce.com/2006/08/apex}executeAnonymous
#
# RETURNS
# parameters ExecuteAnonymousResponse - {http://soap.sforce.com/2006/08/apex}executeAnonymousResponse
#
parameters = nil
puts obj.executeAnonymous(parameters)
# SYNOPSIS
# runTests(parameters)
#
# ARGS
# parameters RunTests - {http://soap.sforce.com/2006/08/apex}runTests
#
# RETURNS
# parameters RunTestsResponse - {http://soap.sforce.com/2006/08/apex}runTestsResponse
#
parameters = nil
puts obj.runTests(parameters)
# SYNOPSIS
# wsdlToApex(parameters)
#
# ARGS
# parameters WsdlToApex - {http://soap.sforce.com/2006/08/apex}wsdlToApex
#
# RETURNS
# parameters WsdlToApexResponse - {http://soap.sforce.com/2006/08/apex}wsdlToApexResponse
#
parameters = nil
puts obj.wsdlToApex(parameters)