Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

 Пример запроса

Блок кода
languagexml
<soapenv<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:soapenvSOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:soap="http://ispringlearn.com/go/services/api/soap">
  <soapenv:Header/>
    <soapenv<SOAP-ENV:Body>
      <soap:AddSmartGroupRequest><AddSmartGroupRequest>
        <soap:credentials><credentials>
          <soap:accountUrl>https<accountUrl>http://myaccount.ispringlearn.ru</soap:accountUrl>
          <soap:email>owner</soap:<email>email@email.com</email>
          <soap:password>12345Q<<password>password</soap:password>
         </soap:credentials>
        <soap:name><name> NEW GROUP</soap:name>
        <soap:rules><rules>
          <!--1 or more repetitions:--><and>
            <soap:and>
              <!--1 or more repetitions:--><or>
                <soap:or>
                  <soap:rule>  <rule>
                    <soap:attributeType>1</soap:attributeType><attributeType>1<attributeType>
                    <!--Optional:-->
                    <soap:attributeId><attributeId> </soap:attributeId>
                    <soap:operator>2<<operator>2</soap:operator>
                    <soap:value>id<value>id_departnent</soap:value>
                  </soap:rule>
                </soap:or>
                <soap:or><or>
                  <soap:rule><rule>
                    <soap:attributeType>2<<attributeType>2</soap:attributeType>
                    <!--Optional:-->
                    <soap:attributeId></soap:<attributeId></attributeId>
                    <soap:operator>1<<operator>1</soap:operator>
                    <soap:value>id<value>id_group</soap:value>
                  </soap:rule>
                </soap:or>
                <soap:or><or>
                  <soap:rule><rule>
                    <soap:attributeType>3<<attributeType>3</soap:attributeType>
                    <!--Optional:-->
                    <soap:attributeId>JON<attributeId>JON_TITLE</soap:attributeId>
                    <soap:operator>1<<operator>1</soap:operator>
                    <soap:value>кассир<<value>кассир</soap:value>
                  </soap:rule>
                </soap:or>
              </soap:and>
            </soap:rules>
      </soap:AddSmartGroupRequest>
    </soapenvSOAP-ENV:Body>
</soapenvSOAP-ENV:Envelope>

Пример ответа

Блок кода
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <AddSmartGroupResult>
      <groupId>string</groupId>
    </AddSmartGroupResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

...