The SoapClient class

From Get docs
Php/docs/latest/class.soapclient


The SoapClient class

Introduction

(PHP 5, PHP 7, PHP 8)

The SoapClient class provides a client for » SOAP 1.1, » SOAP 1.2 servers. It can be used in WSDL or non-WSDL mode.

Class synopsis

class SoapClient {

/* Methods */

public __construct(?string $wsdl, array $options = [])

public __call(string $name, array $args): mixed
public __doRequest(
 string $request,
 string $location,
 string $action,
 int $version,
 bool $oneWay = false
): ?string
public __getCookies(): array
public __getFunctions(): ?array
public __getLastRequest(): ?string
public __getLastRequestHeaders(): ?string
public __getLastResponse(): ?string
public __getLastResponseHeaders(): ?string
public __getTypes(): ?array
public __setCookie(string $name, ?string $value = null): void
public __setLocation(?string $location = null): ?string
public __setSoapHeaders(SoapHeader|array|null $headers = null): bool
public __soapCall(
 string $name,
 array $args,
 ?array $options = null,
 SoapHeader|array|null $inputHeaders = null,
 array &$outputHeaders = null
): mixed

}

Table of Contents


© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.soapclient.php