forked from isisedonusum/SampleD2010
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaxPayerQuery.pas
426 lines (361 loc) · 15.6 KB
/
TaxPayerQuery.pas
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?wsdl
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?wsdl=wsdl0
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?wsdl>0
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?xsd=xsd0
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?xsd=xsd2
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?xsd=xsd3
// >Import : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?xsd=xsd1
// Encoding : utf-8
// Codegen : [wfMapArraysToClasses+]
// Version : 1.0
// (12/8/2016 11:36:53 AM - - $Rev: 25127 $)
// ************************************************************************ //
unit TaxPayerQuery;
interface
uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_NLBL = $0004;
IS_REF = $0080;
type
// ************************************************************************ //
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either aliases[@] of other types represented or were referred
// to but never[!] declared in the document. The types from the latter category
// typically map to predefined/known XML or Embarcadero types; however, they could also
// indicate incorrect WSDL documents that failed to declare or import a schema type.
// ************************************************************************ //
// !:string - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:dateTime - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:boolean - "http://www.w3.org/2001/XMLSchema"[Gbl]
User = class; { "http://isisbilisim.com.tr/data/einvoice"[GblCplx] }
User2 = class; { "http://isisbilisim.com.tr/data/einvoice"[GblElm] }
ArrayOfstring = class; { "http://schemas.microsoft.com/2003/10/Serialization/Arrays"[GblCplx] }
ArrayOfstring2 = class; { "http://schemas.microsoft.com/2003/10/Serialization/Arrays"[GblElm] }
ArrayOfUser = class; { "http://isisbilisim.com.tr/data/einvoice"[GblCplx] }
ArrayOfUser2 = class; { "http://isisbilisim.com.tr/data/einvoice"[GblElm] }
// ************************************************************************ //
// XML : User, global, <complexType>
// Namespace : http://isisbilisim.com.tr/data/einvoice
// ************************************************************************ //
User = class(TRemotable)
private
FAlias: string;
FAlias_Specified: boolean;
FCreatedDate: TXSDateTime;
FCreatedDate_Specified: boolean;
FIdentifier: string;
FIdentifier_Specified: boolean;
FIsActive: Boolean;
FIsActive_Specified: boolean;
FTitle: string;
FTitle_Specified: boolean;
FType_: string;
FType__Specified: boolean;
FUpdatedDate: TXSDateTime;
FUpdatedDate_Specified: boolean;
procedure SetAlias(Index: Integer; const Astring: string);
function Alias_Specified(Index: Integer): boolean;
procedure SetCreatedDate(Index: Integer; const ATXSDateTime: TXSDateTime);
function CreatedDate_Specified(Index: Integer): boolean;
procedure SetIdentifier(Index: Integer; const Astring: string);
function Identifier_Specified(Index: Integer): boolean;
procedure SetIsActive(Index: Integer; const ABoolean: Boolean);
function IsActive_Specified(Index: Integer): boolean;
procedure SetTitle(Index: Integer; const Astring: string);
function Title_Specified(Index: Integer): boolean;
procedure SetType_(Index: Integer; const Astring: string);
function Type__Specified(Index: Integer): boolean;
procedure SetUpdatedDate(Index: Integer; const ATXSDateTime: TXSDateTime);
function UpdatedDate_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
published
property Alias: string Index (IS_OPTN or IS_NLBL) read FAlias write SetAlias stored Alias_Specified;
property CreatedDate: TXSDateTime Index (IS_OPTN) read FCreatedDate write SetCreatedDate stored CreatedDate_Specified;
property Identifier: string Index (IS_OPTN or IS_NLBL) read FIdentifier write SetIdentifier stored Identifier_Specified;
property IsActive: Boolean Index (IS_OPTN) read FIsActive write SetIsActive stored IsActive_Specified;
property Title: string Index (IS_OPTN or IS_NLBL) read FTitle write SetTitle stored Title_Specified;
property Type_: string Index (IS_OPTN or IS_NLBL) read FType_ write SetType_ stored Type__Specified;
property UpdatedDate: TXSDateTime Index (IS_OPTN or IS_NLBL) read FUpdatedDate write SetUpdatedDate stored UpdatedDate_Specified;
end;
// ************************************************************************ //
// XML : User, global, <element>
// Namespace : http://isisbilisim.com.tr/data/einvoice
// ************************************************************************ //
User2 = class(User)
private
published
end;
Array_Of_string = array of string; { "http://www.w3.org/2001/XMLSchema"[GblUbnd] }
// ************************************************************************ //
// XML : ArrayOfstring, global, <complexType>
// Namespace : http://schemas.microsoft.com/2003/10/Serialization/Arrays
// ************************************************************************ //
ArrayOfstring = class(TRemotable)
private
Fstring_: Array_Of_string;
Fstring__Specified: boolean;
procedure Setstring_(Index: Integer; const AArray_Of_string: Array_Of_string);
function string__Specified(Index: Integer): boolean;
public
function GetstringArray(Index: Integer): string;
procedure SetstringArray(Index: Integer; const Item: string);
function GetstringArrayLength: Integer;
procedure SetstringArrayLength(Len: Integer);
property stringArray[Index: Integer]: string read GetstringArray write SetstringArray; default;
property Len: Integer read GetstringArrayLength write SetstringArrayLength;
published
property string_: Array_Of_string Index (IS_OPTN or IS_UNBD or IS_NLBL) read Fstring_ write Setstring_ stored string__Specified;
end;
// ************************************************************************ //
// XML : ArrayOfstring, global, <element>
// Namespace : http://schemas.microsoft.com/2003/10/Serialization/Arrays
// ************************************************************************ //
ArrayOfstring2 = class(ArrayOfstring)
private
published
end;
Array_Of_User = array of User; { "http://isisbilisim.com.tr/data/einvoice"[GblUbnd] }
// ************************************************************************ //
// XML : ArrayOfUser, global, <complexType>
// Namespace : http://isisbilisim.com.tr/data/einvoice
// ************************************************************************ //
ArrayOfUser = class(TRemotable)
private
FUser: Array_Of_User;
FUser_Specified: boolean;
procedure SetUser(Index: Integer; const AArray_Of_User: Array_Of_User);
function User_Specified(Index: Integer): boolean;
public
destructor Destroy; override;
function GetUserArray(Index: Integer): User;
procedure SetUserArray(Index: Integer; const Item: User);
function GetUserArrayLength: Integer;
procedure SetUserArrayLength(Len: Integer);
property UserArray[Index: Integer]: User read GetUserArray write SetUserArray; default;
property Len: Integer read GetUserArrayLength write SetUserArrayLength;
published
property User: Array_Of_User Index (IS_OPTN or IS_UNBD or IS_NLBL) read FUser write SetUser stored User_Specified;
end;
// ************************************************************************ //
// XML : ArrayOfUser, global, <element>
// Namespace : http://isisbilisim.com.tr/data/einvoice
// ************************************************************************ //
ArrayOfUser2 = class(ArrayOfUser)
private
published
end;
// ************************************************************************ //
// Namespace : http://isisbilisim.com.tr/services/einvoice
// soapAction: http://isisbilisim.com.tr/services/einvoice/ITaxPayerQuery/%operationName%
// style : document
// binding : BasicHttpBinding_ITaxPayerQuery
// service : TaxPayerQuery
// port : BasicHttpBinding_ITaxPayerQuery
// URL : http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc
// ************************************************************************ //
ITaxPayerQuery = interface(IInvokable)
['{9BE4B9F3-E835-B3A5-A889-65264B446897}']
function Filter(const vknList: ArrayOfstring; const startDate: string): ArrayOfUser; stdcall;
function GetList: ArrayOfUser; stdcall;
function GetActiveList: ArrayOfUser; stdcall;
function GetActiveListByVknList(const vknList: ArrayOfstring): ArrayOfUser; stdcall;
function GetListByVknList(const vknList: ArrayOfstring): ArrayOfUser; stdcall;
function GetActiveListByDate(const startDate: TXSDateTime; const endDate: TXSDateTime): ArrayOfUser; stdcall;
function GetListByDate(const startDate: TXSDateTime; const endDate: TXSDateTime): ArrayOfUser; stdcall;
function GetListByTitle(const title: string): ArrayOfUser; stdcall;
function GetActiveListByTitle(const title: string): ArrayOfUser; stdcall;
end;
function GetITaxPayerQuery(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ITaxPayerQuery;
implementation
uses SysUtils;
function GetITaxPayerQuery(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ITaxPayerQuery;
const
defWSDL = 'http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc?wsdl';
defURL = 'http://musteritestws.isisbilisim.com.tr/services/TaxPayerQuery.svc';
defSvc = 'TaxPayerQuery';
defPrt = 'BasicHttpBinding_ITaxPayerQuery';
var
RIO: THTTPRIO;
begin
Result := nil;
if (Addr = '') then
begin
if UseWSDL then
Addr := defWSDL
else
Addr := defURL;
end;
if HTTPRIO = nil then
RIO := THTTPRIO.Create(nil)
else
RIO := HTTPRIO;
try
Result := (RIO as ITaxPayerQuery);
if UseWSDL then
begin
RIO.WSDLLocation := Addr;
RIO.Service := defSvc;
RIO.Port := defPrt;
end else
RIO.URL := Addr;
finally
if (Result = nil) and (HTTPRIO = nil) then
RIO.Free;
end;
end;
destructor User.Destroy;
begin
SysUtils.FreeAndNil(FCreatedDate);
SysUtils.FreeAndNil(FUpdatedDate);
inherited Destroy;
end;
procedure User.SetAlias(Index: Integer; const Astring: string);
begin
FAlias := Astring;
FAlias_Specified := True;
end;
function User.Alias_Specified(Index: Integer): boolean;
begin
Result := FAlias_Specified;
end;
procedure User.SetCreatedDate(Index: Integer; const ATXSDateTime: TXSDateTime);
begin
FCreatedDate := ATXSDateTime;
FCreatedDate_Specified := True;
end;
function User.CreatedDate_Specified(Index: Integer): boolean;
begin
Result := FCreatedDate_Specified;
end;
procedure User.SetIdentifier(Index: Integer; const Astring: string);
begin
FIdentifier := Astring;
FIdentifier_Specified := True;
end;
function User.Identifier_Specified(Index: Integer): boolean;
begin
Result := FIdentifier_Specified;
end;
procedure User.SetIsActive(Index: Integer; const ABoolean: Boolean);
begin
FIsActive := ABoolean;
FIsActive_Specified := True;
end;
function User.IsActive_Specified(Index: Integer): boolean;
begin
Result := FIsActive_Specified;
end;
procedure User.SetTitle(Index: Integer; const Astring: string);
begin
FTitle := Astring;
FTitle_Specified := True;
end;
function User.Title_Specified(Index: Integer): boolean;
begin
Result := FTitle_Specified;
end;
procedure User.SetType_(Index: Integer; const Astring: string);
begin
FType_ := Astring;
FType__Specified := True;
end;
function User.Type__Specified(Index: Integer): boolean;
begin
Result := FType__Specified;
end;
procedure User.SetUpdatedDate(Index: Integer; const ATXSDateTime: TXSDateTime);
begin
FUpdatedDate := ATXSDateTime;
FUpdatedDate_Specified := True;
end;
function User.UpdatedDate_Specified(Index: Integer): boolean;
begin
Result := FUpdatedDate_Specified;
end;
function ArrayOfstring.GetstringArray(Index: Integer): string;
begin
Result := Fstring_[Index];
end;
procedure ArrayOfstring.SetstringArray(Index: Integer; const Item: string);
begin
Fstring_[Index] := Item;
Fstring__Specified := True;
end;
function ArrayOfstring.GetstringArrayLength: Integer;
begin
if Assigned(Fstring_) then
Result := System.Length(Fstring_)
else
Result := 0;
end;
procedure ArrayOfstring.SetstringArrayLength(Len: Integer);
begin
System.SetLength(Fstring_, Len);
end;
procedure ArrayOfstring.Setstring_(Index: Integer; const AArray_Of_string: Array_Of_string);
begin
Fstring_ := AArray_Of_string;
Fstring__Specified := True;
end;
function ArrayOfstring.string__Specified(Index: Integer): boolean;
begin
Result := Fstring__Specified;
end;
destructor ArrayOfUser.Destroy;
var
I: Integer;
begin
for I := 0 to System.Length(FUser)-1 do
SysUtils.FreeAndNil(FUser[I]);
System.SetLength(FUser, 0);
inherited Destroy;
end;
function ArrayOfUser.GetUserArray(Index: Integer): User;
begin
Result := FUser[Index];
end;
procedure ArrayOfUser.SetUserArray(Index: Integer; const Item: User);
begin
FUser[Index] := Item;
end;
function ArrayOfUser.GetUserArrayLength: Integer;
begin
if Assigned(FUser) then
Result := System.Length(FUser)
else
Result := 0;
end;
procedure ArrayOfUser.SetUserArrayLength(Len: Integer);
begin
System.SetLength(FUser, Len);
end;
procedure ArrayOfUser.SetUser(Index: Integer; const AArray_Of_User: Array_Of_User);
begin
FUser := AArray_Of_User;
FUser_Specified := True;
end;
function ArrayOfUser.User_Specified(Index: Integer): boolean;
begin
Result := FUser_Specified;
end;
initialization
InvRegistry.RegisterInterface(TypeInfo(ITaxPayerQuery), 'http://isisbilisim.com.tr/services/einvoice', 'utf-8');
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ITaxPayerQuery), 'http://isisbilisim.com.tr/services/einvoice/ITaxPayerQuery/%operationName%');
InvRegistry.RegisterInvokeOptions(TypeInfo(ITaxPayerQuery), ioDocument);
RemClassRegistry.RegisterXSClass(User, 'http://isisbilisim.com.tr/data/einvoice', 'User');
RemClassRegistry.RegisterExternalPropName(TypeInfo(User), 'Type_', 'Type');
RemClassRegistry.RegisterXSClass(User2, 'http://isisbilisim.com.tr/data/einvoice', 'User2', 'User');
RemClassRegistry.RegisterXSInfo(TypeInfo(Array_Of_string), 'http://www.w3.org/2001/XMLSchema', 'Array_Of_string');
RemClassRegistry.RegisterXSClass(ArrayOfstring, 'http://schemas.microsoft.com/2003/10/Serialization/Arrays', 'ArrayOfstring');
RemClassRegistry.RegisterExternalPropName(TypeInfo(ArrayOfstring), 'string_', 'string');
RemClassRegistry.RegisterXSClass(ArrayOfstring2, 'http://schemas.microsoft.com/2003/10/Serialization/Arrays', 'ArrayOfstring2', 'ArrayOfstring');
RemClassRegistry.RegisterXSInfo(TypeInfo(Array_Of_User), 'http://isisbilisim.com.tr/data/einvoice', 'Array_Of_User');
RemClassRegistry.RegisterXSClass(ArrayOfUser, 'http://isisbilisim.com.tr/data/einvoice', 'ArrayOfUser');
RemClassRegistry.RegisterXSClass(ArrayOfUser2, 'http://isisbilisim.com.tr/data/einvoice', 'ArrayOfUser2', 'ArrayOfUser');
end.