forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoap.stub.php
621 lines (564 loc) · 14.1 KB
/
soap.stub.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
<?php
/** @generate-class-entries */
namespace Soap {
/**
* @strict-properties
* @not-serializable
*/
final class Url
{
}
/**
* @strict-properties
* @not-serializable
*/
final class Sdl
{
}
}
namespace {
/**
* @var int
* @cvalue SOAP_1_1
*/
const SOAP_1_1 = UNKNOWN;
/**
* @var int
* @cvalue SOAP_1_2
*/
const SOAP_1_2 = UNKNOWN;
/**
* @var int
* @cvalue SOAP_PERSISTENCE_SESSION
*/
const SOAP_PERSISTENCE_SESSION = UNKNOWN;
/**
* @var int
* @cvalue SOAP_PERSISTENCE_REQUEST
*/
const SOAP_PERSISTENCE_REQUEST = UNKNOWN;
/**
* @var int
* @cvalue SOAP_FUNCTIONS_ALL
*/
const SOAP_FUNCTIONS_ALL = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ENCODED
*/
const SOAP_ENCODED = UNKNOWN;
/**
* @var int
* @cvalue SOAP_LITERAL
*/
const SOAP_LITERAL = UNKNOWN;
/**
* @var int
* @cvalue SOAP_RPC
*/
const SOAP_RPC = UNKNOWN;
/**
* @var int
* @cvalue SOAP_DOCUMENT
*/
const SOAP_DOCUMENT = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ACTOR_NEXT
*/
const SOAP_ACTOR_NEXT = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ACTOR_NONE
*/
const SOAP_ACTOR_NONE = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ACTOR_UNLIMATERECEIVER
*/
const SOAP_ACTOR_UNLIMATERECEIVER = UNKNOWN;
/**
* @var int
* @cvalue SOAP_COMPRESSION_ACCEPT
*/
const SOAP_COMPRESSION_ACCEPT = UNKNOWN;
/**
* @var int
* @cvalue SOAP_COMPRESSION_GZIP
*/
const SOAP_COMPRESSION_GZIP = UNKNOWN;
/**
* @var int
* @cvalue SOAP_COMPRESSION_DEFLATE
*/
const SOAP_COMPRESSION_DEFLATE = UNKNOWN;
/**
* @var int
* @cvalue SOAP_AUTHENTICATION_BASIC
*/
const SOAP_AUTHENTICATION_BASIC = UNKNOWN;
/**
* @var int
* @cvalue SOAP_AUTHENTICATION_DIGEST
*/
const SOAP_AUTHENTICATION_DIGEST = UNKNOWN;
/**
* @var int
* @cvalue UNKNOWN_TYPE
*/
const UNKNOWN_TYPE = UNKNOWN;
/**
* @var int
* @cvalue XSD_STRING
*/
const XSD_STRING = UNKNOWN;
/**
* @var int
* @cvalue XSD_BOOLEAN
*/
const XSD_BOOLEAN = UNKNOWN;
/**
* @var int
* @cvalue XSD_DECIMAL
*/
const XSD_DECIMAL = UNKNOWN;
/**
* @var int
* @cvalue XSD_FLOAT
*/
const XSD_FLOAT = UNKNOWN;
/**
* @var int
* @cvalue XSD_DOUBLE
*/
const XSD_DOUBLE = UNKNOWN;
/**
* @var int
* @cvalue XSD_DURATION
*/
const XSD_DURATION = UNKNOWN;
/**
* @var int
* @cvalue XSD_DATETIME
*/
const XSD_DATETIME = UNKNOWN;
/**
* @var int
* @cvalue XSD_TIME
*/
const XSD_TIME = UNKNOWN;
/**
* @var int
* @cvalue XSD_DATE
*/
const XSD_DATE = UNKNOWN;
/**
* @var int
* @cvalue XSD_GYEARMONTH
*/
const XSD_GYEARMONTH = UNKNOWN;
/**
* @var int
* @cvalue XSD_GYEAR
*/
const XSD_GYEAR = UNKNOWN;
/**
* @var int
* @cvalue XSD_GMONTHDAY
*/
const XSD_GMONTHDAY = UNKNOWN;
/**
* @var int
* @cvalue XSD_GDAY
*/
const XSD_GDAY = UNKNOWN;
/**
* @var int
* @cvalue XSD_GMONTH
*/
const XSD_GMONTH = UNKNOWN;
/**
* @var int
* @cvalue XSD_HEXBINARY
*/
const XSD_HEXBINARY = UNKNOWN;
/**
* @var int
* @cvalue XSD_BASE64BINARY
*/
const XSD_BASE64BINARY = UNKNOWN;
/**
* @var int
* @cvalue XSD_ANYURI
*/
const XSD_ANYURI = UNKNOWN;
/**
* @var int
* @cvalue XSD_QNAME
*/
const XSD_QNAME = UNKNOWN;
/**
* @var int
* @cvalue XSD_NOTATION
*/
const XSD_NOTATION = UNKNOWN;
/**
* @var int
* @cvalue XSD_NORMALIZEDSTRING
*/
const XSD_NORMALIZEDSTRING = UNKNOWN;
/**
* @var int
* @cvalue XSD_TOKEN
*/
const XSD_TOKEN = UNKNOWN;
/**
* @var int
* @cvalue XSD_LANGUAGE
*/
const XSD_LANGUAGE = UNKNOWN;
/**
* @var int
* @cvalue XSD_NMTOKEN
*/
const XSD_NMTOKEN = UNKNOWN;
/**
* @var int
* @cvalue XSD_NAME
*/
const XSD_NAME = UNKNOWN;
/**
* @var int
* @cvalue XSD_NCNAME
*/
const XSD_NCNAME = UNKNOWN;
/**
* @var int
* @cvalue XSD_ID
*/
const XSD_ID = UNKNOWN;
/**
* @var int
* @cvalue XSD_IDREF
*/
const XSD_IDREF = UNKNOWN;
/**
* @var int
* @cvalue XSD_IDREFS
*/
const XSD_IDREFS = UNKNOWN;
/**
* @var int
* @cvalue XSD_ENTITY
*/
const XSD_ENTITY = UNKNOWN;
/**
* @var int
* @cvalue XSD_ENTITIES
*/
const XSD_ENTITIES = UNKNOWN;
/**
* @var int
* @cvalue XSD_INTEGER
*/
const XSD_INTEGER = UNKNOWN;
/**
* @var int
* @cvalue XSD_NONPOSITIVEINTEGER
*/
const XSD_NONPOSITIVEINTEGER = UNKNOWN;
/**
* @var int
* @cvalue XSD_NEGATIVEINTEGER
*/
const XSD_NEGATIVEINTEGER = UNKNOWN;
/**
* @var int
* @cvalue XSD_LONG
*/
const XSD_LONG = UNKNOWN;
/**
* @var int
* @cvalue XSD_INT
*/
const XSD_INT = UNKNOWN;
/**
* @var int
* @cvalue XSD_SHORT
*/
const XSD_SHORT = UNKNOWN;
/**
* @var int
* @cvalue XSD_BYTE
*/
const XSD_BYTE = UNKNOWN;
/**
* @var int
* @cvalue XSD_NONNEGATIVEINTEGER
*/
const XSD_NONNEGATIVEINTEGER = UNKNOWN;
/**
* @var int
* @cvalue XSD_UNSIGNEDLONG
*/
const XSD_UNSIGNEDLONG = UNKNOWN;
/**
* @var int
* @cvalue XSD_UNSIGNEDINT
*/
const XSD_UNSIGNEDINT = UNKNOWN;
/**
* @var int
* @cvalue XSD_UNSIGNEDSHORT
*/
const XSD_UNSIGNEDSHORT = UNKNOWN;
/**
* @var int
* @cvalue XSD_UNSIGNEDBYTE
*/
const XSD_UNSIGNEDBYTE = UNKNOWN;
/**
* @var int
* @cvalue XSD_POSITIVEINTEGER
*/
const XSD_POSITIVEINTEGER = UNKNOWN;
/**
* @var int
* @cvalue XSD_NMTOKENS
*/
const XSD_NMTOKENS = UNKNOWN;
/**
* @var int
* @cvalue XSD_ANYTYPE
*/
const XSD_ANYTYPE = UNKNOWN;
/**
* @var int
* @cvalue XSD_ANYXML
*/
const XSD_ANYXML = UNKNOWN;
/**
* @var int
* @cvalue APACHE_MAP
*/
const APACHE_MAP = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ENC_OBJECT
*/
const SOAP_ENC_OBJECT = UNKNOWN;
/**
* @var int
* @cvalue SOAP_ENC_ARRAY
*/
const SOAP_ENC_ARRAY = UNKNOWN;
/**
* @var int
* @cvalue XSD_1999_TIMEINSTANT
*/
const XSD_1999_TIMEINSTANT = UNKNOWN;
/**
* @var string
* @cvalue XSD_NAMESPACE
*/
const XSD_NAMESPACE = UNKNOWN;
/**
* @var string
* @cvalue XSD_1999_NAMESPACE
*/
const XSD_1999_NAMESPACE = UNKNOWN;
/**
* @var int
* @cvalue SOAP_SINGLE_ELEMENT_ARRAYS
*/
const SOAP_SINGLE_ELEMENT_ARRAYS = UNKNOWN;
/**
* @var int
* @cvalue SOAP_WAIT_ONE_WAY_CALLS
*/
const SOAP_WAIT_ONE_WAY_CALLS = UNKNOWN;
/**
* @var int
* @cvalue SOAP_USE_XSI_ARRAY_TYPE
*/
const SOAP_USE_XSI_ARRAY_TYPE = UNKNOWN;
/**
* @var int
* @cvalue WSDL_CACHE_NONE
*/
const WSDL_CACHE_NONE = UNKNOWN;
/**
* @var int
* @cvalue WSDL_CACHE_DISK
*/
const WSDL_CACHE_DISK = UNKNOWN;
/**
* @var int
* @cvalue WSDL_CACHE_MEMORY
*/
const WSDL_CACHE_MEMORY = UNKNOWN;
/**
* @var int
* @cvalue WSDL_CACHE_BOTH
*/
const WSDL_CACHE_BOTH = UNKNOWN;
/* New SOAP SSL Method Constants */
/**
* @var int
* @cvalue SOAP_SSL_METHOD_TLS
*/
const SOAP_SSL_METHOD_TLS = UNKNOWN;
/**
* @var int
* @cvalue SOAP_SSL_METHOD_SSLv2
*/
const SOAP_SSL_METHOD_SSLv2 = UNKNOWN;
/**
* @var int
* @cvalue SOAP_SSL_METHOD_SSLv3
*/
const SOAP_SSL_METHOD_SSLv3 = UNKNOWN;
/**
* @var int
* @cvalue SOAP_SSL_METHOD_SSLv23
*/
const SOAP_SSL_METHOD_SSLv23 = UNKNOWN;
function use_soap_error_handler(bool $enable = true): bool {}
function is_soap_fault(mixed $object): bool {}
class SoapParam
{
public string $param_name;
public mixed $param_data;
public function __construct(mixed $data, string $name) {}
}
class SoapHeader
{
public string $namespace;
public string $name;
public mixed $data = null;
public bool $mustUnderstand;
public string|int|null $actor;
public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
}
class SoapFault extends Exception
{
public string $faultstring;
public ?string $faultcode = null;
public ?string $faultcodens = null;
public ?string $faultactor = null;
public mixed $detail = null;
public ?string $_name = null;
public mixed $headerfault = null;
public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
public function __toString(): string {}
}
class SoapVar
{
public int $enc_type;
public mixed $enc_value = null;
public ?string $enc_stype = null;
public ?string $enc_ns = null;
public ?string $enc_name = null;
public ?string $enc_namens = null;
public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
}
class SoapServer
{
private ?SoapFault $__soap_fault = null;
public function __construct(?string $wsdl, array $options = []) {}
/** @tentative-return-type */
public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = ""): void {}
/** @tentative-return-type */
public function addSoapHeader(SoapHeader $header): void {}
/** @tentative-return-type */
public function setPersistence(int $mode): void {}
/** @tentative-return-type */
public function setClass(string $class, mixed ...$args): void {}
/** @tentative-return-type */
public function setObject(object $object): void {}
/** @tentative-return-type */
public function getFunctions(): array {}
/**
* @param array|string|int $functions
* @tentative-return-type
*/
public function addFunction($functions): void {}
/** @tentative-return-type */
public function handle(?string $request = null): void {}
}
class SoapClient
{
private ?string $uri = null;
private ?int $style = null;
private ?int $use = null;
private ?string $location = null;
private bool $trace = false;
private ?int $compression = null;
private ?Soap\Sdl $sdl = null;
private ?array $typemap = null;
/** @var resource|null */
private $httpsocket = null;
private ?Soap\Url $httpurl = null;
private ?string $_login = null;
private ?string $_password = null;
private bool $_use_digest = false;
private ?string $_digest = null;
private ?string $_proxy_host = null;
private ?int $_proxy_port = null;
private ?string $_proxy_login = null;
private ?string $_proxy_password = null;
private bool $_exceptions = true;
private ?string $_encoding = null;
private ?array $_classmap = null;
private ?int $_features = null;
private int $_connection_timeout = 0;
/** @var resource|null */
private $_stream_context = null;
private ?string $_user_agent = null;
private bool $_keep_alive = true;
private ?int $_ssl_method = null;
private int $_soap_version;
private ?int $_use_proxy = null;
private array $_cookies = [];
private ?array $__default_headers = null;
private ?SoapFault $__soap_fault = null;
private ?string $__last_request = null;
private ?string $__last_response = null;
private ?string $__last_request_headers = null;
private ?string $__last_response_headers = null;
public function __construct(?string $wsdl, array $options = []) {}
/** @tentative-return-type */
public function __call(string $name, array $args): mixed {}
/**
* @param SoapHeader|array|null $inputHeaders
* @param array $outputHeaders
* @tentative-return-type
*/
public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null): mixed {}
/** @tentative-return-type */
public function __getFunctions(): ?array {}
/** @tentative-return-type */
public function __getTypes(): ?array {}
/** @tentative-return-type */
public function __getLastRequest(): ?string {}
/** @tentative-return-type */
public function __getLastResponse(): ?string {}
/** @tentative-return-type */
public function __getLastRequestHeaders(): ?string {}
/** @tentative-return-type */
public function __getLastResponseHeaders(): ?string {}
/** @tentative-return-type */
public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string {}
/** @tentative-return-type */
public function __setCookie(string $name, ?string $value = null): void {}
/** @tentative-return-type */
public function __getCookies(): array {}
/**
* @param SoapHeader|array|null $headers
* @tentative-return-type
*/
public function __setSoapHeaders($headers = null): bool {}
/** @tentative-return-type */
public function __setLocation(?string $location = null): ?string {}
}
}