Cisco Cisco 3350 Mobility Services Engine Developer's Guide
C
ISCO
MSE
API
S
PECI FICATI ON
G
UIDE
–
C
ONTEXT
A
W ARE
S
ERVICE OF
MSE,
R
EL EASE
7.4
.
P
A G E
202
O F
227
C H A P T E R 1 3
13
Examples
The following are some examples of queries using different criteria’s, they are represented in
pseudo-code.
pseudo-code.
13.1 Query Samples
A) Query to get the full list of mobile station locations updated in last 5 minutes.
AesMatchMbrCriteria.operator = OP_LT_EQ
AesMatchMbrCriteria.matchMbr = AesObject.CHANGED_ON_DELTA
AesMatchMbrCriteria.matchClass = AesMobileStationLocation.CLASSNAME
AesMatchMbrCriteria.matchValue = new Integer(5)
AesQueryCriteria.and(AesMatchMbrCriteria)
AesQueryCriteria.numOfResults(ALL_RESULTS)
AesQueryCriteria.options(OPT_FULL)
Xml Request
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<GetStationLocationList xmlns=” http://cisco.com/mse/location”>
<AesBusinessSession id="18740" mask="-1"/>
<AesQueryCriteria numOfResults="-1">
<and-list>
<AesMatchMbrCriteria matchClass="AesMobileStationLocation" matchMbr="changedOn"
matchValue="300000" operator="1" valueClass="java.lang.Long"/>
</and-list>
</AesQueryCriteria>
<GetStationLocationList xmlns=” http://cisco.com/mse/location”>
<AesBusinessSession id="18740" mask="-1"/>
<AesQueryCriteria numOfResults="-1">
<and-list>
<AesMatchMbrCriteria matchClass="AesMobileStationLocation" matchMbr="changedOn"
matchValue="300000" operator="1" valueClass="java.lang.Long"/>
</and-list>
</AesQueryCriteria>