Akanksha Agarwal | Hi Loyd, Please find the answers below: A sample soap request for subscribe is: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:even="http://unity.cisco.com/messageeventservice/event" xmlns:even1="http://event.messageeventservice.unity.cisco.com"> <soapenv:Header/> <soapenv:Body> <even:subscribe> <even:resourceType>?</even:resourceType> <even:eventTypeList> <!--Zero or more repetitions:--> <even:string>?</even:string> </even:eventTypeList> ent <even:callbackServiceInfo> <!--Optional:--> <even1:callbackServiceUrl>?</even1:callbackServiceUrl> <!--Optional:--> <even1:hostname>?</even1:hostname> <!--Optional:--> <even1:password>?</even1:password> <!--Optional:--> <even1:port>?</even1:port> <!--Optional:--> <even1:protocol>?</even1:protocol> <!--Optional:--> <even1:sslCertificates> <!--Zero or more repetitions:--> <even:string>?</even:string> </even1:sslCertificates> <!--Optional:--> <even1:sslValidateCertificate>?</even1:sslValidateCertificate> <!--Optional:--> <even1:sslValidateHostname>?</even1:sslValidateHostname> <!--Optional:--> <even1:username>?</even1:username> </even:callbackServiceInfo> <even:expiration>?</even:expiration> <!--Optional:--> <even:keepAliveInterval>?</even:keepAliveInterval> </even:subscribe> </soapenv:Body> </soapenv:Envelope> Various parameters: 1) <even:eventTypeList> <!--Zero or more repetitions:--> <even:string>X</even:string> </even:eventTypeList> Since you want to subscribe for notification events, you need to mention that for what all events you want notifications. So the value for X could be: NEW_MESSAGE: in case you want notification for a new message UNREAD_MESSAGE: in case you want notification when a message is marked unread SAVED_MESSAGE: in case you want notification when a message isbeing read DELETED_MESSAGE: in case you want notification when a message is deleted ALL_EVENTS: For all the above mentoned cases 2) <even:resourceIdList> <!--Zero or more repetitions:--> <even:string>akanksha</even:string> </even:resourceIdList> This list would carry the names of all the resources(users) for whom you need notification 3) <even:callbackServiceInfo> <!--Optional:--> <even1:callbackServiceUrl>http://ucbu-aricent-vm268.cisco.com:7080/vmevents/msgrcv?subscriptionid=5f11dc96-8f84-4d3e-b7e0-f2871cfbaa30</even1:callbackServiceUrl> <!--Optional:--> <even1:hostname>ucbu-aricent-vm268.cisco.com</even1:hostname> <even1:username>test1</even1:username> </even:callbackServiceInfo> callbackserviceurl: it means the URL where you want to recieve the notification. You can have it as per you application Hostname: Connection hostname Username: The one who is subscribing 4) <even:expiration>2012-03-04T01:22:00.0905523+04:00</even:expiration> Here you should specify the expiration date for your subscription. After the expiration date, subscription will expire. 5) <even:keepAliveInterval>0</even:keepAliveInterval> You can specify the value as per your requirement. It means that your call back URL will be pinged after this interval to check if it's alive. In the response to the above request, you will recieve a subscription Id. Please revert in case you have any further query. Thanks & Regards, Akanksha A |
| Please sign in to flag this as inappropriate. |