SOAP crap - adnanh/qa GitHub Wiki

Create privilege

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <c_priv xmlns="urn:WashOut">
         <privilege>
            <privilege_id />
            <name>blah</name>
            <description>blah</description>
         </privilege>
      </c_priv>
   </soap:Body>
</soap:Envelope>

Read privilege(s)

Get specific privilege

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <r_priv xmlns="urn:WashOut">
         <privilege_id>1</privilege_id>
      </r_priv>
   </soap:Body>
</soap:Envelope>

Get all privileges

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <r_priv xmlns="urn:WashOut">
         <privilege_id></privilege_id>
      </r_priv>
   </soap:Body>
</soap:Envelope>

Update privilege (name&description r optional)

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <u_priv xmlns="urn:WashOut">
        <privilege>
         <privilege_id>4</privilege_id>
         <name>IZMJENA</name>
         <description>DRINK MOAR SOAP KOOL-AID</description> 
       </privilege>
      </u_priv>
   </soap:Body>
</soap:Envelope>

Delete privilege

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <d_priv xmlns="urn:WashOut">
        <privilege>
         <privilege_id>10</privilege_id>
       </privilege>
      </d_priv>
   </soap:Body>
</soap:Envelope>

ZA REST

  1. ne zaboraviti Content-Type header sa vrijednosti application/x-www-form-urlencoded
  2. /rest/whatever.json
⚠️ **GitHub.com Fallback** ⚠️