# SOAP Configuration

The `soap` plugin converts JSON requests into SOAP operations from a WSDL definition and returns upstream SOAP responses as JSON.<!-- --> <!-- -->Configuration covers static settings and plugin parameters.

## Static Configurations[​](#static-configurations "Direct link to Static Configurations")

The SOAP proxy endpoint and timeout are gateway-level settings. Configure an endpoint that every gateway instance can reach, then reload or roll out the gateway so the static configuration takes effect.

* Host or Docker
* Kubernetes (Helm)

Add the SOAP proxy address to the persistent `config.yaml` used by the gateway deployment. The following endpoint matches the Docker setup in the [example](https://docs.api7.ai/hub/soap.md#set-up-soap-proxy):

config.yaml

```
plugin_attr:

  soap:

    endpoint: http://soap-proxy:5000

    timeout: 3000
```

Reload the gateway after updating its configuration source:

```
apisix reload
```

Add the sidecar and plugin attributes to the complete, source-controlled values file used by the API7 Gateway release:

values.yaml

```
soapProxy:

  enabled: true

  image:

    repository: api7/soap-proxy

    tag: 1.0.0

pluginAttrs:

  soap:

    endpoint: http://127.0.0.1:5000

    timeout: 3000
```

Set the release details, including the chart version already used by the deployment:

```
export GATEWAY_RELEASE=replace-with-gateway-release-name

export GATEWAY_NAMESPACE=replace-with-gateway-namespace

export GATEWAY_CHART_VERSION=replace-with-installed-chart-version
```

Apply the complete values file without changing the chart version:

```
helm upgrade "$GATEWAY_RELEASE" api7/gateway \

  --namespace "$GATEWAY_NAMESPACE" \

  --version "$GATEWAY_CHART_VERSION" \

  -f values.yaml
```

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

* wsdl\_url

  string

  required

  ***

  URL of the WSDL document that defines the SOAP operations and upstream service endpoint.

* max\_req\_body\_size

  integer

  default: `67108864`

  valid value:

  greater than or equal to 1

  ***

  Maximum request body size, in bytes, that the plugin buffers in memory. A larger body is rejected with HTTP 400 before SOAP conversion. Introduced in API7 Enterprise 3.9.17 and 3.10.4.

* keepalive

  object

  ***

  Connection reuse settings for requests from the gateway to the SOAP proxy. If omitted, the plugin enables keepalive with a 50-second idle timeout and a pool size of 10.

  * enable

    boolean

    default: `true`

    ***

    Whether to reuse connections to the SOAP proxy. Current released runtimes always enable reuse, so setting this field to `false` has no effect.

  * timeout

    integer

    default: `30`

    valid value:

    greater than or equal to 10

    ***

    Maximum idle time, in seconds, for a reusable connection when `keepalive` is configured.

  * pool

    integer

    default: `30`

    valid value:

    greater than or equal to 5

    ***

    Maximum number of reusable SOAP proxy connections retained by each worker when `keepalive` is configured.
