Mobile SDK > Disconnected mobile application reference > Mobile Synchronization Web Service (MobileSyncWebService) reference > URL overview > /Projects/PROJECT/Resources URL
 
/Projects/PROJECT/Resources URL
Description
Retrieves files that are associated with the project (for example, HTML templates, CSS files, images, audio files, and video files). Each file is retrieved individually with a more specific URL.
Note Files that are used internally by MobileSyncWebService, such as <Project>.mdd, the related DDF file, and other files, are not listed in the returned Resources XML (see XML schema definitions).
The third party mobile application does not need to download all resources. The mobile application can download only those resources, in a particular directory, that are related to the application. For example, the third party mobile application SUPERMOBILE can request that authors place their files in a directory named SUPERMOBILE. Authors only download files from the SUPERMOBILE directory. The MobileSync web.config setting ProjectResourcesExcludeList can be used to define which resources to download. The default setting stops the mobile application from downloading *.mdd files, and other files that are not related to the survey formatting.
Get Request
Example URL:
/SPSSMR/MobileSync/Projects/Museum/Resources
The following URL retrieves the DefaultLayout.htm file:
/SPSSMR/MobileSync/Projects/Museum/Resources/DefaultLayout.htm
The following URL retrieves the contents of the DefaultLayout.htm_Files directory:
/SPSSMR/MobileSync/Projects/Museum/Resources/DefaultLayout.htm_Files
Get Response
Resources XML includes the Name and LastModified time (in UTC) for each directory and file. Example responses:
<Resources>
  <File Name="DefaultLayout.htm" LastModified="2013-04-12T09:01:32Z" />
  <Directory Name="DefaultLayout.htm_Files" LastModified="2013-04-12T09:01:32Z" />
</Resources>
Use the following URL to retrieve the DefaultLayout.htm file:
/SPSSMR/MobileSync/Projects/Museum/Resources/DefaultLayout.htm
Use the following URL to retrieve the contents of the DefaultLayout.htm_Files directory:
/SPSSMR/MobileSync/Projects/Museum/Resources/DefaultLayout.htm_Files
<Resources>
  <File Name="default.css" LastModified="2013-04-12T09:01:32Z" />
  <File Name="default.js" LastModified="2013-04-12T09:01:33Z" />
  <Directory Name="images" LastModified="2013-04-12T09:01:33Z" />
</Resources>
See also
URL overview