-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorial.php
721 lines (721 loc) · 19.9 KB
/
tutorial.php
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
<?php
/**
* This file aims to show you how to use this generated package.
* In addition, the goal is to show which methods are available and the fist needed parameter(s)
* You have to use an associative array such as:
* - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
* - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
* $options = array(
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://evasys-dmz.kent.ac.uk/evasys/services/soapserver-v61.wsdl',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
* );
* etc....
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Minimal options
*/
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'http://evasys-dmz.kent.ac.uk/evasys/services/soapserver-v61.wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
* Samples for Request ServiceType
*/
$request = new \ServiceType\Request($options);
/**
* Sample call for RequestTicket operation/method
*/
if ($request->RequestTicket($Login, $Password) !== false) {
print_r($request->getResult());
} else {
print_r($request->getLastError());
}
/**
* Samples for Get ServiceType
*/
$get = new \ServiceType\Get($options);
$get->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for GetPswdsByParticipant operation/method
*/
if ($get->GetPswdsByParticipant($UserMailAddress, $CourseCode) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUser operation/method
*/
if ($get->GetUser($UserId, $IdType, $IncludeCourses, $IncludeSurveys, $IncludeParticipants, $IncludeSecondaryCourses) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUsersBySubunit operation/method
*/
if ($get->GetUsersBySubunit($nSubunitId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetAllPeriods operation/method
*/
if ($get->GetAllPeriods() !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCoursesByUserId operation/method
*/
if ($get->GetCoursesByUserId($nUserId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCourse operation/method
*/
if ($get->GetCourse($CourseId, $IdType, $IncludeSurveys, $IncludeParticipants) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPeriod operation/method
*/
if ($get->GetPeriod($sPeriodId, $sPeriodIdType) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetAllForms operation/method
*/
if ($get->GetAllForms($IncludeCustomReports) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyTypes operation/method
*/
if ($get->GetSurveyTypes() !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetFormByCourseIdAndPeriodId operation/method
*/
if ($get->GetFormByCourseIdAndPeriodId($nCourseId, $nPeriodId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetForm operation/method
*/
if ($get->GetForm($FormId, $IdType, $IncludeOnlyQuestions) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyById operation/method
*/
if ($get->GetSurveyById($nSurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveysByCourse operation/method
*/
if ($get->GetSurveysByCourse($nCourseId, $nFormId, $nPeriodId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPswdsBySurvey operation/method
*/
if ($get->GetPswdsBySurvey($nSurveyId, $nPswdCount, $nCodeTypes) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPDFReport operation/method
*/
if ($get->GetPDFReport($nSurveyId, $nUserId, $nCustomPDFId, $nLanguageID) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSubunits operation/method
*/
if ($get->GetSubunits() !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSubunit operation/method
*/
if ($get->GetSubunit($SubunitId, $IdType, $IncludeInstructors) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPDFPluginsByFormId operation/method
*/
if ($get->GetPDFPluginsByFormId($FormId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPDFQuestionnaire operation/method
*/
if ($get->GetPDFQuestionnaire($FormId, $SurveyId, $SerialPrint) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPDFCoversheet operation/method
*/
if ($get->GetPDFCoversheet($SurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPDFPswd operation/method
*/
if ($get->GetPDFPswd($SurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSPSSRawData operation/method
*/
if ($get->GetSPSSRawData($SurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCSVRawData operation/method
*/
if ($get->GetCSVRawData($SurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyRawData operation/method
*/
if ($get->GetSurveyRawData($SurveyId, $IncludeOpenEndedQuestions) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyResults operation/method
*/
if ($get->GetSurveyResults($SurveyId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetOnlineSurveyLinkByEmail operation/method
*/
if ($get->GetOnlineSurveyLinkByEmail($SurveyId, $EmailAddress, $AddRecipientToSurvey, $AutoIncreasePSWDCount) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCustomReportsByForm operation/method
*/
if ($get->GetCustomReportsByForm($FormId, $IdType) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSimpleForm operation/method
*/
if ($get->GetSimpleForm($FormId, $IdType, $IncludeCustomReports) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetVFD operation/method
*/
if ($get->GetVFD($FormId, $IncludeSecondaryData) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyRawDataByTime operation/method
*/
if ($get->GetSurveyRawDataByTime($StartTime, $EndTime, $IncludeOpenEndedQuestions) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSessionForUser operation/method
*/
if ($get->GetSessionForUser($UserId, $IdType) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCourseTypes operation/method
*/
if ($get->GetCourseTypes($OnlyModuleCourseTypes) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPswdsByRecipient operation/method
*/
if ($get->GetPswdsByRecipient($UserMailAddress) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetPercentOfCompletedSurveysByParticipant operation/method
*/
if ($get->GetPercentOfCompletedSurveysByParticipant($UserMailAddress, $StartDate, $EndDate, $SubunitId, $IdType) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetAccessibleSubunitsForSubunitAdmin operation/method
*/
if ($get->GetAccessibleSubunitsForSubunitAdmin($nUserId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetUserVolumeLicenses operation/method
*/
if ($get->GetUserVolumeLicenses($UserId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetSurveyOriginalScansPDF operation/method
*/
if ($get->GetSurveyOriginalScansPDF($SurveyId, $SheetId, $BatchId) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetWebscanBatchList operation/method
*/
if ($get->GetWebscanBatchList($UserId, $Language) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Samples for Delete ServiceType
*/
$delete = new \ServiceType\Delete($options);
$delete->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for DeleteUnusedPswds operation/method
*/
if ($delete->DeleteUnusedPswds(new \StructType\OnlineCodeList()) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteUser operation/method
*/
if ($delete->DeleteUser($UserId, $IdType) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteCourse operation/method
*/
if ($delete->DeleteCourse($CourseId, $IdType) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSubunit operation/method
*/
if ($delete->DeleteSubunit($SubunitId, $IdType) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteSurvey operation/method
*/
if ($delete->DeleteSurvey($SurveyId) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteTask operation/method
*/
if ($delete->DeleteTask($TaskId) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Sample call for DeleteVolumeLicense operation/method
*/
if ($delete->DeleteVolumeLicense($UserId, $LicenseId, $LicenseKey) !== false) {
print_r($delete->getResult());
} else {
print_r($delete->getLastError());
}
/**
* Samples for Update ServiceType
*/
$update = new \ServiceType\Update($options);
$update->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for UpdateUser operation/method
*/
if ($update->UpdateUser(new \StructType\User()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateCourse operation/method
*/
if ($update->UpdateCourse(new \StructType\Course(), $DeleteExistingParticipants) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateSurvey operation/method
*/
if ($update->UpdateSurvey(new \StructType\Survey()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateInvitationTask operation/method
*/
if ($update->UpdateInvitationTask(new \StructType\InvitationTask()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateRemindTask operation/method
*/
if ($update->UpdateRemindTask(new \StructType\RemindTask()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateResponseRateTask operation/method
*/
if ($update->UpdateResponseRateTask(new \StructType\ResponseRateTask()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Sample call for UpdateCloseTask operation/method
*/
if ($update->UpdateCloseTask(new \StructType\CloseTask()) !== false) {
print_r($update->getResult());
} else {
print_r($update->getLastError());
}
/**
* Samples for Insert ServiceType
*/
$insert = new \ServiceType\Insert($options);
$insert->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for InsertCourse operation/method
*/
if ($insert->InsertCourse(new \StructType\Course()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertCentralSurvey operation/method
*/
if ($insert->InsertCentralSurvey($nUserId, $nCourseId, $nFormId, $nPeriodId, $sSurveyType, $sNotice) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertUser operation/method
*/
if ($insert->InsertUser(new \StructType\User()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertSubunit operation/method
*/
if ($insert->InsertSubunit(new \StructType\Unit()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertForm operation/method
*/
if ($insert->InsertForm(new \StructType\VFForm()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertParticipants operation/method
*/
if ($insert->InsertParticipants(new \StructType\PersonList(), $CourseId, $IdType, $DeleteExisting) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertSurveyNotice operation/method
*/
if ($insert->InsertSurveyNotice($SurveyId, $Notice, $UserId, $IdType) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertInvitationTask operation/method
*/
if ($insert->InsertInvitationTask(new \StructType\InvitationTask()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertRemindTask operation/method
*/
if ($insert->InsertRemindTask(new \StructType\RemindTask()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertResponseRateTask operation/method
*/
if ($insert->InsertResponseRateTask(new \StructType\ResponseRateTask()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Sample call for InsertCloseTask operation/method
*/
if ($insert->InsertCloseTask(new \StructType\CloseTask()) !== false) {
print_r($insert->getResult());
} else {
print_r($insert->getLastError());
}
/**
* Samples for Close ServiceType
*/
$close = new \ServiceType\Close($options);
$close->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for CloseSurvey operation/method
*/
if ($close->CloseSurvey($nSurveyId) !== false) {
print_r($close->getResult());
} else {
print_r($close->getLastError());
}
/**
* Samples for Open ServiceType
*/
$open = new \ServiceType\Open($options);
$open->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for OpenSurvey operation/method
*/
if ($open->OpenSurvey($nSurveyId) !== false) {
print_r($open->getResult());
} else {
print_r($open->getLastError());
}
/**
* Samples for Is ServiceType
*/
$is = new \ServiceType\Is($options);
$is->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for IsPswdUnused operation/method
*/
if ($is->IsPswdUnused($sPSWD) !== false) {
print_r($is->getResult());
} else {
print_r($is->getLastError());
}
/**
* Samples for Setup ServiceType
*/
$setup = new \ServiceType\Setup($options);
$setup->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for SetupCentralSurvey operation/method
*/
if ($setup->SetupCentralSurvey(new \StructType\User(), new \StructType\Course(), new \StructType\Unit(), $nFormId, $nPeriodId, $sSurveyType, $sNotice) !== false) {
print_r($setup->getResult());
} else {
print_r($setup->getLastError());
}
/**
* Samples for Upload ServiceType
*/
$upload = new \ServiceType\Upload($options);
$upload->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for UploadSessions operation/method
*/
if ($upload->UploadSessions(new \StructType\SessionList(), $DeleteExistingParticipants) !== false) {
print_r($upload->getResult());
} else {
print_r($upload->getLastError());
}
/**
* Sample call for UploadModules operation/method
*/
if ($upload->UploadModules(new \StructType\ModuleList()) !== false) {
print_r($upload->getResult());
} else {
print_r($upload->getLastError());
}
/**
* Sample call for UploadVolumeLicense operation/method
*/
if ($upload->UploadVolumeLicense($UserId, $LicenseKey) !== false) {
print_r($upload->getResult());
} else {
print_r($upload->getLastError());
}
/**
* Samples for Activate ServiceType
*/
$activate = new \ServiceType\Activate($options);
$activate->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for ActivateOptionalQuestionsForSurvey operation/method
*/
if ($activate->ActivateOptionalQuestionsForSurvey($SurveyId, $SendEmail, $Mode) !== false) {
print_r($activate->getResult());
} else {
print_r($activate->getLastError());
}
/**
* Sample call for ActivateOptionalQuestionsForSurveys operation/method
*/
if ($activate->ActivateOptionalQuestionsForSurveys(new \StructType\IDList(), $SendEmail, $Mode) !== false) {
print_r($activate->getResult());
} else {
print_r($activate->getLastError());
}
/**
* Sample call for ActivateOptionalQuestionsForSurveyAddQuestions operation/method
*/
if ($activate->ActivateOptionalQuestionsForSurveyAddQuestions($SurveyId, new \StructType\ItemGroupList()) !== false) {
print_r($activate->getResult());
} else {
print_r($activate->getLastError());
}
/**
* Samples for List ServiceType
*/
$list = new \ServiceType\_List($options);
$list->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for ListTasks operation/method
*/
if ($list->ListTasks(new \StructType\IDList(), new \StructType\IDList(), new \StructType\IDList(), new \StructType\IDList(), new \StructType\IDList()) !== false) {
print_r($list->getResult());
} else {
print_r($list->getLastError());
}
/**
* Samples for Create ServiceType
*/
$create = new \ServiceType\Create($options);
$create->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for CreatePdfReportDefinition operation/method
*/
if ($create->CreatePdfReportDefinition($PdfReportDefinitionName, $PdfReportDefinitionDescription, $PdfReportDefinitionBaseFormId, new \StructType\ItemList(), new \StructType\UserList(), $PdfReportDefinitionCreationMode, $PdfReportDefinitionBaseReportId) !== false) {
print_r($create->getResult());
} else {
print_r($create->getLastError());
}
/**
* Samples for Replace ServiceType
*/
$replace = new \ServiceType\Replace($options);
$replace->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for ReplaceAnswersToOpenQuestions operation/method
*/
if ($replace->ReplaceAnswersToOpenQuestions(new \StructType\IDList(), new \StructType\StringList(), $sReplaceComment) !== false) {
print_r($replace->getResult());
} else {
print_r($replace->getLastError());
}
/**
* Samples for Apply ServiceType
*/
$apply = new \ServiceType\Apply($options);
$apply->setSoapHeaderHeader(new \StructType\Header());
/**
* Sample call for ApplyActionOnWebscanBatch operation/method
*/
if ($apply->ApplyActionOnWebscanBatch($BatchId, $Action) !== false) {
print_r($apply->getResult());
} else {
print_r($apply->getLastError());
}