温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

SAP WebIDE OData下拉菜单里的Destination是怎么来的

发布时间:2021-12-31 18:06:03 来源:亿速云 阅读:145 作者:iii 栏目:服务器

这篇文章主要讲解了“SAP WebIDE OData下拉菜单里的Destination是怎么来的”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“SAP WebIDE OData下拉菜单里的Destination是怎么来的”吧!

我今天做开发遇到一个问题:

我有trial和正式的SAP Cloud Platform账号各一个:

其中trial账号的webIDE连接到productive的CloudFoundry:

SAP WebIDE OData下拉菜单里的Destination是怎么来的

productive账号的WebIDE也连接到productive的CloudFoundry:

SAP WebIDE OData下拉菜单里的Destination是怎么来的

我发现在我新建OData服务时,从Service url的下拉菜单里,选择不到我在SAP云平台里创建的Destination.

SAP WebIDE OData下拉菜单里的Destination是怎么来的SAP WebIDE OData下拉菜单里的Destination是怎么来的

怎么感觉trial WebIDE取的Destination来自trial neo环境创建的?

SAP WebIDE OData下拉菜单里的Destination是怎么来的

而productive的WebIDE,system下拉菜单里的Destination也来自productive Neo环境的Destination.

SAP WebIDE OData下拉菜单里的Destination是怎么来的

似乎CloudFoundry环境的Destination根本没有被考虑。

再检查我使用的webIDE的url.

trial:

https:///

SAP WebIDE OData下拉菜单里的Destination是怎么来的

后来发现了一个github issue:

Create a Destination within the Cloud Foundry Environment · Issue #3398 · SAPDocuments/Tutorials

得知如果在SAP WebIDE里创建UI5应用,需要用Destination连结第三方服务时,需要在Neo环境里创建Destination,而不是在CloudFoundry环境里。

为了验证,我再次在Neo环境里创建一个Destination:

SAP WebIDE OData下拉菜单里的Destination是怎么来的SAP WebIDE OData下拉菜单里的Destination是怎么来的

然后果然在WebIDE里看到了这个创建于Neo环境的Destination.

WebIDE Preferences里维护的CloudFoundry endpoint只是开发好的UI5应用部署的目的地。

SAP WebIDE OData下拉菜单里的Destination是怎么来的

那么问题又来了,既然这个UI5应用最终部署在SAP云平台的CloudFoundry环境下,如果CloudFoundry环境没有对应的Destination,运行时的表现是怎样的?

经过我实际测试,发现取不到OData服务的metadata,报500 Internal Server Error的错误。

SAP WebIDE OData下拉菜单里的Destination是怎么来的

于是我把Neo环境里创建的Destination导出,再倒入到CloudFoundry环境,这次发现OData metadata终于能够成功返回了:

SAP WebIDE OData下拉菜单里的Destination是怎么来的

感谢各位的阅读,以上就是“SAP WebIDE OData下拉菜单里的Destination是怎么来的”的内容了,经过本文的学习后,相信大家对SAP WebIDE OData下拉菜单里的Destination是怎么来的这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI