nettica 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +13 -0
- data/README.txt +50 -0
- data/Rakefile +19 -0
- data/bin/nettica +44 -0
- data/lib/nettica.rb +3 -0
- data/lib/nettica/client.rb +74 -0
- data/lib/nettica/stubs/DnsApiAsmxClient.rb +136 -0
- data/lib/nettica/stubs/nettica.rb +373 -0
- data/lib/nettica/stubs/nettica.wsdl +418 -0
- data/lib/nettica/stubs/netticaDriver.rb +123 -0
- data/lib/nettica/stubs/netticaMappingRegistry.rb +333 -0
- data/test/test_nettica.rb +0 -0
- metadata +85 -0
@@ -0,0 +1,418 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.nettica.com/DNS/DnsApi" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.nettica.com/DNS/DnsApi" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
3
|
+
<wsdl:types>
|
4
|
+
<s:schema elementFormDefault="qualified" targetNamespace="http://www.nettica.com/DNS/DnsApi">
|
5
|
+
<s:element name="GetServiceInfo">
|
6
|
+
<s:complexType>
|
7
|
+
<s:sequence>
|
8
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
9
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
10
|
+
</s:sequence>
|
11
|
+
</s:complexType>
|
12
|
+
</s:element>
|
13
|
+
<s:element name="GetServiceInfoResponse">
|
14
|
+
<s:complexType>
|
15
|
+
<s:sequence>
|
16
|
+
<s:element minOccurs="0" maxOccurs="1" name="GetServiceInfoResult" type="tns:ServiceResult" />
|
17
|
+
</s:sequence>
|
18
|
+
</s:complexType>
|
19
|
+
</s:element>
|
20
|
+
<s:complexType name="ServiceResult">
|
21
|
+
<s:sequence>
|
22
|
+
<s:element minOccurs="0" maxOccurs="1" name="Result" type="tns:DnsResult" />
|
23
|
+
<s:element minOccurs="1" maxOccurs="1" name="RemainingCredits" type="s:int" />
|
24
|
+
<s:element minOccurs="1" maxOccurs="1" name="TotalCredits" type="s:int" />
|
25
|
+
<s:element minOccurs="1" maxOccurs="1" name="ServiceRenewalDate" type="s:dateTime" />
|
26
|
+
</s:sequence>
|
27
|
+
</s:complexType>
|
28
|
+
<s:complexType name="DnsResult">
|
29
|
+
<s:sequence>
|
30
|
+
<s:element minOccurs="1" maxOccurs="1" name="Status" type="s:int" />
|
31
|
+
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
|
32
|
+
</s:sequence>
|
33
|
+
</s:complexType>
|
34
|
+
<s:element name="CreateZone">
|
35
|
+
<s:complexType>
|
36
|
+
<s:sequence>
|
37
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
38
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
39
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
40
|
+
<s:element minOccurs="0" maxOccurs="1" name="IpAddress" type="s:string" />
|
41
|
+
</s:sequence>
|
42
|
+
</s:complexType>
|
43
|
+
</s:element>
|
44
|
+
<s:element name="CreateZoneResponse">
|
45
|
+
<s:complexType>
|
46
|
+
<s:sequence>
|
47
|
+
<s:element minOccurs="0" maxOccurs="1" name="CreateZoneResult" type="tns:DnsResult" />
|
48
|
+
</s:sequence>
|
49
|
+
</s:complexType>
|
50
|
+
</s:element>
|
51
|
+
<s:element name="CreateSecondaryZone">
|
52
|
+
<s:complexType>
|
53
|
+
<s:sequence>
|
54
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
55
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
56
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
57
|
+
<s:element minOccurs="0" maxOccurs="1" name="Master" type="s:string" />
|
58
|
+
<s:element minOccurs="0" maxOccurs="1" name="IpAddress" type="s:string" />
|
59
|
+
</s:sequence>
|
60
|
+
</s:complexType>
|
61
|
+
</s:element>
|
62
|
+
<s:element name="CreateSecondaryZoneResponse">
|
63
|
+
<s:complexType>
|
64
|
+
<s:sequence>
|
65
|
+
<s:element minOccurs="0" maxOccurs="1" name="CreateSecondaryZoneResult" type="tns:DnsResult" />
|
66
|
+
</s:sequence>
|
67
|
+
</s:complexType>
|
68
|
+
</s:element>
|
69
|
+
<s:element name="DeleteZone">
|
70
|
+
<s:complexType>
|
71
|
+
<s:sequence>
|
72
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
73
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
74
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
75
|
+
</s:sequence>
|
76
|
+
</s:complexType>
|
77
|
+
</s:element>
|
78
|
+
<s:element name="DeleteZoneResponse">
|
79
|
+
<s:complexType>
|
80
|
+
<s:sequence>
|
81
|
+
<s:element minOccurs="0" maxOccurs="1" name="DeleteZoneResult" type="tns:DnsResult" />
|
82
|
+
</s:sequence>
|
83
|
+
</s:complexType>
|
84
|
+
</s:element>
|
85
|
+
<s:element name="ListZones">
|
86
|
+
<s:complexType>
|
87
|
+
<s:sequence>
|
88
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
89
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
90
|
+
</s:sequence>
|
91
|
+
</s:complexType>
|
92
|
+
</s:element>
|
93
|
+
<s:element name="ListZonesResponse">
|
94
|
+
<s:complexType>
|
95
|
+
<s:sequence>
|
96
|
+
<s:element minOccurs="0" maxOccurs="1" name="ListZonesResult" type="tns:ZoneResult" />
|
97
|
+
</s:sequence>
|
98
|
+
</s:complexType>
|
99
|
+
</s:element>
|
100
|
+
<s:complexType name="ZoneResult">
|
101
|
+
<s:sequence>
|
102
|
+
<s:element minOccurs="0" maxOccurs="1" name="Result" type="tns:DnsResult" />
|
103
|
+
<s:element minOccurs="1" maxOccurs="1" name="Count" type="s:int" />
|
104
|
+
<s:element minOccurs="0" maxOccurs="1" name="Zone" type="tns:ArrayOfString" />
|
105
|
+
</s:sequence>
|
106
|
+
</s:complexType>
|
107
|
+
<s:complexType name="ArrayOfString">
|
108
|
+
<s:sequence>
|
109
|
+
<s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
|
110
|
+
</s:sequence>
|
111
|
+
</s:complexType>
|
112
|
+
<s:element name="ListDomain">
|
113
|
+
<s:complexType>
|
114
|
+
<s:sequence>
|
115
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
116
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
117
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
118
|
+
</s:sequence>
|
119
|
+
</s:complexType>
|
120
|
+
</s:element>
|
121
|
+
<s:element name="ListDomainResponse">
|
122
|
+
<s:complexType>
|
123
|
+
<s:sequence>
|
124
|
+
<s:element minOccurs="0" maxOccurs="1" name="ListDomainResult" type="tns:DomainResult" />
|
125
|
+
</s:sequence>
|
126
|
+
</s:complexType>
|
127
|
+
</s:element>
|
128
|
+
<s:complexType name="DomainResult">
|
129
|
+
<s:sequence>
|
130
|
+
<s:element minOccurs="0" maxOccurs="1" name="Result" type="tns:DnsResult" />
|
131
|
+
<s:element minOccurs="1" maxOccurs="1" name="Count" type="s:int" />
|
132
|
+
<s:element minOccurs="0" maxOccurs="1" name="Record" type="tns:ArrayOfDomainRecord" />
|
133
|
+
</s:sequence>
|
134
|
+
</s:complexType>
|
135
|
+
<s:complexType name="ArrayOfDomainRecord">
|
136
|
+
<s:sequence>
|
137
|
+
<s:element minOccurs="0" maxOccurs="unbounded" name="DomainRecord" nillable="true" type="tns:DomainRecord" />
|
138
|
+
</s:sequence>
|
139
|
+
</s:complexType>
|
140
|
+
<s:complexType name="DomainRecord">
|
141
|
+
<s:sequence>
|
142
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
143
|
+
<s:element minOccurs="0" maxOccurs="1" name="HostName" type="s:string" />
|
144
|
+
<s:element minOccurs="0" maxOccurs="1" name="RecordType" type="s:string" />
|
145
|
+
<s:element minOccurs="0" maxOccurs="1" name="Data" type="s:string" />
|
146
|
+
<s:element minOccurs="1" maxOccurs="1" name="TTL" type="s:int" />
|
147
|
+
<s:element minOccurs="1" maxOccurs="1" name="Priority" type="s:int" />
|
148
|
+
</s:sequence>
|
149
|
+
</s:complexType>
|
150
|
+
<s:element name="AddRecord">
|
151
|
+
<s:complexType>
|
152
|
+
<s:sequence>
|
153
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
154
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
155
|
+
<s:element minOccurs="0" maxOccurs="1" name="d" type="tns:DomainRecord" />
|
156
|
+
</s:sequence>
|
157
|
+
</s:complexType>
|
158
|
+
</s:element>
|
159
|
+
<s:element name="AddRecordResponse">
|
160
|
+
<s:complexType>
|
161
|
+
<s:sequence>
|
162
|
+
<s:element minOccurs="0" maxOccurs="1" name="AddRecordResult" type="tns:DnsResult" />
|
163
|
+
</s:sequence>
|
164
|
+
</s:complexType>
|
165
|
+
</s:element>
|
166
|
+
<s:element name="UpdateRecord">
|
167
|
+
<s:complexType>
|
168
|
+
<s:sequence>
|
169
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
170
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
171
|
+
<s:element minOccurs="0" maxOccurs="1" name="Old" type="tns:DomainRecord" />
|
172
|
+
<s:element minOccurs="0" maxOccurs="1" name="New" type="tns:DomainRecord" />
|
173
|
+
</s:sequence>
|
174
|
+
</s:complexType>
|
175
|
+
</s:element>
|
176
|
+
<s:element name="UpdateRecordResponse">
|
177
|
+
<s:complexType>
|
178
|
+
<s:sequence>
|
179
|
+
<s:element minOccurs="0" maxOccurs="1" name="UpdateRecordResult" type="tns:DnsResult" />
|
180
|
+
</s:sequence>
|
181
|
+
</s:complexType>
|
182
|
+
</s:element>
|
183
|
+
<s:element name="DeleteRecord">
|
184
|
+
<s:complexType>
|
185
|
+
<s:sequence>
|
186
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
187
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
188
|
+
<s:element minOccurs="0" maxOccurs="1" name="d" type="tns:DomainRecord" />
|
189
|
+
</s:sequence>
|
190
|
+
</s:complexType>
|
191
|
+
</s:element>
|
192
|
+
<s:element name="DeleteRecordResponse">
|
193
|
+
<s:complexType>
|
194
|
+
<s:sequence>
|
195
|
+
<s:element minOccurs="0" maxOccurs="1" name="DeleteRecordResult" type="tns:DnsResult" />
|
196
|
+
</s:sequence>
|
197
|
+
</s:complexType>
|
198
|
+
</s:element>
|
199
|
+
<s:element name="ApplyTemplate">
|
200
|
+
<s:complexType>
|
201
|
+
<s:sequence>
|
202
|
+
<s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string" />
|
203
|
+
<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
|
204
|
+
<s:element minOccurs="0" maxOccurs="1" name="DomainName" type="s:string" />
|
205
|
+
<s:element minOccurs="0" maxOccurs="1" name="GroupName" type="s:string" />
|
206
|
+
</s:sequence>
|
207
|
+
</s:complexType>
|
208
|
+
</s:element>
|
209
|
+
<s:element name="ApplyTemplateResponse">
|
210
|
+
<s:complexType>
|
211
|
+
<s:sequence>
|
212
|
+
<s:element minOccurs="0" maxOccurs="1" name="ApplyTemplateResult" type="tns:DnsResult" />
|
213
|
+
</s:sequence>
|
214
|
+
</s:complexType>
|
215
|
+
</s:element>
|
216
|
+
</s:schema>
|
217
|
+
</wsdl:types>
|
218
|
+
<wsdl:message name="GetServiceInfoSoapIn">
|
219
|
+
<wsdl:part name="parameters" element="tns:GetServiceInfo" />
|
220
|
+
</wsdl:message>
|
221
|
+
<wsdl:message name="GetServiceInfoSoapOut">
|
222
|
+
<wsdl:part name="parameters" element="tns:GetServiceInfoResponse" />
|
223
|
+
</wsdl:message>
|
224
|
+
<wsdl:message name="CreateZoneSoapIn">
|
225
|
+
<wsdl:part name="parameters" element="tns:CreateZone" />
|
226
|
+
</wsdl:message>
|
227
|
+
<wsdl:message name="CreateZoneSoapOut">
|
228
|
+
<wsdl:part name="parameters" element="tns:CreateZoneResponse" />
|
229
|
+
</wsdl:message>
|
230
|
+
<wsdl:message name="CreateSecondaryZoneSoapIn">
|
231
|
+
<wsdl:part name="parameters" element="tns:CreateSecondaryZone" />
|
232
|
+
</wsdl:message>
|
233
|
+
<wsdl:message name="CreateSecondaryZoneSoapOut">
|
234
|
+
<wsdl:part name="parameters" element="tns:CreateSecondaryZoneResponse" />
|
235
|
+
</wsdl:message>
|
236
|
+
<wsdl:message name="DeleteZoneSoapIn">
|
237
|
+
<wsdl:part name="parameters" element="tns:DeleteZone" />
|
238
|
+
</wsdl:message>
|
239
|
+
<wsdl:message name="DeleteZoneSoapOut">
|
240
|
+
<wsdl:part name="parameters" element="tns:DeleteZoneResponse" />
|
241
|
+
</wsdl:message>
|
242
|
+
<wsdl:message name="ListZonesSoapIn">
|
243
|
+
<wsdl:part name="parameters" element="tns:ListZones" />
|
244
|
+
</wsdl:message>
|
245
|
+
<wsdl:message name="ListZonesSoapOut">
|
246
|
+
<wsdl:part name="parameters" element="tns:ListZonesResponse" />
|
247
|
+
</wsdl:message>
|
248
|
+
<wsdl:message name="ListDomainSoapIn">
|
249
|
+
<wsdl:part name="parameters" element="tns:ListDomain" />
|
250
|
+
</wsdl:message>
|
251
|
+
<wsdl:message name="ListDomainSoapOut">
|
252
|
+
<wsdl:part name="parameters" element="tns:ListDomainResponse" />
|
253
|
+
</wsdl:message>
|
254
|
+
<wsdl:message name="AddRecordSoapIn">
|
255
|
+
<wsdl:part name="parameters" element="tns:AddRecord" />
|
256
|
+
</wsdl:message>
|
257
|
+
<wsdl:message name="AddRecordSoapOut">
|
258
|
+
<wsdl:part name="parameters" element="tns:AddRecordResponse" />
|
259
|
+
</wsdl:message>
|
260
|
+
<wsdl:message name="UpdateRecordSoapIn">
|
261
|
+
<wsdl:part name="parameters" element="tns:UpdateRecord" />
|
262
|
+
</wsdl:message>
|
263
|
+
<wsdl:message name="UpdateRecordSoapOut">
|
264
|
+
<wsdl:part name="parameters" element="tns:UpdateRecordResponse" />
|
265
|
+
</wsdl:message>
|
266
|
+
<wsdl:message name="DeleteRecordSoapIn">
|
267
|
+
<wsdl:part name="parameters" element="tns:DeleteRecord" />
|
268
|
+
</wsdl:message>
|
269
|
+
<wsdl:message name="DeleteRecordSoapOut">
|
270
|
+
<wsdl:part name="parameters" element="tns:DeleteRecordResponse" />
|
271
|
+
</wsdl:message>
|
272
|
+
<wsdl:message name="ApplyTemplateSoapIn">
|
273
|
+
<wsdl:part name="parameters" element="tns:ApplyTemplate" />
|
274
|
+
</wsdl:message>
|
275
|
+
<wsdl:message name="ApplyTemplateSoapOut">
|
276
|
+
<wsdl:part name="parameters" element="tns:ApplyTemplateResponse" />
|
277
|
+
</wsdl:message>
|
278
|
+
<wsdl:portType name="DnsApiAsmxSoap">
|
279
|
+
<wsdl:operation name="GetServiceInfo">
|
280
|
+
<wsdl:input message="tns:GetServiceInfoSoapIn" />
|
281
|
+
<wsdl:output message="tns:GetServiceInfoSoapOut" />
|
282
|
+
</wsdl:operation>
|
283
|
+
<wsdl:operation name="CreateZone">
|
284
|
+
<wsdl:input message="tns:CreateZoneSoapIn" />
|
285
|
+
<wsdl:output message="tns:CreateZoneSoapOut" />
|
286
|
+
</wsdl:operation>
|
287
|
+
<wsdl:operation name="CreateSecondaryZone">
|
288
|
+
<wsdl:input message="tns:CreateSecondaryZoneSoapIn" />
|
289
|
+
<wsdl:output message="tns:CreateSecondaryZoneSoapOut" />
|
290
|
+
</wsdl:operation>
|
291
|
+
<wsdl:operation name="DeleteZone">
|
292
|
+
<wsdl:input message="tns:DeleteZoneSoapIn" />
|
293
|
+
<wsdl:output message="tns:DeleteZoneSoapOut" />
|
294
|
+
</wsdl:operation>
|
295
|
+
<wsdl:operation name="ListZones">
|
296
|
+
<wsdl:input message="tns:ListZonesSoapIn" />
|
297
|
+
<wsdl:output message="tns:ListZonesSoapOut" />
|
298
|
+
</wsdl:operation>
|
299
|
+
<wsdl:operation name="ListDomain">
|
300
|
+
<wsdl:input message="tns:ListDomainSoapIn" />
|
301
|
+
<wsdl:output message="tns:ListDomainSoapOut" />
|
302
|
+
</wsdl:operation>
|
303
|
+
<wsdl:operation name="AddRecord">
|
304
|
+
<wsdl:input message="tns:AddRecordSoapIn" />
|
305
|
+
<wsdl:output message="tns:AddRecordSoapOut" />
|
306
|
+
</wsdl:operation>
|
307
|
+
<wsdl:operation name="UpdateRecord">
|
308
|
+
<wsdl:input message="tns:UpdateRecordSoapIn" />
|
309
|
+
<wsdl:output message="tns:UpdateRecordSoapOut" />
|
310
|
+
</wsdl:operation>
|
311
|
+
<wsdl:operation name="DeleteRecord">
|
312
|
+
<wsdl:input message="tns:DeleteRecordSoapIn" />
|
313
|
+
<wsdl:output message="tns:DeleteRecordSoapOut" />
|
314
|
+
</wsdl:operation>
|
315
|
+
<wsdl:operation name="ApplyTemplate">
|
316
|
+
<wsdl:input message="tns:ApplyTemplateSoapIn" />
|
317
|
+
<wsdl:output message="tns:ApplyTemplateSoapOut" />
|
318
|
+
</wsdl:operation>
|
319
|
+
</wsdl:portType>
|
320
|
+
<wsdl:binding name="DnsApiAsmxSoap" type="tns:DnsApiAsmxSoap">
|
321
|
+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
|
322
|
+
<wsdl:operation name="GetServiceInfo">
|
323
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/GetServiceInfo" style="document" />
|
324
|
+
<wsdl:input>
|
325
|
+
<soap:body use="literal" />
|
326
|
+
</wsdl:input>
|
327
|
+
<wsdl:output>
|
328
|
+
<soap:body use="literal" />
|
329
|
+
</wsdl:output>
|
330
|
+
</wsdl:operation>
|
331
|
+
<wsdl:operation name="CreateZone">
|
332
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/CreateZone" style="document" />
|
333
|
+
<wsdl:input>
|
334
|
+
<soap:body use="literal" />
|
335
|
+
</wsdl:input>
|
336
|
+
<wsdl:output>
|
337
|
+
<soap:body use="literal" />
|
338
|
+
</wsdl:output>
|
339
|
+
</wsdl:operation>
|
340
|
+
<wsdl:operation name="CreateSecondaryZone">
|
341
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/CreateSecondaryZone" style="document" />
|
342
|
+
<wsdl:input>
|
343
|
+
<soap:body use="literal" />
|
344
|
+
</wsdl:input>
|
345
|
+
<wsdl:output>
|
346
|
+
<soap:body use="literal" />
|
347
|
+
</wsdl:output>
|
348
|
+
</wsdl:operation>
|
349
|
+
<wsdl:operation name="DeleteZone">
|
350
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/DeleteZone" style="document" />
|
351
|
+
<wsdl:input>
|
352
|
+
<soap:body use="literal" />
|
353
|
+
</wsdl:input>
|
354
|
+
<wsdl:output>
|
355
|
+
<soap:body use="literal" />
|
356
|
+
</wsdl:output>
|
357
|
+
</wsdl:operation>
|
358
|
+
<wsdl:operation name="ListZones">
|
359
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/ListZones" style="document" />
|
360
|
+
<wsdl:input>
|
361
|
+
<soap:body use="literal" />
|
362
|
+
</wsdl:input>
|
363
|
+
<wsdl:output>
|
364
|
+
<soap:body use="literal" />
|
365
|
+
</wsdl:output>
|
366
|
+
</wsdl:operation>
|
367
|
+
<wsdl:operation name="ListDomain">
|
368
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/ListDomain" style="document" />
|
369
|
+
<wsdl:input>
|
370
|
+
<soap:body use="literal" />
|
371
|
+
</wsdl:input>
|
372
|
+
<wsdl:output>
|
373
|
+
<soap:body use="literal" />
|
374
|
+
</wsdl:output>
|
375
|
+
</wsdl:operation>
|
376
|
+
<wsdl:operation name="AddRecord">
|
377
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/AddRecord" style="document" />
|
378
|
+
<wsdl:input>
|
379
|
+
<soap:body use="literal" />
|
380
|
+
</wsdl:input>
|
381
|
+
<wsdl:output>
|
382
|
+
<soap:body use="literal" />
|
383
|
+
</wsdl:output>
|
384
|
+
</wsdl:operation>
|
385
|
+
<wsdl:operation name="UpdateRecord">
|
386
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/UpdateRecord" style="document" />
|
387
|
+
<wsdl:input>
|
388
|
+
<soap:body use="literal" />
|
389
|
+
</wsdl:input>
|
390
|
+
<wsdl:output>
|
391
|
+
<soap:body use="literal" />
|
392
|
+
</wsdl:output>
|
393
|
+
</wsdl:operation>
|
394
|
+
<wsdl:operation name="DeleteRecord">
|
395
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/DeleteRecord" style="document" />
|
396
|
+
<wsdl:input>
|
397
|
+
<soap:body use="literal" />
|
398
|
+
</wsdl:input>
|
399
|
+
<wsdl:output>
|
400
|
+
<soap:body use="literal" />
|
401
|
+
</wsdl:output>
|
402
|
+
</wsdl:operation>
|
403
|
+
<wsdl:operation name="ApplyTemplate">
|
404
|
+
<soap:operation soapAction="http://www.nettica.com/DNS/DnsApi/ApplyTemplate" style="document" />
|
405
|
+
<wsdl:input>
|
406
|
+
<soap:body use="literal" />
|
407
|
+
</wsdl:input>
|
408
|
+
<wsdl:output>
|
409
|
+
<soap:body use="literal" />
|
410
|
+
</wsdl:output>
|
411
|
+
</wsdl:operation>
|
412
|
+
</wsdl:binding>
|
413
|
+
<wsdl:service name="DnsApiAsmx">
|
414
|
+
<wsdl:port name="DnsApiAsmxSoap" binding="tns:DnsApiAsmxSoap">
|
415
|
+
<soap:address location="https://www.nettica.com/DNS/DnsApi.asmx" />
|
416
|
+
</wsdl:port>
|
417
|
+
</wsdl:service>
|
418
|
+
</wsdl:definitions>
|
@@ -0,0 +1,123 @@
|
|
1
|
+
require 'nettica/stubs/nettica.rb'
|
2
|
+
require 'nettica/stubs/netticaMappingRegistry.rb'
|
3
|
+
require 'soap/rpc/driver'
|
4
|
+
|
5
|
+
module Nettica::Stubs
|
6
|
+
|
7
|
+
class DnsApiAsmxSoap < ::SOAP::RPC::Driver
|
8
|
+
DefaultEndpointUrl = "https://www.nettica.com/DNS/DnsApi.asmx"
|
9
|
+
|
10
|
+
Methods = [
|
11
|
+
[ "http://www.nettica.com/DNS/DnsApi/GetServiceInfo",
|
12
|
+
"getServiceInfo",
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "GetServiceInfo"]],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "GetServiceInfoResponse"]] ],
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
16
|
+
:response_style => :document, :response_use => :literal,
|
17
|
+
:faults => {} }
|
18
|
+
],
|
19
|
+
[ "http://www.nettica.com/DNS/DnsApi/CreateZone",
|
20
|
+
"createZone",
|
21
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "CreateZone"]],
|
22
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "CreateZoneResponse"]] ],
|
23
|
+
{ :request_style => :document, :request_use => :literal,
|
24
|
+
:response_style => :document, :response_use => :literal,
|
25
|
+
:faults => {} }
|
26
|
+
],
|
27
|
+
[ "http://www.nettica.com/DNS/DnsApi/CreateSecondaryZone",
|
28
|
+
"createSecondaryZone",
|
29
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "CreateSecondaryZone"]],
|
30
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "CreateSecondaryZoneResponse"]] ],
|
31
|
+
{ :request_style => :document, :request_use => :literal,
|
32
|
+
:response_style => :document, :response_use => :literal,
|
33
|
+
:faults => {} }
|
34
|
+
],
|
35
|
+
[ "http://www.nettica.com/DNS/DnsApi/DeleteZone",
|
36
|
+
"deleteZone",
|
37
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "DeleteZone"]],
|
38
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "DeleteZoneResponse"]] ],
|
39
|
+
{ :request_style => :document, :request_use => :literal,
|
40
|
+
:response_style => :document, :response_use => :literal,
|
41
|
+
:faults => {} }
|
42
|
+
],
|
43
|
+
[ "http://www.nettica.com/DNS/DnsApi/ListZones",
|
44
|
+
"listZones",
|
45
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ListZones"]],
|
46
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ListZonesResponse"]] ],
|
47
|
+
{ :request_style => :document, :request_use => :literal,
|
48
|
+
:response_style => :document, :response_use => :literal,
|
49
|
+
:faults => {} }
|
50
|
+
],
|
51
|
+
[ "http://www.nettica.com/DNS/DnsApi/ListDomain",
|
52
|
+
"listDomain",
|
53
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ListDomain"]],
|
54
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ListDomainResponse"]] ],
|
55
|
+
{ :request_style => :document, :request_use => :literal,
|
56
|
+
:response_style => :document, :response_use => :literal,
|
57
|
+
:faults => {} }
|
58
|
+
],
|
59
|
+
[ "http://www.nettica.com/DNS/DnsApi/AddRecord",
|
60
|
+
"addRecord",
|
61
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "AddRecord"]],
|
62
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "AddRecordResponse"]] ],
|
63
|
+
{ :request_style => :document, :request_use => :literal,
|
64
|
+
:response_style => :document, :response_use => :literal,
|
65
|
+
:faults => {} }
|
66
|
+
],
|
67
|
+
[ "http://www.nettica.com/DNS/DnsApi/UpdateRecord",
|
68
|
+
"updateRecord",
|
69
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "UpdateRecord"]],
|
70
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "UpdateRecordResponse"]] ],
|
71
|
+
{ :request_style => :document, :request_use => :literal,
|
72
|
+
:response_style => :document, :response_use => :literal,
|
73
|
+
:faults => {} }
|
74
|
+
],
|
75
|
+
[ "http://www.nettica.com/DNS/DnsApi/DeleteRecord",
|
76
|
+
"deleteRecord",
|
77
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "DeleteRecord"]],
|
78
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "DeleteRecordResponse"]] ],
|
79
|
+
{ :request_style => :document, :request_use => :literal,
|
80
|
+
:response_style => :document, :response_use => :literal,
|
81
|
+
:faults => {} }
|
82
|
+
],
|
83
|
+
[ "http://www.nettica.com/DNS/DnsApi/ApplyTemplate",
|
84
|
+
"applyTemplate",
|
85
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ApplyTemplate"]],
|
86
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://www.nettica.com/DNS/DnsApi", "ApplyTemplateResponse"]] ],
|
87
|
+
{ :request_style => :document, :request_use => :literal,
|
88
|
+
:response_style => :document, :response_use => :literal,
|
89
|
+
:faults => {} }
|
90
|
+
]
|
91
|
+
]
|
92
|
+
|
93
|
+
def initialize(endpoint_url = nil)
|
94
|
+
endpoint_url ||= DefaultEndpointUrl
|
95
|
+
super(endpoint_url, nil)
|
96
|
+
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
97
|
+
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
98
|
+
init_methods
|
99
|
+
end
|
100
|
+
|
101
|
+
private
|
102
|
+
|
103
|
+
def init_methods
|
104
|
+
Methods.each do |definitions|
|
105
|
+
opt = definitions.last
|
106
|
+
if opt[:request_style] == :document
|
107
|
+
add_document_operation(*definitions)
|
108
|
+
else
|
109
|
+
add_rpc_operation(*definitions)
|
110
|
+
qname = definitions[0]
|
111
|
+
name = definitions[2]
|
112
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
113
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
114
|
+
__send__(name, *arg)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
|
123
|
+
end
|