forked from asselitx/manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice-scripts.xml
162 lines (162 loc) · 6.52 KB
/
service-scripts.xml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<Script>
<Transforms>
<xsdl:Transform name="GenericOutOfBand" target="soap:Body/{$query}" xmlns:xsdl="hpcc-crt">
<xsdl:choose>
<xsdl:when test="true()">
<xsdl:SetValue target="_ClientIP" value="$espUserPeer"/>
<xsdl:SetValue target="_DeliveryMethod" value="'XML'"/>
<xsdl:SetValue target="_ESPClientInterfaceVersion" value="$clientversion"/>
<xsdl:SetValue target="_ESPMethodName" value="$method"/>
<xsdl:SetValue target="_LoginId" value="$espUserName"/>
</xsdl:when>
</xsdl:choose>
</xsdl:Transform>
<xsdl:Transform name="UserOutOfBand" target="soap:Body/{$query}" xmlns:xsdl="hpcc-crt">
<xsdl:choose>
<xsdl:when test="true()">
<xsdl:SetValue target="_QueryId" value="//User/QueryId"/>
<xsdl:SetValue target="_ReferenceCode" value="//User/ReferenceCode"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:AppendValue target="GLBPurpose" value="'0'"/>
</xsdl:otherwise>
<xsdl:when test="string-length(normalize-space(//User/GLBPurpose))=0"/>
</xsdl:choose>
</xsdl:otherwise>
<xsdl:when test="contains($glbAllowed, concat(' ', string(number(//User/GLBPurpose)), ' '))">
<xsdl:AppendValue target="GLBPurpose" value="string(number(//User/GLBPurpose))"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:AppendValue target="DPPAPurpose" value="'0'"/>
</xsdl:otherwise>
<xsdl:when test="string-length(normalize-space(//User/DLPurpose))=0"/>
</xsdl:choose>
</xsdl:otherwise>
<xsdl:when test="contains($dppaAllowed, concat(' ', string(number(//User/DLPurpose)), ' '))">
<xsdl:AppendValue target="DPPAPurpose" value="string(number(//User/DLPurpose))"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:SetValue target="_CompanyId" value="''"/>
<xsdl:SetValue target="ExcludeDMVPII" value="'1'"/>
<xsdl:choose>
<xsdl:when test="string-length($SSNMask)>0">
<xsdl:choose>
<xsdl:otherwise>
<xsdl:SetValue target="SSNMask" value="$SSNMask"/>
</xsdl:otherwise>
<xsdl:when test="$fullssn=0">
<xsdl:SetValue target="SSNMask" value="'none'"/>
</xsdl:when>
</xsdl:choose>
</xsdl:when>
</xsdl:choose>
</xsdl:otherwise>
<xsdl:when test="$internal_user=1">
<xsdl:SetValue target="_CompanyId" value="//User/CompanyId"/>
<xsdl:choose>
<xsdl:when test="string-length(//User/DataPermissionMask)>0">
<xsdl:SetValue target="DataPermissionMask" value="//User/DataPermissionMask"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/DataRestrictionMask)>0">
<xsdl:SetValue target="DataRestrictionMask" value="//User/DataRestrictionMask"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/DeathMasterPurpose)>0">
<xsdl:SetValue target="DeathMasterPurpose" value="//User/DeathMasterPurpose"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/DLMask)>0">
<xsdl:SetValue target="DLMask" value="//User/DLMask"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/DOBMask)>0">
<xsdl:SetValue target="DOBMask" value="//User/DOBMask"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/ExcludeDMVPII)>0">
<xsdl:SetValue target="ExcludeDMVPII" value="//User/ExcludeDMVPII"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/IndustryClass)>0">
<xsdl:SetValue target="IndustryClass" value="//User/IndustryClass"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:when test="string-length(//User/SSNMask)>0">
<xsdl:SetValue target="SSNMask" value="//User/SSNMask"/>
</xsdl:when>
</xsdl:choose>
</xsdl:when>
</xsdl:choose>
</xsdl:Transform>
<xsdl:Transform name="UserInBand" target="soap:Body/{$query}/{$request}/Row/User" xmlns:xsdl="hpcc-crt">
<xsdl:choose>
<xsdl:otherwise>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:SetValue target="GLBPurpose" value="'0'"/>
</xsdl:otherwise>
<xsdl:when test="string-length(normalize-space(//GLBPurpose))=0"/>
</xsdl:choose>
</xsdl:otherwise>
<xsdl:when test="contains($glbAllowed, concat(' ', string(number(//GLBPurpose)), ' '))">
<xsdl:SetValue target="GLBPurpose" value="string(number(//GLBPurpose))"/>
</xsdl:when>
</xsdl:choose>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:choose>
<xsdl:otherwise>
<xsdl:SetValue target="DLPurpose" value="'0'"/>
</xsdl:otherwise>
<xsdl:when test="string-length(normalize-space(//DLPurpose))=0"/>
</xsdl:choose>
</xsdl:otherwise>
<xsdl:when test="contains($dppaAllowed, concat(' ', string(number(//DLPurpose)), ' '))">
<xsdl:SetValue target="DLPurpose" value="string(number(//DLPurpose))"/>
</xsdl:when>
</xsdl:choose>
</xsdl:Transform>
<xsdl:Transform name="BertErniePlatformOutOfBand" target="soap:Body/{$query}" xmlns:xsdl="hpcc-crt">
<xsdl:choose>
<xsdl:when test="true()">
<xsdl:AppendValue target="LogInfo/ProductId" value="'7'"/>
<xsdl:AppendValue target="LogInfo/SubProductId" value="'70014'"/>
</xsdl:when>
</xsdl:choose>
</xsdl:Transform>
<xsdl:Transform name="BertErniePlatformInBand" target="soap:Body/{$query}/{$request}/Row" xmlns:xsdl="hpcc-crt">
<xsdl:choose>
<xsdl:when required="false" test="$internal_user=1">
<xsdl:choose>
<xsdl:when required="false" test="string-length(ProductCode)=0">
<xsdl:AppendValue name="prod_i" optional="false" target="BertErnieUser/ProductCode" value="'10'"/>
</xsdl:when>
</xsdl:choose>
</xsdl:when>
<xsdl:otherwise>
<xsdl:AppendValue name="gcid_x" optional="false" target="BertErnieUser/GlobalCompanyId" value="$gc_id"/>
<xsdl:AppendValue name="prod_x" optional="false" target="BertErnieUser/ProductCode" value="10"/>
<xsdl:AppendValue name="industry_x" optional="false" target="BertErnieUser/IndustryTypeName" value="$BERTERNIE_API_PROGRAM"/>
</xsdl:otherwise>
</xsdl:choose>
</xsdl:Transform>
</Transforms>
</Script>