| 1 |
<?php |
| 2 |
|
| 3 |
// Start of soap v. |
| 4 |
|
| 5 |
class SoapClient { |
| 6 |
|
| 7 |
/** |
| 8 |
* SoapClient constructor |
| 9 |
* @link http://www.php.net/manual/en/soapclient.soapclient.php |
| 10 |
* @param wsdl |
| 11 |
* @param options[optional] |
| 12 |
*/ |
| 13 |
public function SoapClient ($wsdl, $options) {} |
| 14 |
|
| 15 |
/** |
| 16 |
* Calls a SOAP function (deprecated) |
| 17 |
* @link http://www.php.net/manual/en/soapclient.call.php |
| 18 |
* @param function_name string |
| 19 |
* @param arguments string |
| 20 |
* @return mixed |
| 21 |
*/ |
| 22 |
public function __call ($function_name, $arguments) {} |
| 23 |
|
| 24 |
/** |
| 25 |
* Calls a SOAP function |
| 26 |
* @link http://www.php.net/manual/en/soapclient.soapcall.php |
| 27 |
* @param function_name string <p> |
| 28 |
* The name of the SOAP function to call. |
| 29 |
* </p> |
| 30 |
* @param arguments array <p> |
| 31 |
* An array of the arguments to pass to the function. This can be either |
| 32 |
* an ordered or an associative array. Note that most SOAP servers require |
| 33 |
* parameter names to be provided, in which case this must be an |
| 34 |
* associative array. |
| 35 |
* </p> |
| 36 |
* @param options array[optional] <p> |
| 37 |
* An associative array of options to pass to the client. |
| 38 |
* </p> |
| 39 |
* <p> |
| 40 |
* The location option is the URL of the remote Web service. |
| 41 |
* </p> |
| 42 |
* <p> |
| 43 |
* The uri option is the target namespace of the SOAP service. |
| 44 |
* </p> |
| 45 |
* <p> |
| 46 |
* The soapaction option is the action to call. |
| 47 |
* </p> |
| 48 |
* @param input_headers mixed[optional] <p> |
| 49 |
* An array of headers to be sent along with the SOAP request. |
| 50 |
* </p> |
| 51 |
* @param output_headers array[optional] <p> |
| 52 |
* If supplied, this array will be filled with the headers from the SOAP response. |
| 53 |
* </p> |
| 54 |
* @return mixed SOAP functions may return one, or multiple values. If only one value is returned |
| 55 |
* by the SOAP function, the return value of __soapCall will be |
| 56 |
* a simple value (e.g. an integer, a string, etc). If multiple values are |
| 57 |
* returned, __soapCall will return |
| 58 |
* an associative array of named output parameters. |
| 59 |
* </p> |
| 60 |
* <p> |
| 61 |
* On error, if the SoapClient object was constructed with the exceptions |
| 62 |
* option set to false, a SoapFault object will be returned. |
| 63 |
*/ |
| 64 |
public function __soapCall ($function_name, array $arguments, array $options = null, $input_headers = null, array &$output_headers = null) {} |
| 65 |
|
| 66 |
/** |
| 67 |
* Returns last SOAP request |
| 68 |
* @link http://www.php.net/manual/en/soapclient.getlastrequest.php |
| 69 |
* @return string The last SOAP request, as an XML string. |
| 70 |
*/ |
| 71 |
public function __getLastRequest () {} |
| 72 |
|
| 73 |
/** |
| 74 |
* Returns last SOAP response |
| 75 |
* @link http://www.php.net/manual/en/soapclient.getlastresponse.php |
| 76 |
* @return string The last SOAP response, as an XML string. |
| 77 |
*/ |
| 78 |
public function __getLastResponse () {} |
| 79 |
|
| 80 |
/** |
| 81 |
* Returns the SOAP headers from the last request |
| 82 |
* @link http://www.php.net/manual/en/soapclient.getlastrequestheaders.php |
| 83 |
* @return string The last SOAP request headers. |
| 84 |
*/ |
| 85 |
public function __getLastRequestHeaders () {} |
| 86 |
|
| 87 |
/** |
| 88 |
* Returns the SOAP headers from the last response |
| 89 |
* @link http://www.php.net/manual/en/soapclient.getlastresponseheaders.php |
| 90 |
* @return string The last SOAP response headers. |
| 91 |
*/ |
| 92 |
public function __getLastResponseHeaders () {} |
| 93 |
|
| 94 |
/** |
| 95 |
* Returns list of available SOAP functions |
| 96 |
* @link http://www.php.net/manual/en/soapclient.getfunctions.php |
| 97 |
* @return array The array of SOAP function prototypes, detailing the return type, |
| 98 |
* the function name and type-hinted paramaters. |
| 99 |
*/ |
| 100 |
public function __getFunctions () {} |
| 101 |
|
| 102 |
/** |
| 103 |
* Returns a list of SOAP types |
| 104 |
* @link http://www.php.net/manual/en/soapclient.gettypes.php |
| 105 |
* @return array The array of SOAP types, detailing all structures and types. |
| 106 |
*/ |
| 107 |
public function __getTypes () {} |
| 108 |
|
| 109 |
/** |
| 110 |
* Performs a SOAP request |
| 111 |
* @link http://www.php.net/manual/en/soapclient.dorequest.php |
| 112 |
* @param request string <p> |
| 113 |
* The XML SOAP request. |
| 114 |
* </p> |
| 115 |
* @param location string <p> |
| 116 |
* The URL to request. |
| 117 |
* </p> |
| 118 |
* @param action string <p> |
| 119 |
* The SOAP action. |
| 120 |
* </p> |
| 121 |
* @param version int <p> |
| 122 |
* The SOAP version. |
| 123 |
* </p> |
| 124 |
* @param one_way int[optional] <p> |
| 125 |
* If one_way is set to 1, this method returns nothing. |
| 126 |
* Use this where a response is not expected. |
| 127 |
* </p> |
| 128 |
* @return string The XML SOAP response. |
| 129 |
*/ |
| 130 |
public function __doRequest ($request, $location, $action, $version, $one_way = null) {} |
| 131 |
|
| 132 |
/** |
| 133 |
* The __setCookie purpose |
| 134 |
* @link http://www.php.net/manual/en/soapclient.setcookie.php |
| 135 |
* @param name string <p> |
| 136 |
* The name of the cookie. |
| 137 |
* </p> |
| 138 |
* @param value string[optional] <p> |
| 139 |
* The value of the cookie. If not specified, the cookie will be deleted. |
| 140 |
* </p> |
| 141 |
* @return void |
| 142 |
*/ |
| 143 |
public function __setCookie ($name, $value = null) {} |
| 144 |
|
| 145 |
public function __getCookies () {} |
| 146 |
|
| 147 |
/** |
| 148 |
* Sets the location of the Web service to use |
| 149 |
* @link http://www.php.net/manual/en/soapclient.setlocation.php |
| 150 |
* @param new_location string[optional] <p> |
| 151 |
* The new endpoint URL. |
| 152 |
* </p> |
| 153 |
* @return string The old endpoint URL. |
| 154 |
*/ |
| 155 |
public function __setLocation ($new_location = null) {} |
| 156 |
|
| 157 |
/** |
| 158 |
* Sets SOAP headers for subsequent calls |
| 159 |
* @link http://www.php.net/manual/en/soapclient.setsoapheaders.php |
| 160 |
* @param soapheaders mixed[optional] <p> |
| 161 |
* The headers to be set. It could be SoapHeader |
| 162 |
* object or array of SoapHeader objects. |
| 163 |
* If not specified or set to &null;, the headers will be deleted. |
| 164 |
* </p> |
| 165 |
* @return bool Returns true on success, false on failure. |
| 166 |
*/ |
| 167 |
public function __setSoapHeaders ($soapheaders = null) {} |
| 168 |
|
| 169 |
} |
| 170 |
|
| 171 |
class SoapVar { |
| 172 |
|
| 173 |
/** |
| 174 |
* SoapVar constructor |
| 175 |
* @link http://www.php.net/manual/en/soapvar.soapvar.php |
| 176 |
* @param data |
| 177 |
* @param encoding |
| 178 |
* @param type_name[optional] |
| 179 |
* @param type_namespace[optional] |
| 180 |
* @param node_name[optional] |
| 181 |
* @param node_namespace[optional] |
| 182 |
*/ |
| 183 |
public function SoapVar ($data, $encoding, $type_name, $type_namespace, $node_name, $node_namespace) {} |
| 184 |
|
| 185 |
} |
| 186 |
|
| 187 |
class SoapServer { |
| 188 |
|
| 189 |
/** |
| 190 |
* SoapServer constructor |
| 191 |
* @link http://www.php.net/manual/en/soapserver.soapserver.php |
| 192 |
* @param wsdl |
| 193 |
* @param options[optional] |
| 194 |
*/ |
| 195 |
public function SoapServer ($wsdl, $options) {} |
| 196 |
|
| 197 |
/** |
| 198 |
* Sets SoapServer persistence mode |
| 199 |
* @link http://www.php.net/manual/en/soapserver.setpersistence.php |
| 200 |
* @param mode int <p> |
| 201 |
* One of the SOAP_PERSISTENCE_XXX constants. |
| 202 |
* </p> |
| 203 |
* <p> |
| 204 |
* SOAP_PERSISTENCE_REQUEST - SoapServer data does not persist between |
| 205 |
* requests. This is the default behavior of any SoapServer |
| 206 |
* object after setClass is called. |
| 207 |
* </p> |
| 208 |
* <p> |
| 209 |
* SOAP_PERSISTENCE_SESSION - SoapServer data persists between requests. |
| 210 |
* This is accomplished by serializing the SoapServer class data into |
| 211 |
* $_SESSION['_bogus_session_name'], because of this |
| 212 |
* session_start must be called before this persistence mode is set. |
| 213 |
* </p> |
| 214 |
* @return void |
| 215 |
*/ |
| 216 |
public function setPersistence ($mode) {} |
| 217 |
|
| 218 |
/** |
| 219 |
* Sets the class which handles SOAP requests |
| 220 |
* @link http://www.php.net/manual/en/soapserver.setclass.php |
| 221 |
* @param class_name string <p> |
| 222 |
* The name of the exported class. |
| 223 |
* </p> |
| 224 |
* @param args mixed[optional] <p> |
| 225 |
* These optional parameters will be passed to the default class constructor |
| 226 |
* during object creation. |
| 227 |
* </p> |
| 228 |
* @param _ mixed[optional] |
| 229 |
* @return void |
| 230 |
*/ |
| 231 |
public function setClass ($class_name, $args = null, $_ = null) {} |
| 232 |
|
| 233 |
/** |
| 234 |
* Sets the object which will be used to handle SOAP requests |
| 235 |
* @link http://www.php.net/manual/en/soapserver.setobject.php |
| 236 |
* @param object object <p> |
| 237 |
* The object to handle the requests. |
| 238 |
* </p> |
| 239 |
* @return void |
| 240 |
*/ |
| 241 |
public function setObject ($object) {} |
| 242 |
|
| 243 |
/** |
| 244 |
* Adds one or more functions to handle SOAP requests |
| 245 |
* @link http://www.php.net/manual/en/soapserver.addfunction.php |
| 246 |
* @param functions mixed <p> |
| 247 |
* To export one function, pass the function name into this parameter as |
| 248 |
* a string. |
| 249 |
* </p> |
| 250 |
* <p> |
| 251 |
* To export several functions, pass an array of function names. |
| 252 |
* </p> |
| 253 |
* <p> |
| 254 |
* To export all the functions, pass a special constant SOAP_FUNCTIONS_ALL. |
| 255 |
* </p> |
| 256 |
* |
| 257 |
* <p> |
| 258 |
* functions must receive all input arguments in the same |
| 259 |
* order as defined in the WSDL file (They should not receive any output parameters |
| 260 |
* as arguments) and return one or more values. To return several values they must |
| 261 |
* return an array with named output parameters. |
| 262 |
* </p> |
| 263 |
* @return void |
| 264 |
*/ |
| 265 |
public function addFunction ($functions) {} |
| 266 |
|
| 267 |
/** |
| 268 |
* Returns list of defined functions |
| 269 |
* @link http://www.php.net/manual/en/soapserver.getfunctions.php |
| 270 |
* @return array An array of the defined functions. |
| 271 |
*/ |
| 272 |
public function getFunctions () {} |
| 273 |
|
| 274 |
/** |
| 275 |
* Handles a SOAP request |
| 276 |
* @link http://www.php.net/manual/en/soapserver.handle.php |
| 277 |
* @param soap_request string[optional] <p> |
| 278 |
* The SOAP request. If this argument is omitted, the request is assumed to be |
| 279 |
* in the raw POST data of the HTTP request. |
| 280 |
* </p> |
| 281 |
* @return void |
| 282 |
*/ |
| 283 |
public function handle ($soap_request = null) {} |
| 284 |
|
| 285 |
/** |
| 286 |
* Issue SoapServer fault indicating an error |
| 287 |
* @link http://www.php.net/manual/en/soapserver.fault.php |
| 288 |
* @param code string <p> |
| 289 |
* The error code to return |
| 290 |
* </p> |
| 291 |
* @param string string <p> |
| 292 |
* A brief description of the error |
| 293 |
* </p> |
| 294 |
* @param actor string[optional] <p> |
| 295 |
* A string identifying the actor that caused the fault. |
| 296 |
* </p> |
| 297 |
* @param details string[optional] <p> |
| 298 |
* More details of the fault |
| 299 |
* </p> |
| 300 |
* @param name string[optional] <p> |
| 301 |
* The name of the fault. This can be used to select a name from a WSDL file. |
| 302 |
* </p> |
| 303 |
* @return void |
| 304 |
*/ |
| 305 |
public function fault ($code, $string, $actor = null, $details = null, $name = null) {} |
| 306 |
|
| 307 |
/** |
| 308 |
* Add a SOAP header to the response |
| 309 |
* @link http://www.php.net/manual/en/soapserver.addsoapheader.php |
| 310 |
* @param object SoapHeader <p> |
| 311 |
* The header to be returned. |
| 312 |
* </p> |
| 313 |
* @return void |
| 314 |
*/ |
| 315 |
public function addSoapHeader (SoapHeader $object) {} |
| 316 |
|
| 317 |
} |
| 318 |
|
| 319 |
class SoapFault extends Exception { |
| 320 |
protected $message; |
| 321 |
protected $code; |
| 322 |
protected $file; |
| 323 |
protected $line; |
| 324 |
|
| 325 |
|
| 326 |
/** |
| 327 |
* SoapFault constructor |
| 328 |
* @link http://www.php.net/manual/en/soapfault.soapfault.php |
| 329 |
* @param faultcode |
| 330 |
* @param faultstring |
| 331 |
* @param faultactor[optional] |
| 332 |
* @param detail[optional] |
| 333 |
* @param faultname[optional] |
| 334 |
* @param headerfault[optional] |
| 335 |
*/ |
| 336 |
public function SoapFault ($faultcode, $faultstring, $faultactor, $detail, $faultname, $headerfault) {} |
| 337 |
|
| 338 |
/** |
| 339 |
* Obtain a string representation of a SoapFault |
| 340 |
* @link http://www.php.net/manual/en/soapfault.tostring.php |
| 341 |
* @return string A string describing the SoapFault. |
| 342 |
*/ |
| 343 |
public function __toString () {} |
| 344 |
|
| 345 |
final private function __clone () {} |
| 346 |
|
| 347 |
/** |
| 348 |
* @param message[optional] |
| 349 |
* @param code[optional] |
| 350 |
* @param previous[optional] |
| 351 |
*/ |
| 352 |
public function __construct ($message, $code, $previous) {} |
| 353 |
|
| 354 |
final public function getMessage () {} |
| 355 |
|
| 356 |
final public function getCode () {} |
| 357 |
|
| 358 |
final public function getFile () {} |
| 359 |
|
| 360 |
final public function getLine () {} |
| 361 |
|
| 362 |
final public function getTrace () {} |
| 363 |
|
| 364 |
final public function getPrevious () {} |
| 365 |
|
| 366 |
final public function getTraceAsString () {} |
| 367 |
|
| 368 |
} |
| 369 |
|
| 370 |
class SoapParam { |
| 371 |
|
| 372 |
/** |
| 373 |
* SoapParam constructor |
| 374 |
* @link http://www.php.net/manual/en/soapparam.soapparam.php |
| 375 |
* @param data |
| 376 |
* @param name |
| 377 |
*/ |
| 378 |
public function SoapParam ($data, $name) {} |
| 379 |
|
| 380 |
} |
| 381 |
|
| 382 |
class SoapHeader { |
| 383 |
|
| 384 |
/** |
| 385 |
* SoapHeader constructor |
| 386 |
* @link http://www.php.net/manual/en/soapheader.soapheader.php |
| 387 |
* @param namespace |
| 388 |
* @param name |
| 389 |
* @param data[optional] |
| 390 |
* @param mustunderstand[optional] |
| 391 |
* @param actor[optional] |
| 392 |
*/ |
| 393 |
public function SoapHeader ($namespace, $name, $data, $mustunderstand, $actor) {} |
| 394 |
|
| 395 |
} |
| 396 |
|
| 397 |
/** |
| 398 |
* Set whether to use the SOAP error handler |
| 399 |
* @link http://www.php.net/manual/en/function.use-soap-error-handler.php |
| 400 |
* @param handler bool[optional] <p> |
| 401 |
* Set to true to send error details to clients. |
| 402 |
* </p> |
| 403 |
* @return bool the original value. |
| 404 |
*/ |
| 405 |
function use_soap_error_handler ($handler = null) {} |
| 406 |
|
| 407 |
/** |
| 408 |
* Checks if a SOAP call has failed |
| 409 |
* @link http://www.php.net/manual/en/function.is-soap-fault.php |
| 410 |
* @param object mixed <p> |
| 411 |
* The object to test. |
| 412 |
* </p> |
| 413 |
* @return bool This will return true on error, and false otherwise. |
| 414 |
*/ |
| 415 |
function is_soap_fault ($object) {} |
| 416 |
|
| 417 |
define ('SOAP_1_1', 1); |
| 418 |
define ('SOAP_1_2', 2); |
| 419 |
define ('SOAP_PERSISTENCE_SESSION', 1); |
| 420 |
define ('SOAP_PERSISTENCE_REQUEST', 2); |
| 421 |
define ('SOAP_FUNCTIONS_ALL', 999); |
| 422 |
define ('SOAP_ENCODED', 1); |
| 423 |
define ('SOAP_LITERAL', 2); |
| 424 |
define ('SOAP_RPC', 1); |
| 425 |
define ('SOAP_DOCUMENT', 2); |
| 426 |
define ('SOAP_ACTOR_NEXT', 1); |
| 427 |
define ('SOAP_ACTOR_NONE', 2); |
| 428 |
define ('SOAP_ACTOR_UNLIMATERECEIVER', 3); |
| 429 |
define ('SOAP_COMPRESSION_ACCEPT', 32); |
| 430 |
define ('SOAP_COMPRESSION_GZIP', 0); |
| 431 |
define ('SOAP_COMPRESSION_DEFLATE', 16); |
| 432 |
define ('SOAP_AUTHENTICATION_BASIC', 0); |
| 433 |
define ('SOAP_AUTHENTICATION_DIGEST', 1); |
| 434 |
define ('UNKNOWN_TYPE', 999998); |
| 435 |
define ('XSD_STRING', 101); |
| 436 |
define ('XSD_BOOLEAN', 102); |
| 437 |
define ('XSD_DECIMAL', 103); |
| 438 |
define ('XSD_FLOAT', 104); |
| 439 |
define ('XSD_DOUBLE', 105); |
| 440 |
define ('XSD_DURATION', 106); |
| 441 |
define ('XSD_DATETIME', 107); |
| 442 |
define ('XSD_TIME', 108); |
| 443 |
define ('XSD_DATE', 109); |
| 444 |
define ('XSD_GYEARMONTH', 110); |
| 445 |
define ('XSD_GYEAR', 111); |
| 446 |
define ('XSD_GMONTHDAY', 112); |
| 447 |
define ('XSD_GDAY', 113); |
| 448 |
define ('XSD_GMONTH', 114); |
| 449 |
define ('XSD_HEXBINARY', 115); |
| 450 |
define ('XSD_BASE64BINARY', 116); |
| 451 |
define ('XSD_ANYURI', 117); |
| 452 |
define ('XSD_QNAME', 118); |
| 453 |
define ('XSD_NOTATION', 119); |
| 454 |
define ('XSD_NORMALIZEDSTRING', 120); |
| 455 |
define ('XSD_TOKEN', 121); |
| 456 |
define ('XSD_LANGUAGE', 122); |
| 457 |
define ('XSD_NMTOKEN', 123); |
| 458 |
define ('XSD_NAME', 124); |
| 459 |
define ('XSD_NCNAME', 125); |
| 460 |
define ('XSD_ID', 126); |
| 461 |
define ('XSD_IDREF', 127); |
| 462 |
define ('XSD_IDREFS', 128); |
| 463 |
define ('XSD_ENTITY', 129); |
| 464 |
define ('XSD_ENTITIES', 130); |
| 465 |
define ('XSD_INTEGER', 131); |
| 466 |
define ('XSD_NONPOSITIVEINTEGER', 132); |
| 467 |
define ('XSD_NEGATIVEINTEGER', 133); |
| 468 |
define ('XSD_LONG', 134); |
| 469 |
define ('XSD_INT', 135); |
| 470 |
define ('XSD_SHORT', 136); |
| 471 |
define ('XSD_BYTE', 137); |
| 472 |
define ('XSD_NONNEGATIVEINTEGER', 138); |
| 473 |
define ('XSD_UNSIGNEDLONG', 139); |
| 474 |
define ('XSD_UNSIGNEDINT', 140); |
| 475 |
define ('XSD_UNSIGNEDSHORT', 141); |
| 476 |
define ('XSD_UNSIGNEDBYTE', 142); |
| 477 |
define ('XSD_POSITIVEINTEGER', 143); |
| 478 |
define ('XSD_NMTOKENS', 144); |
| 479 |
define ('XSD_ANYTYPE', 145); |
| 480 |
define ('XSD_ANYXML', 147); |
| 481 |
define ('APACHE_MAP', 200); |
| 482 |
define ('SOAP_ENC_OBJECT', 301); |
| 483 |
define ('SOAP_ENC_ARRAY', 300); |
| 484 |
define ('XSD_1999_TIMEINSTANT', 401); |
| 485 |
define ('XSD_NAMESPACE', "http://www.w3.org/2001/XMLSchema"); |
| 486 |
define ('XSD_1999_NAMESPACE', "http://www.w3.org/1999/XMLSchema"); |
| 487 |
define ('SOAP_SINGLE_ELEMENT_ARRAYS', 1); |
| 488 |
define ('SOAP_WAIT_ONE_WAY_CALLS', 2); |
| 489 |
define ('SOAP_USE_XSI_ARRAY_TYPE', 4); |
| 490 |
define ('WSDL_CACHE_NONE', 0); |
| 491 |
define ('WSDL_CACHE_DISK', 1); |
| 492 |
define ('WSDL_CACHE_MEMORY', 2); |
| 493 |
define ('WSDL_CACHE_BOTH', 3); |
| 494 |
|
| 495 |
/** |
| 496 |
* Since PHP 5.5.0. |
| 497 |
* @link http://www.php.net/manual/en/soap.constants.php |
| 498 |
*/ |
| 499 |
define ('SOAP_SSL_METHOD_TLS', 0); |
| 500 |
|
| 501 |
/** |
| 502 |
* Since PHP 5.5.0. |
| 503 |
* @link http://www.php.net/manual/en/soap.constants.php |
| 504 |
*/ |
| 505 |
define ('SOAP_SSL_METHOD_SSLv2', 1); |
| 506 |
|
| 507 |
/** |
| 508 |
* Since PHP 5.5.0. |
| 509 |
* @link http://www.php.net/manual/en/soap.constants.php |
| 510 |
*/ |
| 511 |
define ('SOAP_SSL_METHOD_SSLv3', 2); |
| 512 |
|
| 513 |
/** |
| 514 |
* Since PHP 5.5.0. |
| 515 |
* @link http://www.php.net/manual/en/soap.constants.php |
| 516 |
*/ |
| 517 |
define ('SOAP_SSL_METHOD_SSLv23', 3); |
| 518 |
|
| 519 |
// End of soap v. |
| 520 |
?> |