---
title: 'Requests and responses'
url: 'https://documentation.netstorming.net/api-reference/basic-rules/requests-and-responses'
markdown: 'https://documentation.netstorming.net/api-reference/basic-rules/requests-and-responses.md'
date: '2026-11-10'
description: 'Requests are held by the query tag with the attribute type holding the type of the request: <?xml version="1.0" encoding="UTF-8"?> <envelope> <header> <actor>test</actor> <user>test</user> <password>test…'
taxonomy:
  category:
    - docs
---

# Requests and responses

[](#)  [ API reference ](https://documentation.netstorming.net/api-reference)     [ Basic rules ](https://documentation.netstorming.net/api-reference/basic-rules)      Requests and responses    

Requests are held by the **query** tag with the attribute **type** holding the type of the request:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <actor>test</actor>
        <user>test</user>
        <password>test</password>
        <version>1.6.1</version>
        <timestamp>20030424170000</timestamp>
    </header>
    <query type="type" product="hotel">
        <!-- QUERY -->
    </query>
</envelope>
```

The response is held by the **response** tag with the attribute **type** holding the type of the response:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <version>1.6.1</version>
        <timestamp>20030424170000</timestamp>
    </header>
    <response type="type">
        <!-- RESPONSE -->
    </query>
</envelope>
```

In case of error the **type** attribute will contains the word **error**

```xml
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <version>1.6.1</version>
        <timestamp>20030424170000</timestamp>
    </header>
    <response type="error">
        <!-- ERROR MESSAGE -->
    </response>
</envelope>
```

 [ ](https://documentation.netstorming.net/api-reference/basic-rules/headings) [](https://documentation.netstorming.net/api-reference/static-details-search)

---

## Navigation

- Parent: [Basic rules](https://documentation.netstorming.net/api-reference/basic-rules.md)
- Previous: [Headings](https://documentation.netstorming.net/api-reference/basic-rules/headings.md)
