<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Mock Server Configuration problem in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583160#M133205</link>
    <description>&lt;P&gt;Hi Miklos,&lt;/P&gt;
  &lt;P&gt;It is bit strange that I didn't receive any e-mail notification of your comment. I saw it now. &lt;/P&gt;
  &lt;P&gt;My mockserver.js contains rootUri like below. the path is dummy as I don't have any real service which is working in backend. This matched with manifest.json as well.&lt;/P&gt;
  &lt;P&gt;var oMockServer = new MockServer({&lt;BR /&gt; rootUri: "/here/goes/your/serviceUrl/local/"&lt;BR /&gt; });&lt;/P&gt;
  &lt;P&gt;console log for sPath is "../localService " and seems ookay until it reaches metadata.xml and mockdata folder. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142543-image-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 10:55:36 GMT</pubDate>
    <dc:creator>gaffaransari</dc:creator>
    <dc:date>2018-05-10T10:55:36Z</dc:date>
    <item>
      <title>Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaq-p/583156</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
  &lt;P&gt;I'm trying to configure Mock server using "Step 27: Mock Server Configuration" documentation. When I run my project in webide then I get below errors. I didn't implement controller logic yet but just wants to display my first root view with mock data.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/141509-image-14.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/141511-image-15.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Why I am seeing $count and $skip queries failing? Why I am seeing those queries when I run the app with mock data?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 13:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaq-p/583156</guid>
      <dc:creator>gaffaransari</dc:creator>
      <dc:date>2018-05-08T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583157#M133202</link>
      <description>&lt;P&gt;Could you copy the content of the &lt;STRONG&gt;mockServer.html&lt;/STRONG&gt;, as some of the namespaces destinations have to be adjusted compared to the original index.html?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Such as:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;data-sap-ui-resourceroots='{"projectname": "../"}&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 14:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583157#M133202</guid>
      <dc:creator>former_member239103</dc:creator>
      <dc:date>2018-05-08T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583158#M133203</link>
      <description>&lt;P&gt;Thanks for the quick response. Please find the code below. Also, in manifest.json, I mentioned the localuri like below. I don't have the backend service built and hence I am using some dummy value.&lt;/P&gt;
  &lt;P&gt;I couldn't attach the files due file type restriction and hence pasting the code below.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;mockServer.html&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt; &amp;lt;meta charset="utf-8"&amp;gt; &amp;lt;title&amp;gt;Awards Mock Test&amp;lt;/title&amp;gt; &amp;lt;script id="sap-ui-bootstrap" src="../../resources/sap-ui-core.js" data-sap-ui-theme="sap_belize" data-sap-ui-libs="sap.m" data-sap-ui-compatVersion="edge" data-sap-ui-preload="async" data-sap-ui-resourceroots='{ "com.orpic.mobility.HRAwards": "../" }'&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script&amp;gt; sap.ui.getCore().attachInit(function () { sap.ui.require([ "com/orpic/mobility/HRAwards/localService/mockserver", "sap/m/Shell", "sap/ui/core/ComponentContainer" ], function (mockserver, Shell, ComponentContainer) { mockserver.init(); new Shell({ app : new ComponentContainer({ name : "com.orpic.mobility.HRAwards", settings : { id : "HRAwards" } }) }).placeAt("content"); }); }); &amp;lt;/script&amp;gt; &amp;lt;/head&amp;gt; &amp;lt;body id="content"&amp;gt;&amp;lt;/body&amp;gt; &amp;lt;/html&amp;gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;manifest.json file&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;{ "_version": "1.8.0", "sap.app": { "_version": "1.3.0", "id": "com.orpic.mobility.HRAwards", "type": "application", "i18n": "i18n/i18n.properties", "applicationVersion": { "version": "1.2.2" }, "dataSources": { "local": { "uri": "/here/goes/your/serviceUrl/local/", "type": "OData", "settings": { "odataVersion": "2.0", "localUri": "localService/metadata.xml" } } }, "title": "{{appTitle}}", "description": "{{appDescription}}", "ach": "ach", "resources": "resources.json", "sourceTemplate": { "id": "ui5template.basicSAPUI5ApplicationProject", "version": "1.32.0" } }, "sap.ui": { "_version": "1.3.0", "technology": "UI5", "icons": { "icon": "", "favIcon": "", "phone": "", "phone@2": "", "tablet": "", "tablet@2": "" }, "deviceTypes": { "desktop": true, "tablet": true, "phone": true } }, "sap.ui5": { "_version": "1.3.0", "rootView": { "viewName": "com.orpic.mobility.HRAwards.view.Worklist", "type": "XML", "async": true }, "dependencies": { "minUI5Version": "1.50.0", "libs": { "sap.ui.core": {}, "sap.m": {}, "sap.ui.layout": {} } }, "contentDensities": { "compact": true, "cozy": true }, "models": { "i18n": { "type": "sap.ui.model.resource.ResourceModel", "uri": "i18n/i18n.properties" }, "": { "dataSource": "local", "type": "sap.ui.model.odata.v2.ODataModel", "settings": { "loadMetadataAsync": false, "json": true, "bJSON": true, "defaultBindingMode": "TwoWay", "useBatch": true, "refreshAfterChange": false, "disableHeadRequestForToken": true } } }, "resources": { "css": [] } } }&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 16:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583158#M133203</guid>
      <dc:creator>former_member233489</dc:creator>
      <dc:date>2018-05-08T16:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583159#M133204</link>
      <description>&lt;P&gt;The mock server seems to be set properly.&lt;/P&gt;
  &lt;P&gt;The problem is with the "rootURI" of your service or with the service itself.&lt;/P&gt;
  &lt;P&gt;Parameter "rootURI" in mockServer.js has to be exactly the same as the URI that is defined for the data source in the "manifest.json" descriptor file. I guess this is fine because that URI is called in the console log, &lt;STRONG&gt;but there is no service available in that path&lt;/STRONG&gt;.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Did you map the mock data properly in &lt;STRONG&gt;mockserver.js&lt;/STRONG&gt; (path and namespace correct)? You can console log the "sPath" to make sure it points to the right directory where metadata.xml is, then delete that line later.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;var sPath = jQuery.sap.getModulePath("sap.ui.demo.walkthrough.localService"); 
console.log(sPath);&lt;BR /&gt;oMockServer.simulate(sPath + "/metadata.xml", sPath + "/mockdata");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 07:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583159#M133204</guid>
      <dc:creator>former_member239103</dc:creator>
      <dc:date>2018-05-09T07:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583160#M133205</link>
      <description>&lt;P&gt;Hi Miklos,&lt;/P&gt;
  &lt;P&gt;It is bit strange that I didn't receive any e-mail notification of your comment. I saw it now. &lt;/P&gt;
  &lt;P&gt;My mockserver.js contains rootUri like below. the path is dummy as I don't have any real service which is working in backend. This matched with manifest.json as well.&lt;/P&gt;
  &lt;P&gt;var oMockServer = new MockServer({&lt;BR /&gt; rootUri: "/here/goes/your/serviceUrl/local/"&lt;BR /&gt; });&lt;/P&gt;
  &lt;P&gt;console log for sPath is "../localService " and seems ookay until it reaches metadata.xml and mockdata folder. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142543-image-2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 10:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583160#M133205</guid>
      <dc:creator>gaffaransari</dc:creator>
      <dc:date>2018-05-10T10:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583161#M133206</link>
      <description>&lt;P&gt;I am attaching the latest console log.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142544-image-3.png" /&gt;&lt;/P&gt;
  &lt;P&gt;sPath value is ../localService&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 11:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583161#M133206</guid>
      <dc:creator>gaffaransari</dc:creator>
      <dc:date>2018-05-10T11:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583162#M133207</link>
      <description>&lt;P&gt;Are you starting the application with mockServer.html in the "webIDE", because I just tested one of my own Mock servers and there is no GET request involved? The json files loaded and the mock data is read from there.&lt;/P&gt;
  &lt;P&gt;Note that the request in your console log is for &lt;STRONG&gt;WorklistSet &lt;/STRONG&gt;but in the project folders you only have &lt;STRONG&gt;Worklist.json&lt;/STRONG&gt;.&lt;/P&gt;
  &lt;P&gt;So even if mock application run configuration used there is no file &lt;STRONG&gt;WorklistSet.json&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 12:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583162#M133207</guid>
      <dc:creator>former_member239103</dc:creator>
      <dc:date>2018-05-10T12:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583163#M133208</link>
      <description>&lt;P&gt;Yes. I renamed the json file already today. I'm using mockServer.html to run the application. I am facing different error now and looks like my descriptor is wrong. Could you guide me to know the problem as I'm novice in this area.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142549-image-4.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/142549-image-4.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583163#M133208</guid>
      <dc:creator>gaffaransari</dc:creator>
      <dc:date>2018-05-10T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583164#M133209</link>
      <description>&lt;P&gt;My descriptor is given below.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;{&lt;BR /&gt; "_version": "1.8.0",&lt;BR /&gt; "sap.app": {&lt;BR /&gt; "_version": "1.3.0",&lt;BR /&gt; "id": "com.orpic.mobility.HRAwards",&lt;BR /&gt; "type": "application",&lt;BR /&gt; "i18n": "i18n/i18n.properties",&lt;BR /&gt; "applicationVersion": {&lt;BR /&gt; "version": "1.2.2"&lt;BR /&gt; },&lt;BR /&gt; "dataSources": {&lt;BR /&gt; "local": {&lt;BR /&gt; "uri": "/here/goes/your/serviceUrl/local/",&lt;BR /&gt; "type": "OData",&lt;BR /&gt; "settings": {&lt;BR /&gt; "odataVersion": "2.0",&lt;BR /&gt; "localUri": "localService/metadata.xml"&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "title": "{{appTitle}}",&lt;BR /&gt; "description": "{{appDescription}}",&lt;BR /&gt; "ach": "ach",&lt;BR /&gt; "resources": "resources.json",&lt;BR /&gt; "sourceTemplate": {&lt;BR /&gt; "id": "ui5template.basicSAPUI5ApplicationProject",&lt;BR /&gt; "version": "1.32.0"&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "sap.ui": {&lt;BR /&gt; "_version": "1.3.0",&lt;BR /&gt; "technology": "UI5",&lt;BR /&gt; "icons": {&lt;BR /&gt; "icon": "",&lt;BR /&gt; "favIcon": "",&lt;BR /&gt; "phone": "",&lt;BR /&gt; "phone@2": "",&lt;BR /&gt; "tablet": "",&lt;BR /&gt; "tablet@2": ""&lt;BR /&gt; },&lt;BR /&gt; "deviceTypes": {&lt;BR /&gt; "desktop": true,&lt;BR /&gt; "tablet": true,&lt;BR /&gt; "phone": true&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "sap.ui5": {&lt;BR /&gt; "_version": "1.3.0",&lt;BR /&gt; "rootView": {&lt;BR /&gt; "viewName": "Worklist",&lt;BR /&gt; "type": "XML"&lt;BR /&gt; },&lt;BR /&gt; "dependencies": {&lt;BR /&gt; "minUI5Version": "1.50.0",&lt;BR /&gt; "libs": {&lt;BR /&gt; "sap.ui.core": {},&lt;BR /&gt; "sap.m": {},&lt;BR /&gt; "sap.ui.layout": {}&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "contentDensities": {&lt;BR /&gt; "compact": true,&lt;BR /&gt; "cozy": true&lt;BR /&gt; },&lt;BR /&gt; "models": {&lt;BR /&gt; "i18n": {&lt;BR /&gt; "type": "sap.ui.model.resource.ResourceModel",&lt;BR /&gt; "uri": "i18n/i18n.properties"&lt;BR /&gt; },&lt;BR /&gt; "": {&lt;BR /&gt; "dataSource": "local",&lt;BR /&gt; "type": "sap.ui.model.odata.v2.ODataModel",&lt;BR /&gt; "settings": {&lt;BR /&gt; "loadMetadataAsync": false,&lt;BR /&gt; "json": true,&lt;BR /&gt; "bJSON": true,&lt;BR /&gt; "defaultBindingMode": "TwoWay",&lt;BR /&gt; "useBatch": true,&lt;BR /&gt; "refreshAfterChange": false,&lt;BR /&gt; "disableHeadRequestForToken": true&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "resources": {&lt;BR /&gt; "css": []&lt;BR /&gt; },&lt;BR /&gt; "routing": {&lt;BR /&gt; "config": {&lt;BR /&gt; "routerClass": "sap.m.routing.Router",&lt;BR /&gt; "viewType": "XML",&lt;BR /&gt; "viewPath": "com.orpic.mobility.HRAwards.view",&lt;BR /&gt; "controlId": "HRAwards",&lt;BR /&gt; "clearTarget": false,&lt;BR /&gt; "controlAggregation": "pages",&lt;BR /&gt; "bypassed": {&lt;BR /&gt; "target": [&lt;BR /&gt; "Worklist"&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; "targets": {&lt;BR /&gt; "Worklist": {&lt;BR /&gt; "controlAggregation": "pages",&lt;BR /&gt; "viewName": "Worklist",&lt;BR /&gt; "viewId": "Worklist",&lt;BR /&gt; "viewLevel": 1,&lt;BR /&gt; "transition": "show"&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; },&lt;BR /&gt; "routes": [&lt;BR /&gt; &lt;BR /&gt; {&lt;BR /&gt; "pattern": "",&lt;BR /&gt; "name": "default",&lt;BR /&gt; "target": [&lt;BR /&gt; "Worklist"&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 17:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583164#M133209</guid>
      <dc:creator>gaffaransari</dc:creator>
      <dc:date>2018-05-10T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mock Server Configuration problem</title>
      <link>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583165#M133210</link>
      <description>&lt;P&gt;The connection between routes and targets are the name attribute, therefore "targets.Worklist" should be "targets.default" or vice versa. Check out the &lt;A href="https://sapui5.hana.ondemand.com/#/topic/e5200ee755f344c8aef8efcbab3308fb"&gt; Routing and Navigation&lt;/A&gt;.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The solution to the original question is the rename of the file is it not? If yes then mark &lt;A href="https://answers.sap.com/answers/508456/view.html"&gt;that answer&lt;/A&gt; as accepted, and ask different problem in a new question. This helps the community to find solutions easier. If you put the URL of the new question in this question as a comment I am going to have a look.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 05:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mock-server-configuration-problem/qaa-p/583165#M133210</guid>
      <dc:creator>former_member239103</dc:creator>
      <dc:date>2018-05-11T05:00:20Z</dc:date>
    </item>
  </channel>
</rss>

