/
Mktows.cls
1062 lines (1061 loc) · 71.3 KB
/
Mktows.cls
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
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//Generated by wsdl2apex
public class Mktows {
public class SyncCustomObjStatus {
public String objTypeName;
public Mktows.ArrayOfAttribute customObjKeyList;
public String status;
public String error;
private String[] objTypeName_type_info = new String[]{'objTypeName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] customObjKeyList_type_info = new String[]{'customObjKeyList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] status_type_info = new String[]{'status','http://www.marketo.com/mktows/','SyncStatusEnum','1','1','false'};
private String[] error_type_info = new String[]{'error','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objTypeName','customObjKeyList','status','error'};
}
public class ParamsSyncLead {
public Mktows.LeadRecord leadRecord;
public Boolean returnLead;
public String marketoCookie;
private String[] leadRecord_type_info = new String[]{'leadRecord','http://www.marketo.com/mktows/','LeadRecord','1','1','false'};
private String[] returnLead_type_info = new String[]{'returnLead','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] marketoCookie_type_info = new String[]{'marketoCookie','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadRecord','returnLead','marketoCookie'};
}
public class ActivityTypeFilter {
public Mktows.ArrayOfActivityType includeTypes;
public Mktows.ArrayOfActivityType excludeTypes;
private String[] includeTypes_type_info = new String[]{'includeTypes','http://www.marketo.com/mktows/','ArrayOfActivityType','0','1','false'};
private String[] excludeTypes_type_info = new String[]{'excludeTypes','http://www.marketo.com/mktows/','ArrayOfActivityType','0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'includeTypes','excludeTypes'};
}
public class SuccessListMObjects {
public Mktows.ResultListMObjects result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultListMObjects','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class LeadKey {
public String keyType;
public String keyValue;
private String[] keyType_type_info = new String[]{'keyType','http://www.marketo.com/mktows/','LeadKeyRef','1','1','false'};
private String[] keyValue_type_info = new String[]{'keyValue','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'keyType','keyValue'};
}
public class ArrayOfKeyList {
public Mktows.ArrayOfAttribute[] keyList;
private String[] keyList_type_info = new String[]{'keyList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'keyList'};
}
public class ResultMergeLeads {
public Mktows.MergeStatus mergeStatus;
private String[] mergeStatus_type_info = new String[]{'mergeStatus','http://www.marketo.com/mktows/','MergeStatus','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'mergeStatus'};
}
public class ResultDescribeMObject {
public Mktows.MObjectMetadata metadata;
private String[] metadata_type_info = new String[]{'metadata','http://www.marketo.com/mktows/','MObjectMetadata','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'metadata'};
}
public class SuccessSyncLead {
public Mktows.ResultSyncLead result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultSyncLead','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class LeadChangeRecord {
public Integer id;
public DateTime activityDateTime;
public String activityType;
public String mktgAssetName;
public Mktows.ArrayOfAttribute activityAttributes;
public String campaign;
public String mktPersonId;
private String[] id_type_info = new String[]{'id','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] activityDateTime_type_info = new String[]{'activityDateTime','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] activityType_type_info = new String[]{'activityType','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] mktgAssetName_type_info = new String[]{'mktgAssetName','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] activityAttributes_type_info = new String[]{'activityAttributes','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] campaign_type_info = new String[]{'campaign','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] mktPersonId_type_info = new String[]{'mktPersonId','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'id','activityDateTime','activityType','mktgAssetName','activityAttributes','campaign','mktPersonId'};
}
public class SuccessGetLead {
public Mktows.ResultGetLead result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultGetLead','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ArrayOfCustomObj {
public Mktows.CustomObj[] customObj;
private String[] customObj_type_info = new String[]{'customObj','http://www.marketo.com/mktows/','CustomObj','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'customObj'};
}
public class ArrayOfBase64Binary {
public String[] base64Binary;
private String[] base64Binary_type_info = new String[]{'base64Binary','http://www.w3.org/2001/XMLSchema','base64Binary','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'base64Binary'};
}
public class ParamsGetMultipleLeads {
public DateTime lastUpdatedAt;
public String streamPosition;
public Integer batchSize;
public Mktows.ArrayOfString includeAttributes;
private String[] lastUpdatedAt_type_info = new String[]{'lastUpdatedAt','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] streamPosition_type_info = new String[]{'streamPosition','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] batchSize_type_info = new String[]{'batchSize','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] includeAttributes_type_info = new String[]{'includeAttributes','http://www.marketo.com/mktows/','ArrayOfString','0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'lastUpdatedAt','streamPosition','batchSize','includeAttributes'};
}
public class CustomObj {
public Mktows.ArrayOfAttribute customObjKeyList;
public Mktows.ArrayOfAttribute customObjAttributeList;
private String[] customObjKeyList_type_info = new String[]{'customObjKeyList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] customObjAttributeList_type_info = new String[]{'customObjAttributeList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'customObjKeyList','customObjAttributeList'};
}
public class ResultGetCustomObjects {
public String objTypeName;
public Integer returnCount;
public Integer remainingCount;
public String newStreamPosition;
public Mktows.ArrayOfCustomObj customObjList;
private String[] objTypeName_type_info = new String[]{'objTypeName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] returnCount_type_info = new String[]{'returnCount','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] remainingCount_type_info = new String[]{'remainingCount','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] newStreamPosition_type_info = new String[]{'newStreamPosition','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] customObjList_type_info = new String[]{'customObjList','http://www.marketo.com/mktows/','ArrayOfCustomObj','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objTypeName','returnCount','remainingCount','newStreamPosition','customObjList'};
}
public class ArrayOfAttribute {
public Mktows.Attribute[] attribute;
private String[] attribute_type_info = new String[]{'attribute','http://www.marketo.com/mktows/','Attribute','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'attribute'};
}
public class ParamsListOperation {
public String listOperation;
public Mktows.ListKey listKey;
public Mktows.ArrayOfLeadKey listMemberList;
public Boolean strict;
private String[] listOperation_type_info = new String[]{'listOperation','http://www.marketo.com/mktows/','ListOperationType','1','1','false'};
private String[] listKey_type_info = new String[]{'listKey','http://www.marketo.com/mktows/','ListKey','1','1','false'};
private String[] listMemberList_type_info = new String[]{'listMemberList','http://www.marketo.com/mktows/','ArrayOfLeadKey','1','1','false'};
private String[] strict_type_info = new String[]{'strict','http://www.w3.org/2001/XMLSchema','boolean','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'listOperation','listKey','listMemberList','strict'};
}
public class ResultGetLeadChanges {
public Integer returnCount;
public Integer remainingCount;
public Mktows.StreamPosition newStartPosition;
public Mktows.ArrayOfLeadChangeRecord leadChangeRecordList;
private String[] returnCount_type_info = new String[]{'returnCount','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] remainingCount_type_info = new String[]{'remainingCount','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] newStartPosition_type_info = new String[]{'newStartPosition','http://www.marketo.com/mktows/','StreamPosition','1','1','false'};
private String[] leadChangeRecordList_type_info = new String[]{'leadChangeRecordList','http://www.marketo.com/mktows/','ArrayOfLeadChangeRecord','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'returnCount','remainingCount','newStartPosition','leadChangeRecordList'};
}
public class MObjectMetadata {
public String name;
public String description;
public Boolean isCustom;
public Boolean isVirtual;
public Mktows.ArrayOfMObjFieldMetadata fieldList;
public DateTime updatedAt;
private String[] name_type_info = new String[]{'name','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] description_type_info = new String[]{'description','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] isCustom_type_info = new String[]{'isCustom','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] isVirtual_type_info = new String[]{'isVirtual','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] fieldList_type_info = new String[]{'fieldList','http://www.marketo.com/mktows/','ArrayOfMObjFieldMetadata','1','1','false'};
private String[] updatedAt_type_info = new String[]{'updatedAt','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'name','description','isCustom','isVirtual','fieldList','updatedAt'};
}
public class ResultDeleteCustomObjects {
public Mktows.ArrayOfSyncCustomObjStatus deleteCustomObjStatusList;
private String[] deleteCustomObjStatusList_type_info = new String[]{'deleteCustomObjStatusList','http://www.marketo.com/mktows/','ArrayOfSyncCustomObjStatus','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'deleteCustomObjStatusList'};
}
public class Attribute {
public String attrName;
public String attrType;
public String attrValue;
private String[] attrName_type_info = new String[]{'attrName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] attrType_type_info = new String[]{'attrType','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] attrValue_type_info = new String[]{'attrValue','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'attrName','attrType','attrValue'};
}
public class VersionedItem {
public Integer id;
public String name;
public String type_x;
public String description;
public DateTime timestamp;
private String[] id_type_info = new String[]{'id','http://www.w3.org/2001/XMLSchema','integer','1','1','false'};
private String[] name_type_info = new String[]{'name','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] type_x_type_info = new String[]{'type','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] description_type_info = new String[]{'description','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] timestamp_type_info = new String[]{'timestamp','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'id','name','type_x','description','timestamp'};
}
public class SuccessSyncMultipleLeads {
public Mktows.ResultSyncMultipleLeads result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultSyncMultipleLeads','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class AuthenticationHeaderInfo {
public String mktowsUserId;
public String requestSignature;
public String requestTimestamp;
public String audit;
public Integer mode;
private String[] mktowsUserId_type_info = new String[]{'mktowsUserId','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] requestSignature_type_info = new String[]{'requestSignature','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] requestTimestamp_type_info = new String[]{'requestTimestamp','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] audit_type_info = new String[]{'audit','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] mode_type_info = new String[]{'mode','http://www.w3.org/2001/XMLSchema','int','0','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'mktowsUserId','requestSignature','requestTimestamp','audit','mode'};
}
public class ResultSyncLead {
public Integer leadId;
public Mktows.SyncStatus syncStatus;
public Mktows.LeadRecord leadRecord;
private String[] leadId_type_info = new String[]{'leadId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] syncStatus_type_info = new String[]{'syncStatus','http://www.marketo.com/mktows/','SyncStatus','1','1','false'};
private String[] leadRecord_type_info = new String[]{'leadRecord','http://www.marketo.com/mktows/','LeadRecord','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadId','syncStatus','leadRecord'};
}
public class ArrayOfCampaignRecord {
public Mktows.CampaignRecord[] campaignRecord;
private String[] campaignRecord_type_info = new String[]{'campaignRecord','http://www.marketo.com/mktows/','CampaignRecord','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'campaignRecord'};
}
public class ArrayOfLeadChangeRecord {
public Mktows.LeadChangeRecord[] leadChangeRecord;
private String[] leadChangeRecord_type_info = new String[]{'leadChangeRecord','http://www.marketo.com/mktows/','LeadChangeRecord','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadChangeRecord'};
}
public class CampaignRecord {
public Integer id;
public String name;
public String description;
private String[] id_type_info = new String[]{'id','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] name_type_info = new String[]{'name','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] description_type_info = new String[]{'description','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'id','name','description'};
}
public class SuccessGetLeadChanges {
public Mktows.ResultGetLeadChanges result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultGetLeadChanges','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ArrayOfActivityRecord {
public Mktows.ActivityRecord[] activityRecord;
private String[] activityRecord_type_info = new String[]{'activityRecord','http://www.marketo.com/mktows/','ActivityRecord','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'activityRecord'};
}
public class ActivityRecord {
public Integer id;
public DateTime activityDateTime;
public String activityType;
public String mktgAssetName;
public Mktows.ArrayOfAttribute activityAttributes;
public String campaign;
public String personName;
public String mktPersonId;
public String foreignSysId;
public String orgName;
public String foreignSysOrgId;
private String[] id_type_info = new String[]{'id','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] activityDateTime_type_info = new String[]{'activityDateTime','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] activityType_type_info = new String[]{'activityType','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] mktgAssetName_type_info = new String[]{'mktgAssetName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] activityAttributes_type_info = new String[]{'activityAttributes','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] campaign_type_info = new String[]{'campaign','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] personName_type_info = new String[]{'personName','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] mktPersonId_type_info = new String[]{'mktPersonId','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] foreignSysId_type_info = new String[]{'foreignSysId','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] orgName_type_info = new String[]{'orgName','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] foreignSysOrgId_type_info = new String[]{'foreignSysOrgId','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'id','activityDateTime','activityType','mktgAssetName','activityAttributes','campaign','personName','mktPersonId','foreignSysId','orgName','foreignSysOrgId'};
}
public class SuccessGetCustomObjects {
public Mktows.ResultGetCustomObjects result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultGetCustomObjects','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ParamsSyncCustomObjects {
public String objTypeName;
public Mktows.ArrayOfCustomObj customObjList;
public String operation;
private String[] objTypeName_type_info = new String[]{'objTypeName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] customObjList_type_info = new String[]{'customObjList','http://www.marketo.com/mktows/','ArrayOfCustomObj','1','1','false'};
private String[] operation_type_info = new String[]{'operation','http://www.marketo.com/mktows/','SyncOperationEnum','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objTypeName','customObjList','operation'};
}
public class MktowsContextHeaderInfo {
public String targetWorkspace;
private String[] targetWorkspace_type_info = new String[]{'targetWorkspace','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'targetWorkspace'};
}
public class ArrayOfString {
public String[] stringItem;
private String[] stringItem_type_info = new String[]{'stringItem','http://www.w3.org/2001/XMLSchema','string','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'stringItem'};
}
public class SuccessRequestCampaign {
public Mktows.ResultRequestCampaign result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultRequestCampaign','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ResultSyncMultipleLeads {
public Mktows.ArrayOfSyncStatus syncStatusList;
private String[] syncStatusList_type_info = new String[]{'syncStatusList','http://www.marketo.com/mktows/','ArrayOfSyncStatus','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'syncStatusList'};
}
public class SuccessGetMultipleLeads {
public Mktows.ResultGetMultipleLeads result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultGetMultipleLeads','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class SuccessGetCampaignsForSource {
public Mktows.ResultGetCampaignsForSource result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultGetCampaignsForSource','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class SuccessGetLeadActivity {
public Mktows.LeadActivityList leadActivityList;
private String[] leadActivityList_type_info = new String[]{'leadActivityList','http://www.marketo.com/mktows/','LeadActivityList','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadActivityList'};
}
public class ArrayOfVersionedItem {
public Mktows.VersionedItem[] versionedItem;
private String[] versionedItem_type_info = new String[]{'versionedItem','http://www.marketo.com/mktows/','VersionedItem','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'versionedItem'};
}
public class ResultListOperation {
public Boolean success;
public Mktows.ArrayOfLeadStatus statusList;
private String[] success_type_info = new String[]{'success','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] statusList_type_info = new String[]{'statusList','http://www.marketo.com/mktows/','ArrayOfLeadStatus','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'success','statusList'};
}
public class ArrayOfMObjFieldMetadata {
public Mktows.MObjFieldMetadata[] field;
private String[] field_type_info = new String[]{'field','http://www.marketo.com/mktows/','MObjFieldMetadata','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'field'};
}
public class ResultGetLead {
public Integer count;
public Mktows.ArrayOfLeadRecord leadRecordList;
private String[] count_type_info = new String[]{'count','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] leadRecordList_type_info = new String[]{'leadRecordList','http://www.marketo.com/mktows/','ArrayOfLeadRecord','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'count','leadRecordList'};
}
public class ParamsDeleteCustomObjects {
public String objTypeName;
public Mktows.ArrayOfKeyList customObjKeyLists;
private String[] objTypeName_type_info = new String[]{'objTypeName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] customObjKeyLists_type_info = new String[]{'customObjKeyLists','http://www.marketo.com/mktows/','ArrayOfKeyList','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objTypeName','customObjKeyLists'};
}
public class ParamsGetCampaignsForSource {
public String source;
public String name;
public Boolean exactName;
private String[] source_type_info = new String[]{'source','http://www.marketo.com/mktows/','ReqCampSourceType','1','1','false'};
private String[] name_type_info = new String[]{'name','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] exactName_type_info = new String[]{'exactName','http://www.w3.org/2001/XMLSchema','boolean','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'source','name','exactName'};
}
public class ArrayOfSyncCustomObjStatus {
public Mktows.SyncCustomObjStatus[] syncCustomObjStatus;
private String[] syncCustomObjStatus_type_info = new String[]{'syncCustomObjStatus','http://www.marketo.com/mktows/','SyncCustomObjStatus','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'syncCustomObjStatus'};
}
public class ParamsGetLeadActivity {
public Mktows.LeadKey leadKey;
public Mktows.ActivityTypeFilter activityFilter;
public Mktows.StreamPosition startPosition;
public Integer batchSize;
private String[] leadKey_type_info = new String[]{'leadKey','http://www.marketo.com/mktows/','LeadKey','1','1','false'};
private String[] activityFilter_type_info = new String[]{'activityFilter','http://www.marketo.com/mktows/','ActivityTypeFilter','0','1','true'};
private String[] startPosition_type_info = new String[]{'startPosition','http://www.marketo.com/mktows/','StreamPosition','0','1','true'};
private String[] batchSize_type_info = new String[]{'batchSize','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadKey','activityFilter','startPosition','batchSize'};
}
public class ResultSyncCustomObjects {
public Mktows.ArrayOfSyncCustomObjStatus syncCustomObjStatusList;
private String[] syncCustomObjStatusList_type_info = new String[]{'syncCustomObjStatusList','http://www.marketo.com/mktows/','ArrayOfSyncCustomObjStatus','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'syncCustomObjStatusList'};
}
public class ParamsGetLeadChanges {
public Mktows.StreamPosition startPosition;
public Mktows.ActivityTypeFilter activityFilter;
public Integer batchSize;
private String[] startPosition_type_info = new String[]{'startPosition','http://www.marketo.com/mktows/','StreamPosition','1','1','false'};
private String[] activityFilter_type_info = new String[]{'activityFilter','http://www.marketo.com/mktows/','ActivityTypeFilter','0','1','true'};
private String[] batchSize_type_info = new String[]{'batchSize','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'startPosition','activityFilter','batchSize'};
}
public class ParamsDescribeMObject {
public String objectName;
private String[] objectName_type_info = new String[]{'objectName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objectName'};
}
public class SuccessDescribeMObject {
public Mktows.ResultDescribeMObject result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultDescribeMObject','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ParamsGetCustomObjects {
public String objTypeName;
public String streamPosition;
public Integer batchSize;
public Mktows.ArrayOfAttribute customObjKeyList;
public Mktows.ArrayOfString includeAttributes;
private String[] objTypeName_type_info = new String[]{'objTypeName','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] streamPosition_type_info = new String[]{'streamPosition','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] batchSize_type_info = new String[]{'batchSize','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] customObjKeyList_type_info = new String[]{'customObjKeyList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] includeAttributes_type_info = new String[]{'includeAttributes','http://www.marketo.com/mktows/','ArrayOfString','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objTypeName','streamPosition','batchSize','customObjKeyList','includeAttributes'};
}
public class ArrayOfActivityType {
public String[] activityType;
private String[] activityType_type_info = new String[]{'activityType','http://www.marketo.com/mktows/','ActivityType','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'activityType'};
}
public class ArrayOfInteger {
public Integer[] integerItem;
private String[] integerItem_type_info = new String[]{'integerItem','http://www.w3.org/2001/XMLSchema','int','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'integerItem'};
}
public class LeadRecord {
public Integer Id;
public String Email;
public String ForeignSysPersonId;
public String ForeignSysType;
public Mktows.ArrayOfAttribute leadAttributeList;
private String[] Id_type_info = new String[]{'Id','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] Email_type_info = new String[]{'Email','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] ForeignSysPersonId_type_info = new String[]{'ForeignSysPersonId','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] ForeignSysType_type_info = new String[]{'ForeignSysType','http://www.marketo.com/mktows/','ForeignSysType','0','1','true'};
private String[] leadAttributeList_type_info = new String[]{'leadAttributeList','http://www.marketo.com/mktows/','ArrayOfAttribute','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'Id','Email','ForeignSysPersonId','ForeignSysType','leadAttributeList'};
}
public class ParamsGetLead {
public Mktows.LeadKey leadKey;
private String[] leadKey_type_info = new String[]{'leadKey','http://www.marketo.com/mktows/','LeadKey','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadKey'};
}
public class StreamPosition {
public DateTime latestCreatedAt;
public DateTime oldestCreatedAt;
public DateTime activityCreatedAt;
public String offset;
private String[] latestCreatedAt_type_info = new String[]{'latestCreatedAt','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] oldestCreatedAt_type_info = new String[]{'oldestCreatedAt','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] activityCreatedAt_type_info = new String[]{'activityCreatedAt','http://www.w3.org/2001/XMLSchema','dateTime','0','1','true'};
private String[] offset_type_info = new String[]{'offset','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'latestCreatedAt','oldestCreatedAt','activityCreatedAt','offset'};
}
public class ResultRequestCampaign {
public Boolean success;
private String[] success_type_info = new String[]{'success','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'success'};
}
public class SuccessDeleteCustomObjects {
public Mktows.ResultDeleteCustomObjects result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultDeleteCustomObjects','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class ResultGetCampaignsForSource {
public Integer returnCount;
public Mktows.ArrayOfCampaignRecord campaignRecordList;
private String[] returnCount_type_info = new String[]{'returnCount','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] campaignRecordList_type_info = new String[]{'campaignRecordList','http://www.marketo.com/mktows/','ArrayOfCampaignRecord','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'returnCount','campaignRecordList'};
}
public class ParamsListMObjects {
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{};
}
public class ListKey {
public String keyType;
public String keyValue;
private String[] keyType_type_info = new String[]{'keyType','http://www.marketo.com/mktows/','ListKeyType','1','1','false'};
private String[] keyValue_type_info = new String[]{'keyValue','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'keyType','keyValue'};
}
public class SuccessMergeLeads {
public Mktows.ResultMergeLeads result;
private String[] result_type_info = new String[]{'result','http://www.marketo.com/mktows/','ResultMergeLeads','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'result'};
}
public class MktowsApiSoapPort {
public String endpoint_x = 'http://localhost/soap/mktows';
public Map<String,String> inputHttpHeaders_x;
public Map<String,String> outputHttpHeaders_x;
public String clientCertName_x;
public String clientCert_x;
public String clientCertPasswd_x;
public Integer timeout_x;
public Mktows.AuthenticationHeaderInfo authentication;
public Mktows.MktowsContextHeaderInfo mktowsContext;
private String authentication_hns = 'AuthenticationHeader=http://www.marketo.com/mktows/';
private String mktowsContext_hns = 'MktowsContextHeader=http://www.marketo.com/mktows/';
private String[] ns_map_type_info = new String[]{'http://www.marketo.com/mktows/', 'Mktows'};
public Mktows.ResultSyncMultipleLeads syncMultipleLeads(Mktows.ArrayOfLeadRecord leadRecordList,Boolean dedupEnabled) {
Mktows.ParamsSyncMultipleLeads request_x = new Mktows.ParamsSyncMultipleLeads();
Mktows.SuccessSyncMultipleLeads response_x;
request_x.leadRecordList = leadRecordList;
request_x.dedupEnabled = dedupEnabled;
Map<String, Mktows.SuccessSyncMultipleLeads> response_map_x = new Map<String, Mktows.SuccessSyncMultipleLeads>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/syncMultipleLeads',
'http://www.marketo.com/mktows/',
'paramsSyncMultipleLeads',
'http://www.marketo.com/mktows/',
'successSyncMultipleLeads',
'Mktows.SuccessSyncMultipleLeads'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultRequestCampaign requestCampaign(String source,Integer campaignId,Mktows.ArrayOfLeadKey leadList) {
Mktows.ParamsRequestCampaign request_x = new Mktows.ParamsRequestCampaign();
Mktows.SuccessRequestCampaign response_x;
request_x.source = source;
request_x.campaignId = campaignId;
request_x.leadList = leadList;
Map<String, Mktows.SuccessRequestCampaign> response_map_x = new Map<String, Mktows.SuccessRequestCampaign>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/requestCampaign',
'http://www.marketo.com/mktows/',
'paramsRequestCampaign',
'http://www.marketo.com/mktows/',
'successRequestCampaign',
'Mktows.SuccessRequestCampaign'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultMergeLeads mergeLeads(Mktows.ArrayOfAttribute winningLeadKeyList,Mktows.ArrayOfKeyList losingLeadKeyLists) {
Mktows.ParamsMergeLeads request_x = new Mktows.ParamsMergeLeads();
Mktows.SuccessMergeLeads response_x;
request_x.winningLeadKeyList = winningLeadKeyList;
request_x.losingLeadKeyLists = losingLeadKeyLists;
Map<String, Mktows.SuccessMergeLeads> response_map_x = new Map<String, Mktows.SuccessMergeLeads>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/mergeLeads',
'http://www.marketo.com/mktows/',
'paramsMergeLeads',
'http://www.marketo.com/mktows/',
'successMergeLeads',
'Mktows.SuccessMergeLeads'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultGetLeadChanges getLeadChanges(Mktows.StreamPosition startPosition,Mktows.ActivityTypeFilter activityFilter,Integer batchSize) {
Mktows.ParamsGetLeadChanges request_x = new Mktows.ParamsGetLeadChanges();
Mktows.SuccessGetLeadChanges response_x;
request_x.startPosition = startPosition;
request_x.activityFilter = activityFilter;
request_x.batchSize = batchSize;
Map<String, Mktows.SuccessGetLeadChanges> response_map_x = new Map<String, Mktows.SuccessGetLeadChanges>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getLeadChanges',
'http://www.marketo.com/mktows/',
'paramsGetLeadChanges',
'http://www.marketo.com/mktows/',
'successGetLeadChanges',
'Mktows.SuccessGetLeadChanges'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultSyncCustomObjects syncCustomObjects(String objTypeName,Mktows.ArrayOfCustomObj customObjList,String operation) {
Mktows.ParamsSyncCustomObjects request_x = new Mktows.ParamsSyncCustomObjects();
Mktows.SuccessSyncCustomObjects response_x;
request_x.objTypeName = objTypeName;
request_x.customObjList = customObjList;
request_x.operation = operation;
Map<String, Mktows.SuccessSyncCustomObjects> response_map_x = new Map<String, Mktows.SuccessSyncCustomObjects>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/syncCustomObjects',
'http://www.marketo.com/mktows/',
'paramsSyncCustomObjects',
'http://www.marketo.com/mktows/',
'successSyncCustomObjects',
'Mktows.SuccessSyncCustomObjects'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultSyncLead syncLead(Mktows.LeadRecord leadRecord,Boolean returnLead,String marketoCookie) {
Mktows.ParamsSyncLead request_x = new Mktows.ParamsSyncLead();
Mktows.SuccessSyncLead response_x;
request_x.leadRecord = leadRecord;
request_x.returnLead = returnLead;
request_x.marketoCookie = marketoCookie;
Map<String, Mktows.SuccessSyncLead> response_map_x = new Map<String, Mktows.SuccessSyncLead>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/syncLead',
'http://www.marketo.com/mktows/',
'paramsSyncLead',
'http://www.marketo.com/mktows/',
'successSyncLead',
'Mktows.SuccessSyncLead'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultGetCampaignsForSource getCampaignsForSource(String source,String name,Boolean exactName) {
Mktows.ParamsGetCampaignsForSource request_x = new Mktows.ParamsGetCampaignsForSource();
Mktows.SuccessGetCampaignsForSource response_x;
request_x.source = source;
request_x.name = name;
request_x.exactName = exactName;
Map<String, Mktows.SuccessGetCampaignsForSource> response_map_x = new Map<String, Mktows.SuccessGetCampaignsForSource>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getCampaignsForSource',
'http://www.marketo.com/mktows/',
'paramsGetCampaignsForSource',
'http://www.marketo.com/mktows/',
'successGetCampaignsForSource',
'Mktows.SuccessGetCampaignsForSource'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.LeadActivityList getLeadActivity(Mktows.LeadKey leadKey,Mktows.ActivityTypeFilter activityFilter,Mktows.StreamPosition startPosition,Integer batchSize) {
Mktows.ParamsGetLeadActivity request_x = new Mktows.ParamsGetLeadActivity();
Mktows.SuccessGetLeadActivity response_x;
request_x.leadKey = leadKey;
request_x.activityFilter = activityFilter;
request_x.startPosition = startPosition;
request_x.batchSize = batchSize;
Map<String, Mktows.SuccessGetLeadActivity> response_map_x = new Map<String, Mktows.SuccessGetLeadActivity>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getLeadActivity',
'http://www.marketo.com/mktows/',
'paramsGetLeadActivity',
'http://www.marketo.com/mktows/',
'successGetLeadActivity',
'Mktows.SuccessGetLeadActivity'}
);
response_x = response_map_x.get('response_x');
return response_x.leadActivityList;
}
public Mktows.ResultListOperation listOperation(String listOperation,Mktows.ListKey listKey,Mktows.ArrayOfLeadKey listMemberList,Boolean strict) {
Mktows.ParamsListOperation request_x = new Mktows.ParamsListOperation();
Mktows.SuccessListOperation response_x;
request_x.listOperation = listOperation;
request_x.listKey = listKey;
request_x.listMemberList = listMemberList;
request_x.strict = strict;
Map<String, Mktows.SuccessListOperation> response_map_x = new Map<String, Mktows.SuccessListOperation>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/listOperation',
'http://www.marketo.com/mktows/',
'paramsListOperation',
'http://www.marketo.com/mktows/',
'successListOperation',
'Mktows.SuccessListOperation'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultDescribeMObject describeMObject(String objectName) {
Mktows.ParamsDescribeMObject request_x = new Mktows.ParamsDescribeMObject();
Mktows.SuccessDescribeMObject response_x;
request_x.objectName = objectName;
Map<String, Mktows.SuccessDescribeMObject> response_map_x = new Map<String, Mktows.SuccessDescribeMObject>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/describeMObject',
'http://www.marketo.com/mktows/',
'paramsDescribeMObject',
'http://www.marketo.com/mktows/',
'successDescribeMObject',
'Mktows.SuccessDescribeMObject'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultGetMultipleLeads getMultipleLeads(DateTime lastUpdatedAt,String streamPosition,Integer batchSize,Mktows.ArrayOfString includeAttributes) {
Mktows.ParamsGetMultipleLeads request_x = new Mktows.ParamsGetMultipleLeads();
Mktows.SuccessGetMultipleLeads response_x;
request_x.lastUpdatedAt = lastUpdatedAt;
request_x.streamPosition = streamPosition;
request_x.batchSize = batchSize;
request_x.includeAttributes = includeAttributes;
Map<String, Mktows.SuccessGetMultipleLeads> response_map_x = new Map<String, Mktows.SuccessGetMultipleLeads>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getMultipleLeads',
'http://www.marketo.com/mktows/',
'paramsGetMultipleLeads',
'http://www.marketo.com/mktows/',
'successGetMultipleLeads',
'Mktows.SuccessGetMultipleLeads'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultGetLead getLead(Mktows.LeadKey leadKey) {
Mktows.ParamsGetLead request_x = new Mktows.ParamsGetLead();
Mktows.SuccessGetLead response_x;
request_x.leadKey = leadKey;
Map<String, Mktows.SuccessGetLead> response_map_x = new Map<String, Mktows.SuccessGetLead>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getLead',
'http://www.marketo.com/mktows/',
'paramsGetLead',
'http://www.marketo.com/mktows/',
'successGetLead',
'Mktows.SuccessGetLead'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultGetCustomObjects getCustomObjects(String objTypeName,String streamPosition,Integer batchSize,Mktows.ArrayOfAttribute customObjKeyList,Mktows.ArrayOfString includeAttributes) {
Mktows.ParamsGetCustomObjects request_x = new Mktows.ParamsGetCustomObjects();
Mktows.SuccessGetCustomObjects response_x;
request_x.objTypeName = objTypeName;
request_x.streamPosition = streamPosition;
request_x.batchSize = batchSize;
request_x.customObjKeyList = customObjKeyList;
request_x.includeAttributes = includeAttributes;
Map<String, Mktows.SuccessGetCustomObjects> response_map_x = new Map<String, Mktows.SuccessGetCustomObjects>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/getCustomObjects',
'http://www.marketo.com/mktows/',
'paramsGetCustomObjects',
'http://www.marketo.com/mktows/',
'successGetCustomObjects',
'Mktows.SuccessGetCustomObjects'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultListMObjects listMObjects() {
Mktows.ParamsListMObjects request_x = new Mktows.ParamsListMObjects();
Mktows.SuccessListMObjects response_x;
Map<String, Mktows.SuccessListMObjects> response_map_x = new Map<String, Mktows.SuccessListMObjects>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/listMObjects',
'http://www.marketo.com/mktows/',
'paramsListMObjects',
'http://www.marketo.com/mktows/',
'successListMObjects',
'Mktows.SuccessListMObjects'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
public Mktows.ResultDeleteCustomObjects deleteCustomObjects(String objTypeName,Mktows.ArrayOfKeyList customObjKeyLists) {
Mktows.ParamsDeleteCustomObjects request_x = new Mktows.ParamsDeleteCustomObjects();
Mktows.SuccessDeleteCustomObjects response_x;
request_x.objTypeName = objTypeName;
request_x.customObjKeyLists = customObjKeyLists;
Map<String, Mktows.SuccessDeleteCustomObjects> response_map_x = new Map<String, Mktows.SuccessDeleteCustomObjects>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.marketo.com/mktows/deleteCustomObjects',
'http://www.marketo.com/mktows/',
'paramsDeleteCustomObjects',
'http://www.marketo.com/mktows/',
'successDeleteCustomObjects',
'Mktows.SuccessDeleteCustomObjects'}
);
response_x = response_map_x.get('response_x');
return response_x.result;
}
}
public class SyncStatus {
public Integer leadId;
public String status;
public String error;
private String[] leadId_type_info = new String[]{'leadId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] status_type_info = new String[]{'status','http://www.marketo.com/mktows/','LeadSyncStatus','1','1','false'};
private String[] error_type_info = new String[]{'error','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadId','status','error'};
}
public class ArrayOfLeadRecord {
public Mktows.LeadRecord[] leadRecord;
private String[] leadRecord_type_info = new String[]{'leadRecord','http://www.marketo.com/mktows/','LeadRecord','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadRecord'};
}
public class MObjFieldMetadata {
public String name;
public String description;
public String displayName;
public String sourceObject;
public String dataType;
public Integer size;
public Boolean isReadonly;
public Boolean isUpdateBlocked;
public Boolean isName;
public Boolean isPrimaryKey;
public Boolean isCustom;
public Boolean isDynamic;
public String dynamicFieldRef;
public DateTime updatedAt;
private String[] name_type_info = new String[]{'name','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] description_type_info = new String[]{'description','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] displayName_type_info = new String[]{'displayName','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] sourceObject_type_info = new String[]{'sourceObject','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] dataType_type_info = new String[]{'dataType','http://www.w3.org/2001/XMLSchema','string','1','1','false'};
private String[] size_type_info = new String[]{'size','http://www.w3.org/2001/XMLSchema','int','1','1','true'};
private String[] isReadonly_type_info = new String[]{'isReadonly','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] isUpdateBlocked_type_info = new String[]{'isUpdateBlocked','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] isName_type_info = new String[]{'isName','http://www.w3.org/2001/XMLSchema','boolean','1','1','true'};
private String[] isPrimaryKey_type_info = new String[]{'isPrimaryKey','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] isCustom_type_info = new String[]{'isCustom','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] isDynamic_type_info = new String[]{'isDynamic','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] dynamicFieldRef_type_info = new String[]{'dynamicFieldRef','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] updatedAt_type_info = new String[]{'updatedAt','http://www.w3.org/2001/XMLSchema','dateTime','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'name','description','displayName','sourceObject','dataType','size','isReadonly','isUpdateBlocked','isName','isPrimaryKey','isCustom','isDynamic','dynamicFieldRef','updatedAt'};
}
public class MergeStatus {
public Integer winningLeadId;
public Mktows.ArrayOfInteger losingLeadIdList;
public String status;
public String error;
private String[] winningLeadId_type_info = new String[]{'winningLeadId','http://www.w3.org/2001/XMLSchema','int','0','1','true'};
private String[] losingLeadIdList_type_info = new String[]{'losingLeadIdList','http://www.marketo.com/mktows/','ArrayOfInteger','0','1','true'};
private String[] status_type_info = new String[]{'status','http://www.marketo.com/mktows/','LeadMergeStatusEnum','1','1','false'};
private String[] error_type_info = new String[]{'error','http://www.w3.org/2001/XMLSchema','string','0','1','true'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'winningLeadId','losingLeadIdList','status','error'};
}
public class LeadStatus {
public Mktows.LeadKey leadKey;
public Boolean status;
private String[] leadKey_type_info = new String[]{'leadKey','http://www.marketo.com/mktows/','LeadKey','1','1','false'};
private String[] status_type_info = new String[]{'status','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'leadKey','status'};
}
public class ResultListMObjects {
public String[] objects;
private String[] objects_type_info = new String[]{'objects','http://www.w3.org/2001/XMLSchema','string','0','-1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'objects'};
}
public class ParamsRequestCampaign {
public String source;
public Integer campaignId;
public Mktows.ArrayOfLeadKey leadList;
private String[] source_type_info = new String[]{'source','http://www.marketo.com/mktows/','ReqCampSourceType','1','1','false'};
private String[] campaignId_type_info = new String[]{'campaignId','http://www.w3.org/2001/XMLSchema','int','1','1','false'};
private String[] leadList_type_info = new String[]{'leadList','http://www.marketo.com/mktows/','ArrayOfLeadKey','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'source','campaignId','leadList'};
}
public class ParamsMergeLeads {
public Mktows.ArrayOfAttribute winningLeadKeyList;
public Mktows.ArrayOfKeyList losingLeadKeyLists;
private String[] winningLeadKeyList_type_info = new String[]{'winningLeadKeyList','http://www.marketo.com/mktows/','ArrayOfAttribute','1','1','false'};
private String[] losingLeadKeyLists_type_info = new String[]{'losingLeadKeyLists','http://www.marketo.com/mktows/','ArrayOfKeyList','1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://www.marketo.com/mktows/','false','false'};
private String[] field_order_type_info = new String[]{'winningLeadKeyList','losingLeadKeyLists'};
}
public class LeadActivityList {