1ServiceNow::WSResult(3)User Contributed Perl DocumentatioSnerviceNow::WSResult(3)
2
3
4

WSResult module

6       Service-now Perl API - WSResult perl module
7

Desciption

9       An internal wrapper object used for parsing return values and detecting
10       SOAP faults
11
12   System Requirements
13       The Service-now Perl API requires Perl 5.8 with the following modules
14       installed
15
16         * SOAP::Lite (prerequisites http://soaplite.com/prereqs.html) 0.71 or later
17         * Crypt::SSLeay
18         * IO::Socket::SSL
19

Constructor

21   new
22       new(Type)
23
24       Example:
25
26           $WSResult = ServiceNow::WSResult->new($Type);
27
28       Constructor.  Access to the ServiceNow Web Service Result object.
29       Creates and stores a connection to specified table.
30
31   getValue
32       getValue(key)
33
34       Example:
35
36         $WSResult->getValue('name');
37
38       Get value from result hash using the supplied key.  Returns string
39       value.
40
41   getDisplayValue
42       getDisplayValue(key)
43
44       Example:
45
46           $WSResult->getValue($field);
47
48       Gets display value from result hash using the supplied key.  Returns a
49       string of the display value.
50
51   getResultBody
52       getResultBody();
53
54       Return the entire body of the result
55
56   getMultiInsertValue
57       getMultiInsertValue()
58
59       Return the results of a multi transform that resulted in multiple
60       insert responses
61
62   print
63       print()
64
65       Example:
66
67           $WSResult->print();
68
69       Prints entire contents of result.
70
71   printFault
72       printFault(hash)
73
74       Example:
75
76           $WSResult->printFault();
77
78       If fault print fault fields.
79
80   isFault
81       isFault()
82
83       Example:
84
85           $WSResult->isFault();
86
87       Returns boolean TRUE if result was not found, FALSE is result was
88       found.
89
90
91
92perl v5.36.0                      2023-01-20           ServiceNow::WSResult(3)
Impressum