Service
Click here for a complete list of operations.
CountDeals
CountDeals(ulSessionID,uSequenceID,sIntegrity,sID,sAgentID,sSince). ulong ulSessionID:- ID of authenticated session. uint uSequenceID:- Sequence number. string sIntegrity:- md5("ipaddr(sid,seq)->CountDeals(sID,sAgentID,yyyy-mm-dd hh:mm:ss)/secret"). string sID:- ID of contingency or offer for which deals are to be counted (blank if all deals). string sAgentID:- ID of agent involved in deal (or null). string sSince:- Earliest registration date to count from. NB Not a TimeInstant or DateTime. The timezone is UTC. RETURNS: uint:- number of deals involving the specified contingency and agent that were registered since the specified date. FAULTS: Session. Contingency. Time format. DESCRIPTION: Count the number of deals involving a specific contingency and agent that were registered after a particular time.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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/CountDeals"
<?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>
<CountDeals xmlns="http://www.contingencymarket.com/api/Service.asmx">
<ulSessionID>unsignedLong</ulSessionID>
<uSequenceID>unsignedInt</uSequenceID>
<sIntegrity>string</sIntegrity>
<sID>string</sID>
<sAgentID>string</sAgentID>
<sSince>string</sSince>
</CountDeals>
</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>
<CountDealsResponse xmlns="http://www.contingencymarket.com/api/Service.asmx">
<CountDealsResult>unsignedInt</CountDealsResult>
</CountDealsResponse>
</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>
<CountDeals xmlns="http://www.contingencymarket.com/api/Service.asmx">
<ulSessionID>unsignedLong</ulSessionID>
<uSequenceID>unsignedInt</uSequenceID>
<sIntegrity>string</sIntegrity>
<sID>string</sID>
<sAgentID>string</sAgentID>
<sSince>string</sSince>
</CountDeals>
</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>
<CountDealsResponse xmlns="http://www.contingencymarket.com/api/Service.asmx">
<CountDealsResult>unsignedInt</CountDealsResult>
</CountDealsResponse>
</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/CountDeals?ulSessionID=string&uSequenceID=string&sIntegrity=string&sID=string&sAgentID=string&sSince=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"?> <unsignedInt xmlns="http://www.contingencymarket.com/api/Service.asmx">unsignedInt</unsignedInt>
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/CountDeals HTTP/1.1 Host: contingencymarket.com Content-Type: application/x-www-form-urlencoded Content-Length: length ulSessionID=string&uSequenceID=string&sIntegrity=string&sID=string&sAgentID=string&sSince=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <unsignedInt xmlns="http://www.contingencymarket.com/api/Service.asmx">unsignedInt</unsignedInt>