---
title: "SOAP.Client"
description: "SOAP client prototype."
canonical_url: "https://www.zeyos.com/zymba/ref/soap/soap-client"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/soap/soap-client.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# SOAP.Client

## SOAP.Client

```
object @SOAP.Client(@Base) {
	construct(string $wsdl, string $username, string $password, int $timeout) {}
	bind(string $operation): function {}
	call(string $operation, ...$arguments): mixed {}
	listOperations(): object {}
	listTypes(): object {}
	setCookie(string $name, string $value): $this {}
	setLocation(string $url): $this {}
	setTimeout(int $timeout): $this {}
}
```

**SOAP client prototype.**

### Prototype

**[Base](#)**

## Methods


### `$this.construct()`


```code
$this.construct(string $wsdl, string $username, string $password, int $timeout): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| wsdl | `string`  |  | "" |
| username | `string`  |  | "" |
| password | `string`  |  | "" |
| timeout | `int`  |  | 60 |




### `$this.bind()`


```code
$this.bind(string $operation): function
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| operation | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `function` |  |




### `$this.call()`


```code
$this.call(string $operation, variadic $arguments): mixed
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| operation | `string`  |  | "" |
| arguments | `variadic`  |  | ... |

##### Returns

| Type | Value |
| --- | ---  |
| `mixed` |  |




### `$this.listOperations()`


```code
$this.listOperations(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [signature, ...] |




### `$this.listTypes()`


```code
$this.listTypes(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [signature, ...] |




### `$this.setCookie()`


```code
$this.setCookie(string $name, string $value): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| name | `string`  |  | "" |
| value | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.setLocation()`


```code
$this.setLocation(string $url): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| url | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.setTimeout()`


```code
$this.setTimeout(int $timeout): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| timeout | `int`  |  | 60 |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |
