Create the offline demo data files.
http://servername.loc.sap.corp:50009/sap/opu/odata/GBHCM/LEAVEREQUEST/LeaveRequestCollection?$filter=StartDate EQ '2012-07-01T00:00:00' AND EndDate EQ '2013-12-31T00:00:00'This is the expected file name:
http___servername.loc.sap.corp:50009_sap_opu_odata_GBHCM_LEAVEREQUEST _LeaveRequestCollection_$filter_StartDate_EQ_'2012-01-01T00_00_00'_AND_EndDate_EQ_'2012-12-31T00_00_00'.xml
[SDMDataSource setDemoMode: YES]; [SDMDataSource setBaseURL: @"http://servername.loc.sap.corp:50009/sap/opu/odata/GBHCM/LEAVEREQUEST/"];
The library attempts to load this file: http___servername.loc.sap.corp:50009_sap_opu_odata_GBHCM_LEAVEREQUEST_.xml instead of http___servername.loc.sap.corp:50009_sap_opu_odata_GBHCM_LEAVEREQUEST.xml.
Either add an extra underscore character to the file name, or remove the ending slash character from the URL when calling the setBaseURL method of the SDMDataSource class.
[SDMDataSource setDemoMode: YES]; [SDMDataSource setBaseURL: @"http://serviceDocument"];