Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Команда просмотра списка операторов группы.

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/<DOMAIN>/service/cc/arm/agent_list

Коды ответов:

200

XSD-схема XML-запроса/ответа:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:include schemaLocation="error.xsd"/>
    <xs:include schemaLocation="agent.xsd"/>
    <xs:include schemaLocation="conversation.xsd"/>

    <xs:complexType name="Agents">
        <xs:sequence>
            <xs:element name="agent" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="agent_id" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:attribute name="agent_id" type="xs:string"/>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:choice>
                <xs:element name="response">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="agent_list" type="Agents"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="error" type="errorType"/>
            </xs:choice>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример использует технологию websocket

Пример:
Запрос:

0100000000970005agent_list
[
  {
    "_name": "in",
    "_content": [
      {
        "_name": "request"
      }
    ]
  }
]                      

Код ответа:

200

Ответ:

0100000004420005200
[
  {
    "_name": "out",
    "_attributes": {
      "xmlns:xs": "http://www.w3.org/2001/XMLSchema-instance",
      "xs:noNamespaceSchemaLocation": "agent_list.xsd"
    },
    "_content": [
      {
        "_name": "response",
        "_content": [
          {
            "_name": "agent_list",
            "_content": [
              {
                "_name": "agent",
                "_attributes": {
                  "agent_id": "101"
                }
              },
              {
                "_name": "agent",
                "_attributes": {
                  "agent_id": "102"
                }
              },
              {
                "_name": "agent",
                "_attributes": {
                  "agent_id": "103"
                }
              },
              {
                "_name": "agent",
                "_attributes": {
                  "agent_id": "104"
                }
              }
            ]
          }
        ]
      }
    ]
  }
]




  • Нет меток

0 Комментариев

Вы не можете зарегистрироваться в системе. Любые изменения, которые Вы сделаете, будут помечены как сделанные анонимно. Вы можете Войти, если у Вас есть учётная запись.