# Notes on Working with SOAP

There are two ways that Composable Agentic Platform can be used in a Web Services environment. It can operate as an inline filter, just as it would for a normal HTTP request intercept.

Alternatively, it can be configured to act as a Web Service itself by installing a SOAP servlet into a new (or existing) web application and placing the filter in front of it. To facilitate this, a default servlet is provided named:

**`software.tomorrow.engine.server.RulesEngineSOAPServlet`**

This servlet will always provide a valid SOAP response regardless of the input provided to it. The precise response is as follows:

{% code overflow="wrap" %}
```xml
<?xml version="1.0" encoding="utf-8" ?>

- <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <response soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
 <return xsi:type="xsd:int">0</return>
                </response>
    </soapenv:Body>
    </soapenv:Envelope>
```
{% endcode %}
