on 04-16-2019 4:14 PM
Hi!
I have a problem with my generated webIDE project. I have the following constellation:
- OData Service in Netweaver Gateway Client works fine
- Clound Connector is installed centrally by our technology dep. (I did not change it)
- Connection to the backend system works, I was able to select and generate my project
- I did not change the neo-app.js file
- I have used WebIDE Full-Stack, SAP UI5 1.60 and NEO
- When I test my project, I get an HTTP 404 response at the first metadata service call
For me the first issue seems to be that I am not asked for my backed system username and password.
What do you think? Could this be related to the Cloud Connector?
It's interesting that the https://webidecp-. links work, but the https://webidetesting5985657- links won't. So the destination and the Cloud Connector seem to work fine.
I'd assume this is a "routing" issue. E.g. it's related to the neo-app.json file.
In a sample app the manifest would define the data source like this:
"dataSources": {
"mainService": {
"uri": "/SAP_Gateway/sap/opu/odata/sap/SEPMRA_PO_APV/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
}
},
and the corresponding neo-app.json file should map the URI to the destination:
{
"path": "/SAP_Gateway",
"target": {
"type": "destination",
"name": "SAP_Gateway"
},
"description": "SAP Gateway ES5"
}
Does your neo-app.json file specifiy your individual path?
[...]/sap/opu/odata/luneh/ (or a subpath of this?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi mariusobert i am facing similar issue but it is a mta app, deployed in Cloud Foundry.
https://abcdd-sdk-xx-sdfd-approuter.cfapps.eu10.hana.ondemand.com/comsatyaapp/~220621184701+0000~/OD...
Error: 404
but if i remove the /comsatyaapp/~220621184701+0000~ from the url, then it working
https://abcdd-sdk-xx-sdfd-approuter.cfapps.eu10.hana.ondemand.com/ODATA_1/sap/opu/odata/NS1/myservic...
xsapp.json:-
{
"source": "^/ODATA_1/(.*)$",
"target": "$1",
"destination": "ODATA_1",
"authenticationType": "none"
},
manifest.jsone:
"dataSources": {
"mainservice": {
"uri": "/ODATA_1/sap/opu/odata/NS1/myservice_SRV/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
}
},
I have created a destination in BTP.
Description= odata 100
Type=HTTP
Authentication=BasicAuthentication
WebIDEUsage=odata_abap,dev_abap,ui5_execute_abap,odata_gen,odata_xs
Name=ODATA_1
WebIDEEnabled=true
CloudConnectorLocationId=XXXXXXXXXXXXXXXXX
ProxyType=OnPremise
URL=http\://xxxxxx.abcdsed.yyy.zzzzz\:8000
sap-client=100
User=dsdsfdsfsd
WebIDESystem=XXX
Regards,
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you find a solution to this? I am also getting a 404 when trying to fetch the metadata at -
But if I remove the timestamp it works -
Hi chall618,
Yes, i have found a solution, add data source in manifest.json as below:-
add ../.. before your service url,
"dataSources": {
"my_SRV": {
"uri": "../../s4/sap/opu/odata/sap/my_SRV/",
"type": "OData",
"settings": {
"odataVersion": "2.0",
"localUri": "localService/metadata.xml"
}
},
Regards,
Satya
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.