# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomorrowx.com/cap/product-reference/agent-details/notes-on-working-with-soap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
