on 06-05-2016 6:15 PM
Hi,
I would like to create SAPUI5 / FIORI Application with OData , I need to Retrieve data from the Odata using SAPWebIDE.
Let us demonstrate step by step process :
When I select OData (“Product”) , I got the Error as “Cannot parse the metadata file”.
2. And I have saved the OData data as XML file and after that I tried to retrieve the Data In “Data Connection” part under the “File System” I have browse the XML file , I have retrieved the data from OData.
3. Then in Template Customization part
Finally, I am trying to Run the application. And I got “sorry, a technical error occurred ! please try again later” Error.
I have clicked the “show details” then the below information is displayed,
{
"requestUri": "/here/goes/your/serviceurl/$metadata?sap-documentation=heading",
"statusCode": 404,
"statusText": "Not Found",
"headers": [],
"body": "<html><head><title>Error report</title></head><body><h1>HTTP Status 404 - Not Found</h1></body></html>"
}
Please help me to rectify this error.
I'm trying to use Mock in my FLP deployed app and I'm getting the same problem. Is there a workaround we can use or have to have a real oData service to deploy it to FLP?
Your help would be appreciated.
Thanks,
Laeeq Siddique
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just add "/destination/<name>" before the datasource uri, in the manifest.json file. For example if name of destination is ES4.
Just add: /destinations/ES4/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/
It should solve issue.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Selveraj,
I had the same issue and was lucky enough to fix it by comparing the new project to a previously created project with an earlier version on Web IDE.
As you can see in the attached screenshot, new version of WeIDE is failing to create “/destinations/<name_of_destination>” for the datasource uri, in the manifest.json file.
See the 3rd difference indicated in the screenshot. Once I made that change my app worked fine.
Hope this helps.
Best,
Mustafa.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Selvaraj,
In your project you need to add the real service url in the manifest.json file under sap.app.datasources (in case of full url I think the url configured should be just /product and should correlate to the path in the neo-app.json file).
Regards,
Guy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your response Guy Blank , I am new to this , I tried what you have mentioned above that is "add the real service url in the manifest.json file under sap.app.datasources". i have mentioned full url in the manifest.json file . Please see that in below screen shot.
But , then also i am facing the same issue , I clicked "show details" for that error, it shown me this
{
"requestUri": "/https://s12hanaxs.hanatrial.ondemand.com/p1941903330trial/opensap/myproducts/services.xsodata/Produc...",
"statusCode": 404,
"statusText": "Not Found",
"headers": [],
"body": "<html><head><title>Error report</title></head><body><h1>HTTP Status 404 - Not Found</h1></body></html>"
}
I am new to this So, please explain me step by step process to get out of this error.
Hi Selvaraj,
The way accessing remote services works for fiori apps on hana cloud is using destinations which are configured in the cockpit and the calls are routed through them.
This routing is also configured in your application's neo-app.json file, so you should not put in the full url in the manifest.json but a relative path to what is configured in your destination.
You can read more here SAP HANA Cloud Platform.
In your case I think the path should just be "/prodcut".
Regards,
Guy
Hi,
this is original neo-app.json file .
neo-app.json :
{
"routes": [
{
"path": "/webapp/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/webapp/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
},
{
"path": "/resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/resources"
},
"description": "SAPUI5 Resources"
},
{
"path": "/test-resources",
"target": {
"type": "service",
"name": "sapui5",
"entryPath": "/test-resources"
},
"description": "SAPUI5 Test Resources"
}
]
}
Hi,
I did all the correction what you have told but After that i got blank page with following Error.
" Uncaught TypeError: Cannot read property 'getCore' of undefined"
and
" Uncaught ReferenceError: $ is not defined"
Kindly find the Screenshot for your reference.
neo-app.json :
manifest.json :
After that I got this blank output ,
Did i done any mistake in this. Please let me know the suggestion .
Hi,
Yeah , I noticed that , now check it i have add it,
In neo-aoo.json :
manifest.json :
After I run this application , I got this error again "Sorry, a technical error occurred! Please try again later."
and i clicked the "show details" , got the following,
{
"requestUri": "/destinations/product/$metadata?sap-documentation=heading",
"statusCode": 200,
"statusText": "OK",
"headers": [],
"body": "\r\n<!DOCTYPE html><head><meta charset='utf-8'><meta content='width=device-width, initial-scale=1.0' name='viewport'><meta content='universalui' name='uitype'><title>Log On</title><link href='https://answers.sap.com/universalui/assets/favicon-6249a7207f185aeac2f455784dcefb1c.png' rel='icon' type='image' /><link href='https://answers.sap.com/universalui/assets/favicon-51d035678350093f7e6da4f3a5fb320d.ico' rel='shortcut icon' type='image/x-icon' /><link href='https://answers.sap.com/universalui/assets/apple-touch-icon-b6b8b9f065ab8640c80a5cd2f1ef0dac.png' rel='apple-touch-icon' /><link rel=\"stylesheet\" media=\"all\" href=\"/universalui/assets/ids-035248d207a61e03414d078e4fda29f4.css\" /><meta name=\"csrf-param\" content=\"authenticity_token\" /><meta name=\"csrf-token\" content=\"EZ25fxGCvFAzKa8p7bSjHRSpI3eAmqiYyuJw+LYi+kXW77+1L0A1CQ+cYPmyvOd7wvz0JdZwFOWebIhO+jFuFQ==\" /><!-- third party cookies check --><!-- same origin protection check --></head><body data-pagetype='Login' data-spid='56a9ec73e4b0b91958373cb7' data-spname='s12hanaxs.hanatrial.ondemand.com'><main class='ids-main'><div class='ids-main__content'><div aria-labelledby='ids-heading-1' class='ids-container' role='dialog'><div class='ids-login-container'><div class='ids-login-sp'><div class='ids-login-sp__logo'><img alt=\"\" title=\"\" id=\"test-sp-logo-img\" src=\"https://accounts.sap.com/ui/public/56a9ec73e4b0b91958373cb7/RESOURCE_LOGO\" /></div><div class='ids-login-sp__sp-name'><h1 class='ids-heading-2' id='test-service-provider-name'></h1></div><div class='ids-login-sp__cta'></div></div><div class='ids-login-login ids-login-login--border'><div class='ids-login-widget'><h1 class='ids-heading-1 ids-heading-1--login' id='ids-heading-1'>Log On</h1><form id=\"logOnForm\" autocomplete=\"off\" role=\"form\" class=\"ids-form ids-form--login\" action=\"/saml2/idp/sso/accounts.sap.com\" accept-charset=\"UTF-8\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"authenticity_token\" value=\"abGPOGVAzmcF/dtahfJ64OMJ1aj0JoQW17CiS2sMXbWuw4nyW4JHPjlIFIra+j6GNVwC+qLMOGuDPlr9Jx/J5Q==\" /><div class='js-global-flashes-area' id='globalMessages'></div><fieldset class='ids-fieldset ids-fieldset--login'><input type=\"hidden\" name=\"xsrfProtection\" value=\"77+9Jg8ZPO+/ve+/vUFxce+/ve+/ve+/vRHvv70YUe+/ve+/vThG77+9bAxH77+977+977+9dDLvv706MTQ2NTI5NDkyNDgxNg\" ><input type=\"hidden\" name=\"method\" value=\"GET\"><input type=\"hidden\" name=\"idpSSOEndpoint\" value=\"https://accounts.sap.com/saml2/idp/sso/accounts.sap.com\"><input type=\"hidden\" name=\"SAMLRequest\" value=\"fVFha4MwEP0rku9Vo26VoIJtLBS2MdYyxr4dMaWBmLhcwrp/P7VfOsYGBwd37917vKsQBj2yNvizeZEfQaKPLoM2yJZFTYIzzAIqZAYGicwLdmgfH1gWp2x01lthNbmh/M8AROm8soZEe16Tt0OZ5x3d8TUveNZlRbkpadnSTdqtu3JDt5xEfLKkDMykmpy9H5ElCQhhg/EYI4yxsAMrijyZ5bNE9WOCaH9BSPQqHS5XJieTPmKQe4MejJ9GKb1fpVOtjzRlWc6Ku3fSVPNJtiBdgzQ7g4ELxnPzToGOrenlAKafBarkFl1dg32aItjzZ6uV+Ipare3n1knwsibeBUminXUD+L9DozFdJqpfnRYoCwZHKdRJyZ4kzVX05wObbw==\"><input type=\"hidden\" name=\"RelayState\" value=\"XS833E1FD7D4D2E248B818A1B0E7E8B1CD\"><input type=\"hidden\" name=\"Signature\" value=\"EZiwEI+07sJhfFYC5t89BcbcgL/TrzqQhRfwnnj2xNBNmeRTfEG+XIE7ky0HUwARAtBGqJ29B3kLhaptzbhiCmNVBj8MFB622M6dZNcgBmBAlfml85TB1QSU9W7J5MAf8npQrDHx+Wme3U8qxKCVt3f3OT2TQVzJ4yPrfZmtk9k=\"><input type=\"hidden\" name=\"SigAlg\" value=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"><input id='targetUrl' name='targetUrl' type='hidden' value='https://accounts.sap.com'><input id='sourceUrl' name='sourceUrl' type='hidden' value=''><input id='org' name='org' type='hidden' value=''><input id='spId' name='spId' type='hidden' value='56a9ec73e4b0b91958373cb7'><input id='spName' name='spName' type='hidden' value='s12hanaxs.hanatrial.ondemand.com'><input id='mobileSSOToken' name='mobileSSOToken' type='hidden' value=''><div class='ids-input-group ids-input-group--text ids-input-group--login ids-input-group--user' id='j_username-group'><div class='ids-label-container'><span class='ids-label-wrap'><label class='ids-label' for='j_username' id='j_username-label'>E-mail, ID, or User Name</label></span></div><div class='ids-control-container'><input autocomplete='off' class='ids-input ids-input--text ids-input--clear js-has-input-clear js-login-toggle-active-input-user' id='j_username' name='j_username' placeholder='E-mail, ID, or User Name' type='text' value='' /><p class='ids-error-block' id='j_username.errors'></p><a class='ids-input-clear js-input-clear' href='#' tabindex='-1'></a></div></div><div class='ids-input-group ids-input-group--text ids-input-group--login ids-input-group--password' id='j_password-group'><div class='ids-label-container'><span class='ids-label-wrap'><label class='ids-label' for='j_password' id='j_password-label'>Password</label></span></div><div class='ids-control-container'><input autocomplete='off' class='ids-input ids-input--text ids-input--clear js-has-input-clear js-login-toggle-active-input-password' id='j_password' name='j_password' placeholder='Password' type='password' /><p class='ids-error-block' id='j_password.errors'></p><a class='ids-input-option ids-utils-hide-mobile' href='https://answers.sap.com/ui/createForgottenPasswordMail?spId=56a9ec73e4b0b91958373cb7' id='forgotPasswordLink'>Forgot password?</a><a class='ids-input-clear js-input-clear' href='#' tabindex='-1'></a></div></div><div class='ids-input-group ids-input-group--checkbox ids-utils-centered' id='rememberme-group'><div class='ids-control-container'><ul aria-labelledby='rememberme-label' class='ids-input-group__items' role='group'><li class='ids-input-group__item'><span class='ids-checkbox-container--option'><input id='rememberme' name='rememberme' type='checkbox' /></span><span class='ids-label-container--option'><span class='ids-label-wrap'><label class='ids-label' for='rememberme' id='rememberme-label'>Remember me</label></span></span></li></ul><p class='ids-error-block' id='rememberme.errors'></p></div></div></fieldset><div class='ids-button-group ids-button-group--centered ids-button-group--login'><button class='ids-button ids-button--primary ids-button--login js-button-login' id='logOnFormSubmit' role='button' type='submit'>Log On</button></div></form></div><ul class='ids-login-options'><li class='ids-login-options__item'><a alt='Forgot password?' href='https://answers.sap.com/ui/createForgottenPasswordMail?spId=56a9ec73e4b0b91958373cb7' title='Forgot password?'>Forgot password?</a></li></ul></div></div></div></div></main><footer class='ids-footer'><div class='ids-footer__inner'><div class='ids-footer__logo-container'><div class='ids-footer__logo'><div id='test-default-logo'><img height=\"38\" src=\"/universalui/assets/sap-logo-powered-by-4a51b4106c08b661e493f6378db9c508.png\" alt=\"Sap logo powered by\" /></div></div></div></div></footer><script src=\"/universalui/assets/application-071dc81cd26845f57e3fe2466de1c56b.js\"></script><script src=\"/universalui/assets/login-5e31c5876a96dbcadd5d83bce9c97cdc.js\"></script><script type='text/javascript'>$(document).ready(function() { var buttons = \"#forgotPasswordLink, #forgotPasswordLinkMobile, #registerLink, #registerLinkMobile\"; var addParamToButtons = function(paramName, paramValue) { $(buttons).each( function() { var link = $(this); var url = link.attr(\"href\"); var paramString; if (url.indexOf('?') >= 0) { paramString = \"&\"; } else { paramString = \"?\"; } paramString += paramName + \"=\" + encodeURIComponent(paramValue); link.attr(\"href\", url + paramString); }); }; if ($.ids) { var targetUrl = $.ids.overlay.getDestinationURI(); $(\"#targetUrl\").attr(\"value\", targetUrl); addParamToButtons(\"targetUrl\", targetUrl); var sourceUrl = $.ids.overlay.getParentURI(); $(\"#sourceUrl\").attr(\"value\", sourceUrl); addParamToButtons(\"sourceUrl\", sourceUrl); } else { }});</script><script type='text/javascript'>function pageType() { var pageType='Undefined'; var pageTypeFromPage = document.body.getAttribute('data-pagetype'); if (pageTypeFromPage != null) { pageType = pageTypeFromPage; } return pageType;};function spName() { var spName='Undefined'; var spNameFromPage = document.body.getAttribute('data-spname'); if (spNameFromPage != null) { spName = spNameFromPage; } return spName;};function spId() { var spId='Undefined'; var spIdFromPage = document.body.getAttribute('data-spid'); if (spIdFromPage != null) { spId = spIdFromPage; } return spId;};var swa = { pubToken: '1f27c1eb-778f-4cbe-83f5-e9aab5b7f148', baseUrl: 'https://ids.warp.sap.com/tracker/', visitorCookieTimeout: 63113852, custom1:{ref:\"pageType\"}, custom2:{ref:\"spName\"}, custom3:{ref:\"spId\"}};(function(){ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=swa.baseUrl+'js/privacy.js'; s.parentNode.insertBefore(g,s);})();</script></body>"
}
Please suggest me to solve.
Hi,
I have try this application with mock server , it shown followed
And, when i check the following url https://webidetesting9692752-p1941903330trial.dispatcher.hanatrial.ondemand.com/destinations/product...
it does not work,
first it ask me to logon and then it shown this Error "HTTP Status 405 - Bad Method"
I'm not an expert on hana xs so i cannot help here. You can try setting the authentication in the destination to noauthentication,then if your service is configured with basic the browser should show the credentials pop-up. If it doesn't then something is not right with your service authentication configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Selvaraj,
Your system destination connection is successful , but did you try to load the metadata for the product in the browser.
It seems like the metadata is not being loaded and hence you are getting the error.
Also when you click on Service URL , first of all it will ask you to select for a system which is missing in your case.
Kindly check it once again.
Regards,
Vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikash,
Thanks for your response and I have created Additional property in HANA Destination ,
"WEBIDEAdditionalData = full_url"
I have included the destination screenshot in previous post. i am using full_url in this project so, it will take the OData data directly from that.
kindly find the screenshot for metadata.
Hi Selvaraj,
You have created an application in Web IDE using a metadata service file in your system.
It could happen either if there is no proper destination in web ide or you have not entered correct OData Service URL in component.js/app descriptor file.
Check if this could help you for destination:
Regards,
Punith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.