4.1.2 GetDatabase
To get the properties for a specific database, the protocol client sends the following message:
Request message:
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <a:Action s:mustUnderstand="1"> http://tempuri.org/INotesWebServiceApplication/GetDatabase </a:Action> <a:MessageID> urn:uuid:c7f4e90c-2c6f-4d43-983e-a52a8a2d35a7 </a:MessageID> <a:ReplyTo> <a:Address> http://www.w3.org/2005/08/addressing/anonymous </a:Address> </a:ReplyTo> <ServiceContext xmlns="http://schemas.microsoft.com/sharepoint/servicecontext" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <correlationId> 00000000-0000-0000-0000-000000000000 </correlationId> <language>en-US</language> <region>en-US</region> <siteSubscriptionId i:nil="true"></siteSubscriptionId> </ServiceContext> <a:To s:mustUnderstand="1" u:Id="_1"> http://example.com:32843/088ec4ed4144457bb36088e0b5c0bea8/NotesWebService.svc </a:To> </s:Header> <s:Body> <GetDatabase xmlns="http://tempuri.org/"> <databaseName>servernotes1\database.nsf</databaseName> </GetDatabase> </s:Body> </s:Envelope>
Response message:
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <s:Header> <a:Action s:mustUnderstand="1"> http://tempuri.org/INotesWebServiceApplication/GetDatabaseResponse </a:Action> <a:RelatesTo> urn:uuid:c7f4e90c-2c6f-4d43-983e-a52a8a2d35a7 </a:RelatesTo> </s:Header> <s:Body> <GetDatabaseResponse xmlns="http://tempuri.org/"> <GetDatabaseResult xmlns:b="http://schemas.datacontract.org/2004/07/Microsoft.Office.Server.Search.Administration" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <b:databaseId>servernotes1\database.nsf</b:databaseId> <b:displayUrl>http://servernotes1/database.nsf/</b:displayUrl> <b:lastModifiedTime>2009-12-28T15:12:16</b:lastModifiedTime> <b:securityDesc> <b:SD>sercurity_desc_value</b:SD> <b:isNTSD>true</b:isNTSD> </b:securityDesc> </GetDatabaseResult> </GetDatabaseResponse> </s:Body> </s:Envelope>