why there are two duplicate metadata requests

153 阅读1分钟

Created by Jerry Wang, last modified on Mar 03, 2015

  • ODataModel
    clipboard1
    Actually they are not duplicated:
  1. the first one has accept type as xml, while the second one pure text.
  2. the prefix of the two are different: /sap and /1sap.
    First request:
    Trigger point: main view constructor is called:
    clipboard2
    sap.ca.scfld.md.Startup.init is called in our application code:
    clipboard3
    ConnectionManager.getNewInstance is called with configuration data maintained in file Configuration.js:

clipboard4
clipboard5
OData model instance is created based on this relative url:
clipboard6
first request is sent out with relative url:
clipboard7
second request:
clipboard8
The application code is triggering the second request sent:
clipboard9
The configuration comes from component metadata:

clipboard10
clipboard11