Bonjour,

J'ai quelques difficultés à utiliser une web service via Delphi ( XE ). Je récupérais le WSDL du service popFAX (la documentation ) et l'intègre dans un pojet Delphi.
Ensuite, j'essai de m'authentifier via les fonctions du web service.

Voici une partie du code généré à partir du WSDL :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
 // ************************************************************************ //
  // Espace de nommage : urn:PopfaxService
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // utiliser   : encoded
  // Liaison : PopfaxServiceBinding
  // service   : PopfaxService
  // port      : PopfaxServicePort
  // URL       : https://api3.popfax.com/index.php?service=Popfax
  // ************************************************************************ //
  PopfaxServicePortType = interface(IInvokable)
  ['{39077948-1854-B114-B68A-A881DD795EBF}']
    procedure PopfaxService_AuthenticationHeader(const header: AuthenticationHeader); stdcall;
    function  PopfaxService_authenticate: Integer; stdcall;
    function  PopfaxService_getAllLanguages: ArrayOfLanguageInfo; stdcall;
    function  PopfaxService_getAllCountries: ArrayOfCountryInfo; stdcall;
    function  PopfaxService_getAccountInfo: AccountInfo; stdcall;
    function  PopfaxService_setAccountInfo(const info: AccountInfo): Integer; stdcall;
    function  PopfaxService_setNewEmail(const email: string): Integer; stdcall;
    function  PopfaxService_setNewPassword(const password: string): Integer; stdcall;
    function  PopfaxService_getOneContactGroupInfo(const id: Integer): ContactGroupInfo; stdcall;
    function  PopfaxService_getContactGroupInfo(const ids: ArrayOfInteger): ArrayOfContactGroupInfo; stdcall;
    function  PopfaxService_getOneContactInfo(const id: Integer): ContactInfo; stdcall;
    function  PopfaxService_getContactInfo(const ids: ArrayOfInteger): ArrayOfContactInfo; stdcall;
    function  PopfaxService_getOneFolderInfo(const id: Integer): FolderInfo; stdcall;
    function  PopfaxService_getFolderInfo(const ids: ArrayOfInteger): ArrayOfFolderInfo; stdcall;
    function  PopfaxService_getOneSMSSentInfo(const id: Integer): SMSSentInfo; stdcall;
    function  PopfaxService_getSMSSentInfo(const ids: ArrayOfInteger): ArrayOfSMSSentInfo; stdcall;
    function  PopfaxService_getOneFAXReceivedInfo(const id: Integer): FAXReceivedInfo; stdcall;
    function  PopfaxService_getFAXReceivedInfo(const ids: ArrayOfInteger): ArrayOfFAXReceivedInfo; stdcall;
    function  PopfaxService_getOneFAXSentInfo(const id: Integer): FAXSentInfo; stdcall;
    function  PopfaxService_getFAXSentInfo(const ids: ArrayOfInteger): ArrayOfFAXSentInfo; stdcall;
    function  PopfaxService_getOneVOICEReceivedInfo(const id: Integer): VOICEReceivedInfo; stdcall;
    function  PopfaxService_getVOICEReceivedInfo(const ids: ArrayOfInteger): ArrayOfVOICEReceivedInfo; stdcall;
    function  PopfaxService_reviewObjects: ObjectsIDInfo; stdcall;
    function  PopfaxService_getObjects(const data: ArrayOfObjectData): ObjectsInfo; stdcall;
    function  PopfaxService_getObjectTypes: ArrayOfEnumInfo; stdcall;
    function  PopfaxService_getObjectActions: ArrayOfEnumInfo; stdcall;
    function  PopfaxService_getModifiedContacts(const timestamp: Integer): ObjectsData; stdcall;
    function  PopfaxService_getModifiedObjects(const timestamp: Integer): ObjectsIDInfo; stdcall;
    function  PopfaxService_getRecipients(const id: Integer; const type_: string): ArrayOfRecipientInfo; stdcall;
    function  PopfaxService_getCoverpageInfo: CoverpageInfo; stdcall;
    function  PopfaxService_downloadFile(const id: Integer; const type_: Integer; const format: string): string; stdcall;
    function  PopfaxService_deleteObjects(const info: ArrayOfObjectsID): Integer; stdcall;
    function  PopfaxService_changeStatus(const info: ArrayOfObjectsID; const status: Integer): Integer; stdcall;
    function  PopfaxService_setContactInfo(const info: ContactInfo): Integer; stdcall;
    function  PopfaxService_updateContactInfo(const info: ContactInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_setContactGroupInfo(const info: ContactGroupInfo): Integer; stdcall;
    function  PopfaxService_updateContactGroupInfo(const info: ContactGroupInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_getAppVersion(const os: string; const app: string): AppVersion; stdcall;
    function  PopfaxService_getShiftTime: Integer; stdcall;
    function  PopfaxService_sendFaxDirect(const numbers: ArrayOfString; const type_: Integer; const report: string): ArrayOfInteger; stdcall;
    function  PopfaxService_sendFaxAsynchronous(const info: SendFaxInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_sendSmsAsynchronous(const info: SendSmsInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_forwardAsynchronous(const info: ForwardInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_asynchronInfoRange(const ids: ArrayOfInteger): ArrayOfObjectStatus; stdcall;
    function  PopfaxService_asynchronInfo(const id: Integer): ArrayOfInteger; stdcall;
    function  PopfaxService_registerApp(const app: Integer; const version: string): Integer; stdcall;
    function  PopfaxService_renameFolder(const folderid: Integer; const newname: string): ArrayOfInteger; stdcall;
    function  PopfaxService_moveToFolder(const allobjects: ArrayOfObjectsID; const folderid: Integer): Integer; stdcall;
    function  PopfaxService_getInboxOutboxID: ArrayOfInteger; stdcall;
  end;
Les fonctions qui m'intéresse sont :
  1. procedure PopfaxService_AuthenticationHeader(const header: AuthenticationHeader); stdcall;
  2. function PopfaxService_authenticate: Integer; stdcall;



j'ai implémenté ces fonctions de cette façon :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
procedure TForm4.Button1Click(Sender: TObject);
var
  auth : popFax.AuthenticationHeader;
  fax : popFax.PopfaxServicePortType;
  co : integer;
begin
  auth := popFax.AuthenticationHeader.Create();
  auth.email := 'email';
  auth.password := 'password';
 
  try
  begin
    co := popFax.GetPopfaxServicePortType.PopfaxService_authenticate();
    fax.PopfaxService_AuthenticationHeader(auth);
  end
 except
    on E : Exception do
      ShowMessage(E.ClassName+' error raised, with message : '+E.Message);
  end;
end;
A l’exécution, j’obtiens une erreur "ERemotableException error raised, with message : Error 107".
Je pense que j'ai des problèmes au niveau de la déclaration des fonctions et/ou du service.
Si vous avez une idée ou des questions

Merci d'avance !


Au cas ou, je vous mes l'intégralité du code généré à partir du WSDL :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
 
// ************************************************************************ //
// Les types déclarés dans ce fichier ont été générés à partir de données lues
// depuis le fichier WSDL décrit ci-dessous :
// WSDL     : https://api3.popfax.com/?service=Popfax&wsdl
//  >Importer : https://api3.popfax.com/?service=Popfax&wsdl>0
// Encodage : ISO-8859-1
// Version  : 1.0
// (04/01/2012 11:56:35 - - $Rev: 34800 $)
// ************************************************************************ //
 
unit popfax;
 
interface
 
uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;
 
type
 
  // ************************************************************************ //
  // Les types suivants mentionnés dans le document WSDL ne sont pas représentés
  // dans ce fichier. Ce sont des alias[@] d'autres types représentés ou alors ils étaient référencés
  // mais jamais[!] déclarés dans le document. Les types de la dernière catégorie
  // sont en principe mappés sur des types Embarcadero ou XML prédéfinis/connus. Toutefois, ils peuvent aussi 
  // signaler des documents WSDL incorrects n'ayant pas réussi à déclarer ou importer un type de schéma.
  // ************************************************************************ //
  // !:int             - "http://www.w3.org/2001/XMLSchema"[Gbl]
  // !:string          - "http://www.w3.org/2001/XMLSchema"[Gbl]
 
  ObjectStatus         = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectData           = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectsData          = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectsID            = class;                 { "urn:PopfaxService"[GblCplx] }
  AuthenticationHeader = class;                 { "urn:PopfaxService"[GblCplx] }
  LanguageInfo         = class;                 { "urn:PopfaxService"[GblCplx] }
  ContactGroupInfo     = class;                 { "urn:PopfaxService"[GblCplx] }
  ContactInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  CountryInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  AccountInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  AppVersion           = class;                 { "urn:PopfaxService"[GblCplx] }
  CoverpageInfo        = class;                 { "urn:PopfaxService"[GblCplx] }
  ForwardInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  SendFaxInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  SendSmsInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  RecipientInfo        = class;                 { "urn:PopfaxService"[GblCplx] }
  EnumInfo             = class;                 { "urn:PopfaxService"[GblCplx] }
  VOICEReceivedInfo    = class;                 { "urn:PopfaxService"[GblCplx] }
  FAXSentInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectsIDInfo        = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectIDInfo         = class;                 { "urn:PopfaxService"[GblCplx] }
  FolderInfo           = class;                 { "urn:PopfaxService"[GblCplx] }
  FAXReceivedInfo      = class;                 { "urn:PopfaxService"[GblCplx] }
  ObjectsInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
  SMSSentInfo          = class;                 { "urn:PopfaxService"[GblCplx] }
 
  ArrayOfEnumInfo = array of EnumInfo;          { "urn:PopfaxService"[GblCplx] }
  ArrayOfObjectData = array of ObjectData;      { "urn:PopfaxService"[GblCplx] }
  ArrayOfObjectStatus = array of ObjectStatus;   { "urn:PopfaxService"[GblCplx] }
  ArrayOfRecipientInfo = array of RecipientInfo;   { "urn:PopfaxService"[GblCplx] }
  ArrayOfObjectsID = array of ObjectsID;        { "urn:PopfaxService"[GblCplx] }
  ArrayOfCountryInfo = array of CountryInfo;    { "urn:PopfaxService"[GblCplx] }
  ArrayOfContactGroupInfo = array of ContactGroupInfo;   { "urn:PopfaxService"[GblCplx] }
  ArrayOfLanguageInfo = array of LanguageInfo;   { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : ObjectStatus, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectStatus = class(TRemotable)
  private
    Fid: Integer;
    Fobject_: Integer;
    Fstatus: Integer;
  published
    property id:      Integer  read Fid write Fid;
    property object_: Integer  read Fobject_ write Fobject_;
    property status:  Integer  read Fstatus write Fstatus;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : ObjectData, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectData = class(TRemotable)
  private
    Fobject_: Integer;
    Ftype_: Integer;
  published
    property object_: Integer  read Fobject_ write Fobject_;
    property type_:   Integer  read Ftype_ write Ftype_;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : ObjectsData, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectsData = class(TRemotable)
  private
    Ftimestamp: Integer;
    Fdata: ArrayOfObjectData;
  public
    destructor Destroy; override;
  published
    property timestamp: Integer            read Ftimestamp write Ftimestamp;
    property data:      ArrayOfObjectData  read Fdata write Fdata;
  end;
 
  ArrayOfInteger = array of Integer;            { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : ObjectsID, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectsID = class(TRemotable)
  private
    Ftype_: Integer;
    Fids: ArrayOfInteger;
  published
    property type_: Integer         read Ftype_ write Ftype_;
    property ids:   ArrayOfInteger  read Fids write Fids;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : AuthenticationHeader, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  AuthenticationHeader = class(TRemotable)
  private
    Femail: string;
    Fpassword: string;
  published
    property email:    string  read Femail write Femail;
    property password: string  read Fpassword write Fpassword;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : LanguageInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  LanguageInfo = class(TRemotable)
  private
    Fcode: string;
    Flanguage: string;
  published
    property code:     string  read Fcode write Fcode;
    property language: string  read Flanguage write Flanguage;
  end;
 
  ArrayOfString = array of string;              { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : ContactGroupInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ContactGroupInfo = class(TRemotable)
  private
    Fid: Integer;
    Fname_: string;
  published
    property id:    Integer  read Fid write Fid;
    property name_: string   read Fname_ write Fname_;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : ContactInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ContactInfo = class(TRemotable)
  private
    Fgroupid: Integer;
    Fid: Integer;
    Fname_: string;
    Fnumber: string;
    Fgsmnumber: string;
  published
    property groupid:   Integer  read Fgroupid write Fgroupid;
    property id:        Integer  read Fid write Fid;
    property name_:     string   read Fname_ write Fname_;
    property number:    string   read Fnumber write Fnumber;
    property gsmnumber: string   read Fgsmnumber write Fgsmnumber;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : CountryInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  CountryInfo = class(TRemotable)
  private
    Fcode: string;
    Fcountry: string;
  published
    property code:    string  read Fcode write Fcode;
    property country: string  read Fcountry write Fcountry;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : AccountInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  AccountInfo = class(TRemotable)
  private
    Ffaxnumber: string;
    Ffaxheader: string;
    Fnotifybysms: Integer;
    Fnotificationsms: string;
    Fnotifybyemail: Integer;
    Fredirecttoemail: Integer;
    Fattachmentid: Integer;
    Ffirstname: string;
    Flastname: string;
    Fcity: string;
    Faddress1: string;
    Fpostalcode: string;
    Fcountry: string;
    Flangcode: string;
    Fphone: string;
    Fcompanyname: string;
    Fvat: string;
    Fprepaidbalance: Integer;
    Fenddate: string;
  published
    property faxnumber:       string   read Ffaxnumber write Ffaxnumber;
    property faxheader:       string   read Ffaxheader write Ffaxheader;
    property notifybysms:     Integer  read Fnotifybysms write Fnotifybysms;
    property notificationsms: string   read Fnotificationsms write Fnotificationsms;
    property notifybyemail:   Integer  read Fnotifybyemail write Fnotifybyemail;
    property redirecttoemail: Integer  read Fredirecttoemail write Fredirecttoemail;
    property attachmentid:    Integer  read Fattachmentid write Fattachmentid;
    property firstname:       string   read Ffirstname write Ffirstname;
    property lastname:        string   read Flastname write Flastname;
    property city:            string   read Fcity write Fcity;
    property address1:        string   read Faddress1 write Faddress1;
    property postalcode:      string   read Fpostalcode write Fpostalcode;
    property country:         string   read Fcountry write Fcountry;
    property langcode:        string   read Flangcode write Flangcode;
    property phone:           string   read Fphone write Fphone;
    property companyname:     string   read Fcompanyname write Fcompanyname;
    property vat:             string   read Fvat write Fvat;
    property prepaidbalance:  Integer  read Fprepaidbalance write Fprepaidbalance;
    property enddate:         string   read Fenddate write Fenddate;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : AppVersion, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  AppVersion = class(TRemotable)
  private
    Fversion: string;
    Flink: string;
  published
    property version: string  read Fversion write Fversion;
    property link:    string  read Flink write Flink;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : CoverpageInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  CoverpageInfo = class(TRemotable)
  private
    FsenderAddress: string;
    FsenderName: string;
    FsenderPhone: string;
    FsenderFax: string;
    Flogo: string;
  published
    property senderAddress: string  read FsenderAddress write FsenderAddress;
    property senderName:    string  read FsenderName write FsenderName;
    property senderPhone:   string  read FsenderPhone write FsenderPhone;
    property senderFax:     string  read FsenderFax write FsenderFax;
    property logo:          string  read Flogo write Flogo;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : ForwardInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ForwardInfo = class(TRemotable)
  private
    Fid: Integer;
    Ftype_: Integer;
    Fforward_: Integer;
    Fto_: string;
    Fapp: Integer;
  published
    property id:       Integer  read Fid write Fid;
    property type_:    Integer  read Ftype_ write Ftype_;
    property forward_: Integer  read Fforward_ write Fforward_;
    property to_:      string   read Fto_ write Fto_;
    property app:      Integer  read Fapp write Fapp;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : SendFaxInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  SendFaxInfo = class(TRemotable)
  private
    Fnumbers: ArrayOfString;
    Fdithering: Integer;
    Fcoverpage: Integer;
    Fcontent: string;
    Fdesc: string;
    Fpages: Integer;
    Fapp: Integer;
  published
    property numbers:   ArrayOfString  read Fnumbers write Fnumbers;
    property dithering: Integer        read Fdithering write Fdithering;
    property coverpage: Integer        read Fcoverpage write Fcoverpage;
    property content:   string         read Fcontent write Fcontent;
    property desc:      string         read Fdesc write Fdesc;
    property pages:     Integer        read Fpages write Fpages;
    property app:       Integer        read Fapp write Fapp;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : SendSmsInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  SendSmsInfo = class(TRemotable)
  private
    Fnumbers: ArrayOfString;
    Funicode: Integer;
    Fcontent: string;
    Fapp: Integer;
  published
    property numbers: ArrayOfString  read Fnumbers write Fnumbers;
    property unicode: Integer        read Funicode write Funicode;
    property content: string         read Fcontent write Fcontent;
    property app:     Integer        read Fapp write Fapp;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : RecipientInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  RecipientInfo = class(TRemotable)
  private
    Frecipient: string;
    Fstatus: Integer;
  published
    property recipient: string   read Frecipient write Frecipient;
    property status:    Integer  read Fstatus write Fstatus;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : EnumInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  EnumInfo = class(TRemotable)
  private
    Fname_: string;
    Fvalue: Integer;
  published
    property name_: string   read Fname_ write Fname_;
    property value: Integer  read Fvalue write Fvalue;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : VOICEReceivedInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  VOICEReceivedInfo = class(TRemotable)
  private
    Ffolderid: Integer;
    Fid: Integer;
    Fstatus: Integer;
    Fdate: string;
    Fduration: Integer;
    Fsender: string;
  published
    property folderid: Integer  read Ffolderid write Ffolderid;
    property id:       Integer  read Fid write Fid;
    property status:   Integer  read Fstatus write Fstatus;
    property date:     string   read Fdate write Fdate;
    property duration: Integer  read Fduration write Fduration;
    property sender:   string   read Fsender write Fsender;
  end;
 
  ArrayOfFAXSentInfo = array of FAXSentInfo;    { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : FAXSentInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  FAXSentInfo = class(TRemotable)
  private
    Ffolderid: Integer;
    Fid: Integer;
    Ftype_: Integer;
    Fstatus: Integer;
    Fsentstatus: Integer;
    Fdate: string;
    Fpagescount: Integer;
    Frecipients: Integer;
    Frecipient: string;
  published
    property folderid:   Integer  read Ffolderid write Ffolderid;
    property id:         Integer  read Fid write Fid;
    property type_:      Integer  read Ftype_ write Ftype_;
    property status:     Integer  read Fstatus write Fstatus;
    property sentstatus: Integer  read Fsentstatus write Fsentstatus;
    property date:       string   read Fdate write Fdate;
    property pagescount: Integer  read Fpagescount write Fpagescount;
    property recipients: Integer  read Frecipients write Frecipients;
    property recipient:  string   read Frecipient write Frecipient;
  end;
 
  ArrayOfObjectIDInfo = array of ObjectIDInfo;   { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : ObjectsIDInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectsIDInfo = class(TRemotable)
  private
    Ftimestamp: Integer;
    Factions: ArrayOfObjectIDInfo;
  public
    destructor Destroy; override;
  published
    property timestamp: Integer              read Ftimestamp write Ftimestamp;
    property actions:   ArrayOfObjectIDInfo  read Factions write Factions;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : ObjectIDInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectIDInfo = class(TRemotable)
  private
    Fobject_: Integer;
    Ftype_: Integer;
    Faction: Integer;
  published
    property object_: Integer  read Fobject_ write Fobject_;
    property type_:   Integer  read Ftype_ write Ftype_;
    property action:  Integer  read Faction write Faction;
  end;
 
  ArrayOfVOICEReceivedInfo = array of VOICEReceivedInfo;   { "urn:PopfaxService"[GblCplx] }
  ArrayOfFAXReceivedInfo = array of FAXReceivedInfo;   { "urn:PopfaxService"[GblCplx] }
  ArrayOfFolderInfo = array of FolderInfo;      { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : FolderInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  FolderInfo = class(TRemotable)
  private
    Ffoldertype: Integer;
    Fid: Integer;
    Fname_: string;
  published
    property foldertype: Integer  read Ffoldertype write Ffoldertype;
    property id:         Integer  read Fid write Fid;
    property name_:      string   read Fname_ write Fname_;
  end;
 
  ArrayOfContactInfo = array of ContactInfo;    { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : FAXReceivedInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  FAXReceivedInfo = class(TRemotable)
  private
    Ffolderid: Integer;
    Fid: Integer;
    Ftype_: Integer;
    Fstatus: Integer;
    Fdate: string;
    Fpagescount: Integer;
    Fsender: string;
  published
    property folderid:   Integer  read Ffolderid write Ffolderid;
    property id:         Integer  read Fid write Fid;
    property type_:      Integer  read Ftype_ write Ftype_;
    property status:     Integer  read Fstatus write Fstatus;
    property date:       string   read Fdate write Fdate;
    property pagescount: Integer  read Fpagescount write Fpagescount;
    property sender:     string   read Fsender write Fsender;
  end;
 
  ArrayOfSMSSentInfo = array of SMSSentInfo;    { "urn:PopfaxService"[GblCplx] }
 
 
  // ************************************************************************ //
  // XML       : ObjectsInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  ObjectsInfo = class(TRemotable)
  private
    Ftimestamp: Integer;
    Fshifttime: Integer;
    Fcontactgroups: ArrayOfContactGroupInfo;
    Fcontacts: ArrayOfContactInfo;
    Ffolders: ArrayOfFolderInfo;
    Fsmsessent: ArrayOfSMSSentInfo;
    Ffaxesreceived: ArrayOfFAXReceivedInfo;
    Ffaxessent: ArrayOfFAXSentInfo;
    Fvoicesreceived: ArrayOfVOICEReceivedInfo;
    Fremoved: ArrayOfObjectData;
  public
    destructor Destroy; override;
  published
    property timestamp:      Integer                   read Ftimestamp write Ftimestamp;
    property shifttime:      Integer                   read Fshifttime write Fshifttime;
    property contactgroups:  ArrayOfContactGroupInfo   read Fcontactgroups write Fcontactgroups;
    property contacts:       ArrayOfContactInfo        read Fcontacts write Fcontacts;
    property folders:        ArrayOfFolderInfo         read Ffolders write Ffolders;
    property smsessent:      ArrayOfSMSSentInfo        read Fsmsessent write Fsmsessent;
    property faxesreceived:  ArrayOfFAXReceivedInfo    read Ffaxesreceived write Ffaxesreceived;
    property faxessent:      ArrayOfFAXSentInfo        read Ffaxessent write Ffaxessent;
    property voicesreceived: ArrayOfVOICEReceivedInfo  read Fvoicesreceived write Fvoicesreceived;
    property removed:        ArrayOfObjectData         read Fremoved write Fremoved;
  end;
 
 
 
  // ************************************************************************ //
  // XML       : SMSSentInfo, global, <complexType>
  // Espace de nommage : urn:PopfaxService
  // ************************************************************************ //
  SMSSentInfo = class(TRemotable)
  private
    Ffolderid: Integer;
    Fid: Integer;
    Fstatus: Integer;
    Fsentstatus: Integer;
    Fdate: string;
    Fcontent: string;
    Frecipients: Integer;
    Frecipient: string;
  published
    property folderid:   Integer  read Ffolderid write Ffolderid;
    property id:         Integer  read Fid write Fid;
    property status:     Integer  read Fstatus write Fstatus;
    property sentstatus: Integer  read Fsentstatus write Fsentstatus;
    property date:       string   read Fdate write Fdate;
    property content:    string   read Fcontent write Fcontent;
    property recipients: Integer  read Frecipients write Frecipients;
    property recipient:  string   read Frecipient write Frecipient;
  end;
 
 
  // ************************************************************************ //
  // Espace de nommage : urn:PopfaxService
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // utiliser   : encoded
  // Liaison : PopfaxServiceBinding
  // service   : PopfaxService
  // port      : PopfaxServicePort
  // URL       : https://api3.popfax.com/index.php?service=Popfax
  // ************************************************************************ //
  PopfaxServicePortType = interface(IInvokable)
  ['{39077948-1854-B114-B68A-A881DD795EBF}']
    procedure PopfaxService_AuthenticationHeader(const header: AuthenticationHeader); stdcall;
    function  PopfaxService_authenticate: Integer; stdcall;
    function  PopfaxService_getAllLanguages: ArrayOfLanguageInfo; stdcall;
    function  PopfaxService_getAllCountries: ArrayOfCountryInfo; stdcall;
    function  PopfaxService_getAccountInfo: AccountInfo; stdcall;
    function  PopfaxService_setAccountInfo(const info: AccountInfo): Integer; stdcall;
    function  PopfaxService_setNewEmail(const email: string): Integer; stdcall;
    function  PopfaxService_setNewPassword(const password: string): Integer; stdcall;
    function  PopfaxService_getOneContactGroupInfo(const id: Integer): ContactGroupInfo; stdcall;
    function  PopfaxService_getContactGroupInfo(const ids: ArrayOfInteger): ArrayOfContactGroupInfo; stdcall;
    function  PopfaxService_getOneContactInfo(const id: Integer): ContactInfo; stdcall;
    function  PopfaxService_getContactInfo(const ids: ArrayOfInteger): ArrayOfContactInfo; stdcall;
    function  PopfaxService_getOneFolderInfo(const id: Integer): FolderInfo; stdcall;
    function  PopfaxService_getFolderInfo(const ids: ArrayOfInteger): ArrayOfFolderInfo; stdcall;
    function  PopfaxService_getOneSMSSentInfo(const id: Integer): SMSSentInfo; stdcall;
    function  PopfaxService_getSMSSentInfo(const ids: ArrayOfInteger): ArrayOfSMSSentInfo; stdcall;
    function  PopfaxService_getOneFAXReceivedInfo(const id: Integer): FAXReceivedInfo; stdcall;
    function  PopfaxService_getFAXReceivedInfo(const ids: ArrayOfInteger): ArrayOfFAXReceivedInfo; stdcall;
    function  PopfaxService_getOneFAXSentInfo(const id: Integer): FAXSentInfo; stdcall;
    function  PopfaxService_getFAXSentInfo(const ids: ArrayOfInteger): ArrayOfFAXSentInfo; stdcall;
    function  PopfaxService_getOneVOICEReceivedInfo(const id: Integer): VOICEReceivedInfo; stdcall;
    function  PopfaxService_getVOICEReceivedInfo(const ids: ArrayOfInteger): ArrayOfVOICEReceivedInfo; stdcall;
    function  PopfaxService_reviewObjects: ObjectsIDInfo; stdcall;
    function  PopfaxService_getObjects(const data: ArrayOfObjectData): ObjectsInfo; stdcall;
    function  PopfaxService_getObjectTypes: ArrayOfEnumInfo; stdcall;
    function  PopfaxService_getObjectActions: ArrayOfEnumInfo; stdcall;
    function  PopfaxService_getModifiedContacts(const timestamp: Integer): ObjectsData; stdcall;
    function  PopfaxService_getModifiedObjects(const timestamp: Integer): ObjectsIDInfo; stdcall;
    function  PopfaxService_getRecipients(const id: Integer; const type_: string): ArrayOfRecipientInfo; stdcall;
    function  PopfaxService_getCoverpageInfo: CoverpageInfo; stdcall;
    function  PopfaxService_downloadFile(const id: Integer; const type_: Integer; const format: string): string; stdcall;
    function  PopfaxService_deleteObjects(const info: ArrayOfObjectsID): Integer; stdcall;
    function  PopfaxService_changeStatus(const info: ArrayOfObjectsID; const status: Integer): Integer; stdcall;
    function  PopfaxService_setContactInfo(const info: ContactInfo): Integer; stdcall;
    function  PopfaxService_updateContactInfo(const info: ContactInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_setContactGroupInfo(const info: ContactGroupInfo): Integer; stdcall;
    function  PopfaxService_updateContactGroupInfo(const info: ContactGroupInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_getAppVersion(const os: string; const app: string): AppVersion; stdcall;
    function  PopfaxService_getShiftTime: Integer; stdcall;
    function  PopfaxService_sendFaxDirect(const numbers: ArrayOfString; const type_: Integer; const report: string): ArrayOfInteger; stdcall;
    function  PopfaxService_sendFaxAsynchronous(const info: SendFaxInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_sendSmsAsynchronous(const info: SendSmsInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_forwardAsynchronous(const info: ForwardInfo): ArrayOfInteger; stdcall;
    function  PopfaxService_asynchronInfoRange(const ids: ArrayOfInteger): ArrayOfObjectStatus; stdcall;
    function  PopfaxService_asynchronInfo(const id: Integer): ArrayOfInteger; stdcall;
    function  PopfaxService_registerApp(const app: Integer; const version: string): Integer; stdcall;
    function  PopfaxService_renameFolder(const folderid: Integer; const newname: string): ArrayOfInteger; stdcall;
    function  PopfaxService_moveToFolder(const allobjects: ArrayOfObjectsID; const folderid: Integer): Integer; stdcall;
    function  PopfaxService_getInboxOutboxID: ArrayOfInteger; stdcall;
  end;
 
function GetPopfaxServicePortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): PopfaxServicePortType;
 
 
implementation
  uses SysUtils;
 
function GetPopfaxServicePortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): PopfaxServicePortType;
const
  defWSDL = 'https://api3.popfax.com/?service=Popfax&wsdl';
  defURL  = 'https://api3.popfax.com/index.php?service=Popfax';
  defSvc  = 'PopfaxService';
  defPrt  = 'PopfaxServicePort';
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 PopfaxServicePortType);
    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 ObjectsData.Destroy;
var
  I: Integer;
begin
  for I := 0 to System.Length(Fdata)-1 do
    SysUtils.FreeAndNil(Fdata[I]);
  System.SetLength(Fdata, 0);
  inherited Destroy;
end;
 
destructor ObjectsIDInfo.Destroy;
var
  I: Integer;
begin
  for I := 0 to System.Length(Factions)-1 do
    SysUtils.FreeAndNil(Factions[I]);
  System.SetLength(Factions, 0);
  inherited Destroy;
end;
 
destructor ObjectsInfo.Destroy;
var
  I: Integer;
begin
  for I := 0 to System.Length(Fcontactgroups)-1 do
    SysUtils.FreeAndNil(Fcontactgroups[I]);
  System.SetLength(Fcontactgroups, 0);
  for I := 0 to System.Length(Fcontacts)-1 do
    SysUtils.FreeAndNil(Fcontacts[I]);
  System.SetLength(Fcontacts, 0);
  for I := 0 to System.Length(Ffolders)-1 do
    SysUtils.FreeAndNil(Ffolders[I]);
  System.SetLength(Ffolders, 0);
  for I := 0 to System.Length(Fsmsessent)-1 do
    SysUtils.FreeAndNil(Fsmsessent[I]);
  System.SetLength(Fsmsessent, 0);
  for I := 0 to System.Length(Ffaxesreceived)-1 do
    SysUtils.FreeAndNil(Ffaxesreceived[I]);
  System.SetLength(Ffaxesreceived, 0);
  for I := 0 to System.Length(Ffaxessent)-1 do
    SysUtils.FreeAndNil(Ffaxessent[I]);
  System.SetLength(Ffaxessent, 0);
  for I := 0 to System.Length(Fvoicesreceived)-1 do
    SysUtils.FreeAndNil(Fvoicesreceived[I]);
  System.SetLength(Fvoicesreceived, 0);
  for I := 0 to System.Length(Fremoved)-1 do
    SysUtils.FreeAndNil(Fremoved[I]);
  System.SetLength(Fremoved, 0);
  inherited Destroy;
end;
 
initialization
  { PopfaxServicePortType }
  InvRegistry.RegisterInterface(TypeInfo(PopfaxServicePortType), 'urn:PopfaxService', 'ISO-8859-1');
  InvRegistry.RegisterAllSOAPActions(TypeInfo(PopfaxServicePortType), '|urn:PopfaxService#AuthenticationHeader'
                                                                     +'|urn:PopfaxService#authenticate'
                                                                     +'|urn:PopfaxService#getAllLanguages'
                                                                     +'|urn:PopfaxService#getAllCountries'
                                                                     +'|urn:PopfaxService#getAccountInfo'
                                                                     +'|urn:PopfaxService#setAccountInfo'
                                                                     +'|urn:PopfaxService#setNewEmail'
                                                                     +'|urn:PopfaxService#setNewPassword'
                                                                     +'|urn:PopfaxService#getOneContactGroupInfo'
                                                                     +'|urn:PopfaxService#getContactGroupInfo'
                                                                     +'|urn:PopfaxService#getOneContactInfo'
                                                                     +'|urn:PopfaxService#getContactInfo'
                                                                     +'|urn:PopfaxService#getOneFolderInfo'
                                                                     +'|urn:PopfaxService#getFolderInfo'
                                                                     +'|urn:PopfaxService#getOneSMSSentInfo'
                                                                     +'|urn:PopfaxService#getSMSSentInfo'
                                                                     +'|urn:PopfaxService#getOneFAXReceivedInfo'
                                                                     +'|urn:PopfaxService#getFAXReceivedInfo'
                                                                     +'|urn:PopfaxService#getOneFAXSentInfo'
                                                                     +'|urn:PopfaxService#getFAXSentInfo'
                                                                     +'|urn:PopfaxService#getOneVOICEReceivedInfo'
                                                                     +'|urn:PopfaxService#getVOICEReceivedInfo'
                                                                     +'|urn:PopfaxService#reviewObjects'
                                                                     +'|urn:PopfaxService#getObjects'
                                                                     +'|urn:PopfaxService#getObjectTypes'
                                                                     +'|urn:PopfaxService#getObjectActions'
                                                                     +'|urn:PopfaxService#getModifiedContacts'
                                                                     +'|urn:PopfaxService#getModifiedObjects'
                                                                     +'|urn:PopfaxService#getRecipients'
                                                                     +'|urn:PopfaxService#getCoverpageInfo'
                                                                     +'|urn:PopfaxService#downloadFile'
                                                                     +'|urn:PopfaxService#deleteObjects'
                                                                     +'|urn:PopfaxService#changeStatus'
                                                                     +'|urn:PopfaxService#setContactInfo'
                                                                     +'|urn:PopfaxService#updateContactInfo'
                                                                     +'|urn:PopfaxService#setContactGroupInfo'
                                                                     +'|urn:PopfaxService#updateContactGroupInfo'
                                                                     +'|urn:PopfaxService#getAppVersion'
                                                                     +'|urn:PopfaxService#getShiftTime'
                                                                     +'|urn:PopfaxService#sendFaxDirect'
                                                                     +'|urn:PopfaxService#sendFaxAsynchronous'
                                                                     +'|urn:PopfaxService#sendSmsAsynchronous'
                                                                     +'|urn:PopfaxService#forwardAsynchronous'
                                                                     +'|urn:PopfaxService#asynchronInfoRange'
                                                                     +'|urn:PopfaxService#asynchronInfo'
                                                                     +'|urn:PopfaxService#registerApp'
                                                                     +'|urn:PopfaxService#renameFolder'
                                                                     +'|urn:PopfaxService#moveToFolder'
                                                                     +'|urn:PopfaxService#getInboxOutboxID'
                                                                     );
  { PopfaxServicePortType.PopfaxService_AuthenticationHeader }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_AuthenticationHeader', 'PopfaxService.AuthenticationHeader', '');
  { PopfaxServicePortType.PopfaxService_authenticate }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_authenticate', 'PopfaxService.authenticate', '');
  { PopfaxServicePortType.PopfaxService_getAllLanguages }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getAllLanguages', 'PopfaxService.getAllLanguages', '');
  { PopfaxServicePortType.PopfaxService_getAllCountries }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getAllCountries', 'PopfaxService.getAllCountries', '');
  { PopfaxServicePortType.PopfaxService_getAccountInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getAccountInfo', 'PopfaxService.getAccountInfo', '');
  { PopfaxServicePortType.PopfaxService_setAccountInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_setAccountInfo', 'PopfaxService.setAccountInfo', '');
  { PopfaxServicePortType.PopfaxService_setNewEmail }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_setNewEmail', 'PopfaxService.setNewEmail', '');
  { PopfaxServicePortType.PopfaxService_setNewPassword }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_setNewPassword', 'PopfaxService.setNewPassword', '');
  { PopfaxServicePortType.PopfaxService_getOneContactGroupInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneContactGroupInfo', 'PopfaxService.getOneContactGroupInfo', '');
  { PopfaxServicePortType.PopfaxService_getContactGroupInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getContactGroupInfo', 'PopfaxService.getContactGroupInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneContactInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneContactInfo', 'PopfaxService.getOneContactInfo', '');
  { PopfaxServicePortType.PopfaxService_getContactInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getContactInfo', 'PopfaxService.getContactInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneFolderInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneFolderInfo', 'PopfaxService.getOneFolderInfo', '');
  { PopfaxServicePortType.PopfaxService_getFolderInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getFolderInfo', 'PopfaxService.getFolderInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneSMSSentInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneSMSSentInfo', 'PopfaxService.getOneSMSSentInfo', '');
  { PopfaxServicePortType.PopfaxService_getSMSSentInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getSMSSentInfo', 'PopfaxService.getSMSSentInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneFAXReceivedInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneFAXReceivedInfo', 'PopfaxService.getOneFAXReceivedInfo', '');
  { PopfaxServicePortType.PopfaxService_getFAXReceivedInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getFAXReceivedInfo', 'PopfaxService.getFAXReceivedInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneFAXSentInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneFAXSentInfo', 'PopfaxService.getOneFAXSentInfo', '');
  { PopfaxServicePortType.PopfaxService_getFAXSentInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getFAXSentInfo', 'PopfaxService.getFAXSentInfo', '');
  { PopfaxServicePortType.PopfaxService_getOneVOICEReceivedInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getOneVOICEReceivedInfo', 'PopfaxService.getOneVOICEReceivedInfo', '');
  { PopfaxServicePortType.PopfaxService_getVOICEReceivedInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getVOICEReceivedInfo', 'PopfaxService.getVOICEReceivedInfo', '');
  { PopfaxServicePortType.PopfaxService_reviewObjects }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_reviewObjects', 'PopfaxService.reviewObjects', '');
  { PopfaxServicePortType.PopfaxService_getObjects }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getObjects', 'PopfaxService.getObjects', '');
  { PopfaxServicePortType.PopfaxService_getObjectTypes }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getObjectTypes', 'PopfaxService.getObjectTypes', '');
  { PopfaxServicePortType.PopfaxService_getObjectActions }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getObjectActions', 'PopfaxService.getObjectActions', '');
  { PopfaxServicePortType.PopfaxService_getModifiedContacts }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getModifiedContacts', 'PopfaxService.getModifiedContacts', '');
  { PopfaxServicePortType.PopfaxService_getModifiedObjects }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getModifiedObjects', 'PopfaxService.getModifiedObjects', '');
  { PopfaxServicePortType.PopfaxService_getRecipients }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getRecipients', 'PopfaxService.getRecipients', '');
  InvRegistry.RegisterParamInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getRecipients', 'type_', 'type', '');
  { PopfaxServicePortType.PopfaxService_getCoverpageInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getCoverpageInfo', 'PopfaxService.getCoverpageInfo', '');
  { PopfaxServicePortType.PopfaxService_downloadFile }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_downloadFile', 'PopfaxService.downloadFile', '');
  InvRegistry.RegisterParamInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_downloadFile', 'type_', 'type', '');
  { PopfaxServicePortType.PopfaxService_deleteObjects }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_deleteObjects', 'PopfaxService.deleteObjects', '');
  { PopfaxServicePortType.PopfaxService_changeStatus }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_changeStatus', 'PopfaxService.changeStatus', '');
  { PopfaxServicePortType.PopfaxService_setContactInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_setContactInfo', 'PopfaxService.setContactInfo', '');
  { PopfaxServicePortType.PopfaxService_updateContactInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_updateContactInfo', 'PopfaxService.updateContactInfo', '');
  { PopfaxServicePortType.PopfaxService_setContactGroupInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_setContactGroupInfo', 'PopfaxService.setContactGroupInfo', '');
  { PopfaxServicePortType.PopfaxService_updateContactGroupInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_updateContactGroupInfo', 'PopfaxService.updateContactGroupInfo', '');
  { PopfaxServicePortType.PopfaxService_getAppVersion }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getAppVersion', 'PopfaxService.getAppVersion', '');
  { PopfaxServicePortType.PopfaxService_getShiftTime }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getShiftTime', 'PopfaxService.getShiftTime', '');
  { PopfaxServicePortType.PopfaxService_sendFaxDirect }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_sendFaxDirect', 'PopfaxService.sendFaxDirect', '');
  InvRegistry.RegisterParamInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_sendFaxDirect', 'type_', 'type', '');
  { PopfaxServicePortType.PopfaxService_sendFaxAsynchronous }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_sendFaxAsynchronous', 'PopfaxService.sendFaxAsynchronous', '');
  { PopfaxServicePortType.PopfaxService_sendSmsAsynchronous }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_sendSmsAsynchronous', 'PopfaxService.sendSmsAsynchronous', '');
  { PopfaxServicePortType.PopfaxService_forwardAsynchronous }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_forwardAsynchronous', 'PopfaxService.forwardAsynchronous', '');
  { PopfaxServicePortType.PopfaxService_asynchronInfoRange }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_asynchronInfoRange', 'PopfaxService.asynchronInfoRange', '');
  { PopfaxServicePortType.PopfaxService_asynchronInfo }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_asynchronInfo', 'PopfaxService.asynchronInfo', '');
  { PopfaxServicePortType.PopfaxService_registerApp }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_registerApp', 'PopfaxService.registerApp', '');
  { PopfaxServicePortType.PopfaxService_renameFolder }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_renameFolder', 'PopfaxService.renameFolder', '');
  { PopfaxServicePortType.PopfaxService_moveToFolder }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_moveToFolder', 'PopfaxService.moveToFolder', '');
  { PopfaxServicePortType.PopfaxService_getInboxOutboxID }
  InvRegistry.RegisterMethodInfo(TypeInfo(PopfaxServicePortType), 'PopfaxService_getInboxOutboxID', 'PopfaxService.getInboxOutboxID', '');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfEnumInfo), 'urn:PopfaxService', 'ArrayOfEnumInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfObjectData), 'urn:PopfaxService', 'ArrayOfObjectData');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfObjectStatus), 'urn:PopfaxService', 'ArrayOfObjectStatus');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfRecipientInfo), 'urn:PopfaxService', 'ArrayOfRecipientInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfObjectsID), 'urn:PopfaxService', 'ArrayOfObjectsID');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfCountryInfo), 'urn:PopfaxService', 'ArrayOfCountryInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfContactGroupInfo), 'urn:PopfaxService', 'ArrayOfContactGroupInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfLanguageInfo), 'urn:PopfaxService', 'ArrayOfLanguageInfo');
  RemClassRegistry.RegisterXSClass(ObjectStatus, 'urn:PopfaxService', 'ObjectStatus');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectStatus), 'object_', '[ExtName="object"]');
  RemClassRegistry.RegisterXSClass(ObjectData, 'urn:PopfaxService', 'ObjectData');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectData), 'object_', '[ExtName="object"]');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectData), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterXSClass(ObjectsData, 'urn:PopfaxService', 'ObjectsData');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfInteger), 'urn:PopfaxService', 'ArrayOfInteger');
  RemClassRegistry.RegisterXSClass(ObjectsID, 'urn:PopfaxService', 'ObjectsID');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectsID), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterXSClass(AuthenticationHeader, 'urn:PopfaxService', 'AuthenticationHeader');
  RemClassRegistry.RegisterXSClass(LanguageInfo, 'urn:PopfaxService', 'LanguageInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfString), 'urn:PopfaxService', 'ArrayOfString');
  RemClassRegistry.RegisterXSClass(ContactGroupInfo, 'urn:PopfaxService', 'ContactGroupInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ContactGroupInfo), 'name_', '[ExtName="name"]');
  RemClassRegistry.RegisterXSClass(ContactInfo, 'urn:PopfaxService', 'ContactInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ContactInfo), 'name_', '[ExtName="name"]');
  RemClassRegistry.RegisterXSClass(CountryInfo, 'urn:PopfaxService', 'CountryInfo');
  RemClassRegistry.RegisterXSClass(AccountInfo, 'urn:PopfaxService', 'AccountInfo');
  RemClassRegistry.RegisterXSClass(AppVersion, 'urn:PopfaxService', 'AppVersion');
  RemClassRegistry.RegisterXSClass(CoverpageInfo, 'urn:PopfaxService', 'CoverpageInfo');
  RemClassRegistry.RegisterXSClass(ForwardInfo, 'urn:PopfaxService', 'ForwardInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ForwardInfo), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ForwardInfo), 'forward_', '[ExtName="forward"]');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ForwardInfo), 'to_', '[ExtName="to"]');
  RemClassRegistry.RegisterXSClass(SendFaxInfo, 'urn:PopfaxService', 'SendFaxInfo');
  RemClassRegistry.RegisterXSClass(SendSmsInfo, 'urn:PopfaxService', 'SendSmsInfo');
  RemClassRegistry.RegisterXSClass(RecipientInfo, 'urn:PopfaxService', 'RecipientInfo');
  RemClassRegistry.RegisterXSClass(EnumInfo, 'urn:PopfaxService', 'EnumInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(EnumInfo), 'name_', '[ExtName="name"]');
  RemClassRegistry.RegisterXSClass(VOICEReceivedInfo, 'urn:PopfaxService', 'VOICEReceivedInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfFAXSentInfo), 'urn:PopfaxService', 'ArrayOfFAXSentInfo');
  RemClassRegistry.RegisterXSClass(FAXSentInfo, 'urn:PopfaxService', 'FAXSentInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(FAXSentInfo), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfObjectIDInfo), 'urn:PopfaxService', 'ArrayOfObjectIDInfo');
  RemClassRegistry.RegisterXSClass(ObjectsIDInfo, 'urn:PopfaxService', 'ObjectsIDInfo');
  RemClassRegistry.RegisterXSClass(ObjectIDInfo, 'urn:PopfaxService', 'ObjectIDInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectIDInfo), 'object_', '[ExtName="object"]');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(ObjectIDInfo), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfVOICEReceivedInfo), 'urn:PopfaxService', 'ArrayOfVOICEReceivedInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfFAXReceivedInfo), 'urn:PopfaxService', 'ArrayOfFAXReceivedInfo');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfFolderInfo), 'urn:PopfaxService', 'ArrayOfFolderInfo');
  RemClassRegistry.RegisterXSClass(FolderInfo, 'urn:PopfaxService', 'FolderInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(FolderInfo), 'name_', '[ExtName="name"]');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfContactInfo), 'urn:PopfaxService', 'ArrayOfContactInfo');
  RemClassRegistry.RegisterXSClass(FAXReceivedInfo, 'urn:PopfaxService', 'FAXReceivedInfo');
  RemClassRegistry.RegisterExternalPropName(TypeInfo(FAXReceivedInfo), 'type_', '[ExtName="type"]');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfSMSSentInfo), 'urn:PopfaxService', 'ArrayOfSMSSentInfo');
  RemClassRegistry.RegisterXSClass(ObjectsInfo, 'urn:PopfaxService', 'ObjectsInfo');
  RemClassRegistry.RegisterXSClass(SMSSentInfo, 'urn:PopfaxService', 'SMSSentInfo');
end.