Hi Swetha,
the console shows that a wrong URL is being invoked:
xxxx/<servicename>/<entityset>/$metadata
this is obviously wrong
correct would be:
xxxx/<servicename>/$metadata
I don't know the tutorial and the thread mentioned by you, but maybe you have a typo in your code, such that the service-URL contains the entityset.
I would assume that you can remove the token SalesOrders/ from the URL, somewhere in your code, such that at the end the URL would be:
.../opu/odata/sap/ZCD204_EPM_DEMO_SRV/$metadata
Hope it helps,
Cheers,
Carlos