TreilandWS


Click here for a complete list of operations.

Set_Principle

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /TreilandSVC.asmx HTTP/1.1
Host: svc.treiland.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://svc.Treiland.es/Set_Principle"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Set_Principle xmlns="http://svc.Treiland.es/">
      <SES_ID>int</SES_ID>
      <PRINCIPLE>
        <PRINCIPLE_UID>guid</PRINCIPLE_UID>
        <PRINCIPLE>string</PRINCIPLE>
        <PARENT_PRINCIPLE_UID>guid</PARENT_PRINCIPLE_UID>
        <PRINCIPLE_TYPE_ID>int</PRINCIPLE_TYPE_ID>
        <PRINCIPLE_TYPE>string</PRINCIPLE_TYPE>
        <DESCRIPTION>string</DESCRIPTION>
        <LEVEL>int</LEVEL>
        <POSITION>int</POSITION>
        <UIDCHAIN>string</UIDCHAIN>
        <ORDERCHAIN>string</ORDERCHAIN>
        <PATH>string</PATH>
        <LNG_ID>int</LNG_ID>
        <CHILDREN>int</CHILDREN>
        <CHILD_STATEMENTS>int</CHILD_STATEMENTS>
        <POPULATE>boolean</POPULATE>
      </PRINCIPLE>
      <PARAMETERS>string</PARAMETERS>
    </Set_Principle>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Set_PrincipleResponse xmlns="http://svc.Treiland.es/">
      <Set_PrincipleResult>
        <PRINCIPLE_UID>guid</PRINCIPLE_UID>
        <PRINCIPLE>string</PRINCIPLE>
        <PARENT_PRINCIPLE_UID>guid</PARENT_PRINCIPLE_UID>
        <PRINCIPLE_TYPE_ID>int</PRINCIPLE_TYPE_ID>
        <PRINCIPLE_TYPE>string</PRINCIPLE_TYPE>
        <DESCRIPTION>string</DESCRIPTION>
        <LEVEL>int</LEVEL>
        <POSITION>int</POSITION>
        <UIDCHAIN>string</UIDCHAIN>
        <ORDERCHAIN>string</ORDERCHAIN>
        <PATH>string</PATH>
        <LNG_ID>int</LNG_ID>
        <CHILDREN>int</CHILDREN>
        <CHILD_STATEMENTS>int</CHILD_STATEMENTS>
        <POPULATE>boolean</POPULATE>
      </Set_PrincipleResult>
    </Set_PrincipleResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /TreilandSVC.asmx HTTP/1.1
Host: svc.treiland.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Set_Principle xmlns="http://svc.Treiland.es/">
      <SES_ID>int</SES_ID>
      <PRINCIPLE>
        <PRINCIPLE_UID>guid</PRINCIPLE_UID>
        <PRINCIPLE>string</PRINCIPLE>
        <PARENT_PRINCIPLE_UID>guid</PARENT_PRINCIPLE_UID>
        <PRINCIPLE_TYPE_ID>int</PRINCIPLE_TYPE_ID>
        <PRINCIPLE_TYPE>string</PRINCIPLE_TYPE>
        <DESCRIPTION>string</DESCRIPTION>
        <LEVEL>int</LEVEL>
        <POSITION>int</POSITION>
        <UIDCHAIN>string</UIDCHAIN>
        <ORDERCHAIN>string</ORDERCHAIN>
        <PATH>string</PATH>
        <LNG_ID>int</LNG_ID>
        <CHILDREN>int</CHILDREN>
        <CHILD_STATEMENTS>int</CHILD_STATEMENTS>
        <POPULATE>boolean</POPULATE>
      </PRINCIPLE>
      <PARAMETERS>string</PARAMETERS>
    </Set_Principle>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Set_PrincipleResponse xmlns="http://svc.Treiland.es/">
      <Set_PrincipleResult>
        <PRINCIPLE_UID>guid</PRINCIPLE_UID>
        <PRINCIPLE>string</PRINCIPLE>
        <PARENT_PRINCIPLE_UID>guid</PARENT_PRINCIPLE_UID>
        <PRINCIPLE_TYPE_ID>int</PRINCIPLE_TYPE_ID>
        <PRINCIPLE_TYPE>string</PRINCIPLE_TYPE>
        <DESCRIPTION>string</DESCRIPTION>
        <LEVEL>int</LEVEL>
        <POSITION>int</POSITION>
        <UIDCHAIN>string</UIDCHAIN>
        <ORDERCHAIN>string</ORDERCHAIN>
        <PATH>string</PATH>
        <LNG_ID>int</LNG_ID>
        <CHILDREN>int</CHILDREN>
        <CHILD_STATEMENTS>int</CHILD_STATEMENTS>
        <POPULATE>boolean</POPULATE>
      </Set_PrincipleResult>
    </Set_PrincipleResponse>
  </soap12:Body>
</soap12:Envelope>