Service


Click here for a complete list of operations.

GetEvent

GetEvent(ulSessionID,uSequenceID,sIntegrity,sEventID). ulong ulSessionID:- ID of authenticated session. uint uSequenceID:- Sequence number. string sIntegrity:- md5("ipaddr(sid,seq)->GetEvent(sEventID)/secret"). string sEventID:- Unique ID of Event (blank for root event). RETURNS: {sID,sIDParent,bDependent,sName,sPath,sDetails,sParameterName,sParameterType,sParameterMinimum,sParameterMaximum,bParameterInsideMinMax}. string sID:- 32 digit hex representing this event's globally unique id. string sIDParent:- ID of parent event. bool bDependent:- Whether the child is dependent upon its parent. string sName:- Event name. string sPath:- Event path. string sParameterName:- Name of event parameter. string sParameterType:- Type of event parameter. string sParameterMinimum:- Lower bound for event parameter. string sParameterMaximum:- Upper bound for event parameter. bool bParameterInsideMinMax:- Whether parameter value must lie within bounds or not (for event to occur). FAULTS: Session. Event. DESCRIPTION: Gets data describing a specific event. All public events are descendents of the root event. An event consists of a predefined parameter and a constraint. An event's parent must succeed in order for any child to succeed. An event has no duration, however a child event may be used to define a subsequent termination event.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
ulSessionID:
uSequenceID:
sIntegrity:
sEventID:

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 /api/Service.asmx HTTP/1.1
Host: contingencymarket.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.contingencymarket.com/api/Service.asmx/GetEvent"

<?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>
    <GetEvent xmlns="http://www.contingencymarket.com/api/Service.asmx">
      <ulSessionID>unsignedLong</ulSessionID>
      <uSequenceID>unsignedInt</uSequenceID>
      <sIntegrity>string</sIntegrity>
      <sEventID>string</sEventID>
    </GetEvent>
  </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>
    <GetEventResponse xmlns="http://www.contingencymarket.com/api/Service.asmx">
      <GetEventResult>
        <sID>string</sID>
        <sIDParent>string</sIDParent>
        <bDependent>boolean</bDependent>
        <sName>string</sName>
        <sPath>string</sPath>
        <sParameterName>string</sParameterName>
        <sParameterType>string</sParameterType>
        <sParameterMinimum>string</sParameterMinimum>
        <sParameterMaximum>string</sParameterMaximum>
        <bParameterInsideMinMax>boolean</bParameterInsideMinMax>
      </GetEventResult>
    </GetEventResponse>
  </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 /api/Service.asmx HTTP/1.1
Host: contingencymarket.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>
    <GetEvent xmlns="http://www.contingencymarket.com/api/Service.asmx">
      <ulSessionID>unsignedLong</ulSessionID>
      <uSequenceID>unsignedInt</uSequenceID>
      <sIntegrity>string</sIntegrity>
      <sEventID>string</sEventID>
    </GetEvent>
  </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>
    <GetEventResponse xmlns="http://www.contingencymarket.com/api/Service.asmx">
      <GetEventResult>
        <sID>string</sID>
        <sIDParent>string</sIDParent>
        <bDependent>boolean</bDependent>
        <sName>string</sName>
        <sPath>string</sPath>
        <sParameterName>string</sParameterName>
        <sParameterType>string</sParameterType>
        <sParameterMinimum>string</sParameterMinimum>
        <sParameterMaximum>string</sParameterMaximum>
        <bParameterInsideMinMax>boolean</bParameterInsideMinMax>
      </GetEventResult>
    </GetEventResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /api/Service.asmx/GetEvent?ulSessionID=string&uSequenceID=string&sIntegrity=string&sEventID=string HTTP/1.1
Host: contingencymarket.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<SEventData xmlns="http://www.contingencymarket.com/api/Service.asmx">
  <sID>string</sID>
  <sIDParent>string</sIDParent>
  <bDependent>boolean</bDependent>
  <sName>string</sName>
  <sPath>string</sPath>
  <sParameterName>string</sParameterName>
  <sParameterType>string</sParameterType>
  <sParameterMinimum>string</sParameterMinimum>
  <sParameterMaximum>string</sParameterMaximum>
  <bParameterInsideMinMax>boolean</bParameterInsideMinMax>
</SEventData>

HTTP POST

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

POST /api/Service.asmx/GetEvent HTTP/1.1
Host: contingencymarket.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ulSessionID=string&uSequenceID=string&sIntegrity=string&sEventID=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<SEventData xmlns="http://www.contingencymarket.com/api/Service.asmx">
  <sID>string</sID>
  <sIDParent>string</sIDParent>
  <bDependent>boolean</bDependent>
  <sName>string</sName>
  <sPath>string</sPath>
  <sParameterName>string</sParameterName>
  <sParameterType>string</sParameterType>
  <sParameterMinimum>string</sParameterMinimum>
  <sParameterMaximum>string</sParameterMaximum>
  <bParameterInsideMinMax>boolean</bParameterInsideMinMax>
</SEventData>