xref: /PHP-8.2/ext/soap/soap.stub.php (revision a05a6c55)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @var int
7 * @cvalue SOAP_1_1
8 */
9const SOAP_1_1 = UNKNOWN;
10/**
11 * @var int
12 * @cvalue SOAP_1_2
13 */
14const SOAP_1_2 = UNKNOWN;
15/**
16 * @var int
17 * @cvalue SOAP_PERSISTENCE_SESSION
18 */
19const SOAP_PERSISTENCE_SESSION = UNKNOWN;
20/**
21 * @var int
22 * @cvalue SOAP_PERSISTENCE_REQUEST
23 */
24const SOAP_PERSISTENCE_REQUEST = UNKNOWN;
25/**
26 * @var int
27 * @cvalue SOAP_FUNCTIONS_ALL
28 */
29const SOAP_FUNCTIONS_ALL = UNKNOWN;
30
31/**
32 * @var int
33 * @cvalue SOAP_ENCODED
34 */
35const SOAP_ENCODED = UNKNOWN;
36/**
37 * @var int
38 * @cvalue SOAP_LITERAL
39 */
40const SOAP_LITERAL = UNKNOWN;
41
42/**
43 * @var int
44 * @cvalue SOAP_RPC
45 */
46const SOAP_RPC = UNKNOWN;
47/**
48 * @var int
49 * @cvalue SOAP_DOCUMENT
50 */
51const SOAP_DOCUMENT = UNKNOWN;
52
53/**
54 * @var int
55 * @cvalue SOAP_ACTOR_NEXT
56 */
57const SOAP_ACTOR_NEXT = UNKNOWN;
58/**
59 * @var int
60 * @cvalue SOAP_ACTOR_NONE
61 */
62const SOAP_ACTOR_NONE = UNKNOWN;
63/**
64 * @var int
65 * @cvalue SOAP_ACTOR_UNLIMATERECEIVER
66 */
67const SOAP_ACTOR_UNLIMATERECEIVER = UNKNOWN;
68
69/**
70 * @var int
71 * @cvalue SOAP_COMPRESSION_ACCEPT
72 */
73const SOAP_COMPRESSION_ACCEPT = UNKNOWN;
74/**
75 * @var int
76 * @cvalue SOAP_COMPRESSION_GZIP
77 */
78const SOAP_COMPRESSION_GZIP = UNKNOWN;
79/**
80 * @var int
81 * @cvalue SOAP_COMPRESSION_DEFLATE
82 */
83const SOAP_COMPRESSION_DEFLATE = UNKNOWN;
84
85/**
86 * @var int
87 * @cvalue SOAP_AUTHENTICATION_BASIC
88 */
89const SOAP_AUTHENTICATION_BASIC = UNKNOWN;
90/**
91 * @var int
92 * @cvalue SOAP_AUTHENTICATION_DIGEST
93 */
94const SOAP_AUTHENTICATION_DIGEST = UNKNOWN;
95
96/**
97 * @var int
98 * @cvalue UNKNOWN_TYPE
99 */
100const UNKNOWN_TYPE = UNKNOWN;
101
102/**
103 * @var int
104 * @cvalue XSD_STRING
105 */
106const XSD_STRING = UNKNOWN;
107/**
108 * @var int
109 * @cvalue XSD_BOOLEAN
110 */
111const XSD_BOOLEAN = UNKNOWN;
112/**
113 * @var int
114 * @cvalue XSD_DECIMAL
115 */
116const XSD_DECIMAL = UNKNOWN;
117/**
118 * @var int
119 * @cvalue XSD_FLOAT
120 */
121const XSD_FLOAT = UNKNOWN;
122/**
123 * @var int
124 * @cvalue XSD_DOUBLE
125 */
126const XSD_DOUBLE = UNKNOWN;
127/**
128 * @var int
129 * @cvalue XSD_DURATION
130 */
131const XSD_DURATION = UNKNOWN;
132/**
133 * @var int
134 * @cvalue XSD_DATETIME
135 */
136const XSD_DATETIME = UNKNOWN;
137/**
138 * @var int
139 * @cvalue XSD_TIME
140 */
141const XSD_TIME = UNKNOWN;
142/**
143 * @var int
144 * @cvalue XSD_DATE
145 */
146const XSD_DATE = UNKNOWN;
147/**
148 * @var int
149 * @cvalue XSD_GYEARMONTH
150 */
151const XSD_GYEARMONTH = UNKNOWN;
152/**
153 * @var int
154 * @cvalue XSD_GYEAR
155 */
156const XSD_GYEAR = UNKNOWN;
157/**
158 * @var int
159 * @cvalue XSD_GMONTHDAY
160 */
161const XSD_GMONTHDAY = UNKNOWN;
162/**
163 * @var int
164 * @cvalue XSD_GDAY
165 */
166const XSD_GDAY = UNKNOWN;
167/**
168 * @var int
169 * @cvalue XSD_GMONTH
170 */
171const XSD_GMONTH = UNKNOWN;
172/**
173 * @var int
174 * @cvalue XSD_HEXBINARY
175 */
176const XSD_HEXBINARY = UNKNOWN;
177/**
178 * @var int
179 * @cvalue XSD_BASE64BINARY
180 */
181const XSD_BASE64BINARY = UNKNOWN;
182/**
183 * @var int
184 * @cvalue XSD_ANYURI
185 */
186const XSD_ANYURI = UNKNOWN;
187/**
188 * @var int
189 * @cvalue XSD_QNAME
190 */
191const XSD_QNAME = UNKNOWN;
192/**
193 * @var int
194 * @cvalue XSD_NOTATION
195 */
196const XSD_NOTATION = UNKNOWN;
197
198/**
199 * @var int
200 * @cvalue XSD_NORMALIZEDSTRING
201 */
202const XSD_NORMALIZEDSTRING = UNKNOWN;
203/**
204 * @var int
205 * @cvalue XSD_TOKEN
206 */
207const XSD_TOKEN = UNKNOWN;
208/**
209 * @var int
210 * @cvalue XSD_LANGUAGE
211 */
212const XSD_LANGUAGE = UNKNOWN;
213/**
214 * @var int
215 * @cvalue XSD_NMTOKEN
216 */
217const XSD_NMTOKEN = UNKNOWN;
218/**
219 * @var int
220 * @cvalue XSD_NAME
221 */
222const XSD_NAME = UNKNOWN;
223/**
224 * @var int
225 * @cvalue XSD_NCNAME
226 */
227const XSD_NCNAME = UNKNOWN;
228/**
229 * @var int
230 * @cvalue XSD_ID
231 */
232const XSD_ID = UNKNOWN;
233/**
234 * @var int
235 * @cvalue XSD_IDREF
236 */
237const XSD_IDREF = UNKNOWN;
238/**
239 * @var int
240 * @cvalue XSD_IDREFS
241 */
242const XSD_IDREFS = UNKNOWN;
243/**
244 * @var int
245 * @cvalue XSD_ENTITY
246 */
247const XSD_ENTITY = UNKNOWN;
248/**
249 * @var int
250 * @cvalue XSD_ENTITIES
251 */
252const XSD_ENTITIES = UNKNOWN;
253/**
254 * @var int
255 * @cvalue XSD_INTEGER
256 */
257const XSD_INTEGER = UNKNOWN;
258/**
259 * @var int
260 * @cvalue XSD_NONPOSITIVEINTEGER
261 */
262const XSD_NONPOSITIVEINTEGER = UNKNOWN;
263/**
264 * @var int
265 * @cvalue XSD_NEGATIVEINTEGER
266 */
267const XSD_NEGATIVEINTEGER = UNKNOWN;
268/**
269 * @var int
270 * @cvalue XSD_LONG
271 */
272const XSD_LONG = UNKNOWN;
273/**
274 * @var int
275 * @cvalue XSD_INT
276 */
277const XSD_INT = UNKNOWN;
278/**
279 * @var int
280 * @cvalue XSD_SHORT
281 */
282const XSD_SHORT = UNKNOWN;
283/**
284 * @var int
285 * @cvalue XSD_BYTE
286 */
287const XSD_BYTE = UNKNOWN;
288/**
289 * @var int
290 * @cvalue XSD_NONNEGATIVEINTEGER
291 */
292const XSD_NONNEGATIVEINTEGER = UNKNOWN;
293/**
294 * @var int
295 * @cvalue XSD_UNSIGNEDLONG
296 */
297const XSD_UNSIGNEDLONG = UNKNOWN;
298/**
299 * @var int
300 * @cvalue XSD_UNSIGNEDINT
301 */
302const XSD_UNSIGNEDINT = UNKNOWN;
303/**
304 * @var int
305 * @cvalue XSD_UNSIGNEDSHORT
306 */
307const XSD_UNSIGNEDSHORT = UNKNOWN;
308/**
309 * @var int
310 * @cvalue XSD_UNSIGNEDBYTE
311 */
312const XSD_UNSIGNEDBYTE = UNKNOWN;
313/**
314 * @var int
315 * @cvalue XSD_POSITIVEINTEGER
316 */
317const XSD_POSITIVEINTEGER = UNKNOWN;
318/**
319 * @var int
320 * @cvalue XSD_NMTOKENS
321 */
322const XSD_NMTOKENS = UNKNOWN;
323/**
324 * @var int
325 * @cvalue XSD_ANYTYPE
326 */
327const XSD_ANYTYPE = UNKNOWN;
328/**
329 * @var int
330 * @cvalue XSD_ANYXML
331 */
332const XSD_ANYXML = UNKNOWN;
333
334/**
335 * @var int
336 * @cvalue APACHE_MAP
337 */
338const APACHE_MAP = UNKNOWN;
339
340/**
341 * @var int
342 * @cvalue SOAP_ENC_OBJECT
343 */
344const SOAP_ENC_OBJECT = UNKNOWN;
345/**
346 * @var int
347 * @cvalue SOAP_ENC_ARRAY
348 */
349const SOAP_ENC_ARRAY = UNKNOWN;
350
351/**
352 * @var int
353 * @cvalue XSD_1999_TIMEINSTANT
354 */
355const XSD_1999_TIMEINSTANT = UNKNOWN;
356
357/**
358 * @var string
359 * @cvalue XSD_NAMESPACE
360 */
361const XSD_NAMESPACE = UNKNOWN;
362/**
363 * @var string
364 * @cvalue XSD_1999_NAMESPACE
365 */
366const XSD_1999_NAMESPACE = UNKNOWN;
367
368/**
369 * @var int
370 * @cvalue SOAP_SINGLE_ELEMENT_ARRAYS
371 */
372const SOAP_SINGLE_ELEMENT_ARRAYS = UNKNOWN;
373/**
374 * @var int
375 * @cvalue SOAP_WAIT_ONE_WAY_CALLS
376 */
377const SOAP_WAIT_ONE_WAY_CALLS = UNKNOWN;
378/**
379 * @var int
380 * @cvalue SOAP_USE_XSI_ARRAY_TYPE
381 */
382const SOAP_USE_XSI_ARRAY_TYPE = UNKNOWN;
383
384/**
385 * @var int
386 * @cvalue WSDL_CACHE_NONE
387 */
388const WSDL_CACHE_NONE = UNKNOWN;
389/**
390 * @var int
391 * @cvalue WSDL_CACHE_DISK
392 */
393const WSDL_CACHE_DISK = UNKNOWN;
394/**
395 * @var int
396 * @cvalue WSDL_CACHE_MEMORY
397 */
398const WSDL_CACHE_MEMORY = UNKNOWN;
399/**
400 * @var int
401 * @cvalue WSDL_CACHE_BOTH
402 */
403const WSDL_CACHE_BOTH = UNKNOWN;
404
405/* New SOAP SSL Method Constants */
406
407/**
408 * @var int
409 * @cvalue SOAP_SSL_METHOD_TLS
410 */
411const SOAP_SSL_METHOD_TLS = UNKNOWN;
412/**
413 * @var int
414 * @cvalue SOAP_SSL_METHOD_SSLv2
415 */
416const SOAP_SSL_METHOD_SSLv2 = UNKNOWN;
417/**
418 * @var int
419 * @cvalue SOAP_SSL_METHOD_SSLv3
420 */
421const SOAP_SSL_METHOD_SSLv3 = UNKNOWN;
422/**
423 * @var int
424 * @cvalue SOAP_SSL_METHOD_SSLv23
425 */
426const SOAP_SSL_METHOD_SSLv23 = UNKNOWN;
427
428function use_soap_error_handler(bool $enable = true): bool {}
429
430function is_soap_fault(mixed $object): bool {}
431
432class SoapParam
433{
434    public string $param_name;
435    public mixed $param_data;
436
437    public function __construct(mixed $data, string $name) {}
438}
439
440class SoapHeader
441{
442    public string $namespace;
443    public string $name;
444    public mixed $data = null;
445    public bool $mustUnderstand;
446    public string|int|null $actor;
447
448    public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
449}
450
451class SoapFault extends Exception
452{
453    public string $faultstring;
454    public ?string $faultcode = null;
455    public ?string $faultcodens = null;
456    public ?string $faultactor = null;
457    public mixed $detail = null;
458    public ?string $_name = null;
459    public mixed $headerfault = null;
460
461    public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
462
463    public function __toString(): string {}
464}
465
466class SoapVar
467{
468    public int $enc_type;
469    public mixed $enc_value = null;
470    public ?string $enc_stype = null;
471    public ?string $enc_ns = null;
472    public ?string $enc_name = null;
473    public ?string $enc_namens = null;
474
475    public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
476}
477
478class SoapServer
479{
480    private ?SoapFault $__soap_fault = null;
481
482    public function __construct(?string $wsdl, array $options = []) {}
483
484    /** @tentative-return-type */
485    public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = ""): void {}
486
487    /** @tentative-return-type */
488    public function addSoapHeader(SoapHeader $header): void {}
489
490    /** @tentative-return-type */
491    public function setPersistence(int $mode): void {}
492
493    /** @tentative-return-type */
494    public function setClass(string $class, mixed ...$args): void {}
495
496    /** @tentative-return-type */
497    public function setObject(object $object): void {}
498
499    /** @tentative-return-type */
500    public function getFunctions(): array {}
501
502    /**
503     * @param array|string|int $functions
504     * @tentative-return-type
505     */
506    public function addFunction($functions): void {}
507
508    /** @tentative-return-type */
509    public function handle(?string $request = null): void {}
510}
511
512class SoapClient
513{
514    private ?string $uri = null;
515    private ?int $style = null;
516    private ?int $use = null;
517    private ?string $location = null;
518    private bool $trace = false;
519    private ?int $compression = null;
520    /** @var resource|null */
521    private $sdl = null;
522    /** @var resource|null */
523    private $typemap = null;
524    /** @var resource|null */
525    private $httpsocket = null;
526    /** @var resource|null */
527    private $httpurl = null;
528
529    private ?string $_login = null;
530    private ?string $_password = null;
531    private bool $_use_digest = false;
532    private ?string $_digest = null;
533    private ?string $_proxy_host = null;
534    private ?int $_proxy_port = null;
535    private ?string $_proxy_login = null;
536    private ?string $_proxy_password = null;
537    private bool $_exceptions = true;
538    private ?string $_encoding = null;
539    private ?array $_classmap = null;
540    private ?int $_features = null;
541    private int $_connection_timeout = 0;
542    /** @var resource|null */
543    private $_stream_context = null;
544    private ?string $_user_agent = null;
545    private bool $_keep_alive = true;
546    private ?int $_ssl_method = null;
547    private int $_soap_version;
548    private ?int $_use_proxy = null;
549    private array $_cookies = [];
550    private ?array $__default_headers = null;
551    private ?SoapFault $__soap_fault = null;
552    private ?string $__last_request = null;
553    private ?string $__last_response = null;
554    private ?string $__last_request_headers = null;
555    private ?string $__last_response_headers = null;
556
557    public function __construct(?string $wsdl, array $options = []) {}
558
559    /** @tentative-return-type */
560    public function __call(string $name, array $args): mixed {}
561
562    /**
563     * @param SoapHeader|array|null $inputHeaders
564     * @param array $outputHeaders
565     * @tentative-return-type
566     */
567    public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null): mixed {}
568
569    /** @tentative-return-type */
570    public function __getFunctions(): ?array {}
571
572    /** @tentative-return-type */
573    public function __getTypes(): ?array {}
574
575    /** @tentative-return-type */
576    public function __getLastRequest(): ?string {}
577
578    /** @tentative-return-type */
579    public function __getLastResponse(): ?string {}
580
581    /** @tentative-return-type */
582    public function __getLastRequestHeaders(): ?string {}
583
584    /** @tentative-return-type */
585    public function __getLastResponseHeaders(): ?string {}
586
587    /** @tentative-return-type */
588    public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string {}
589
590    /** @tentative-return-type */
591    public function __setCookie(string $name, ?string $value = null): void {}
592
593    /** @tentative-return-type */
594    public function __getCookies(): array {}
595
596    /**
597     * @param SoapHeader|array|null $headers
598     * @tentative-return-type
599     */
600    public function __setSoapHeaders($headers = null): bool {}
601
602    /** @tentative-return-type */
603    public function __setLocation(?string $location = null): ?string {}
604}
605