SAP 向 REST 服务发出 HTTPS 请求 [英] SAP making HTTPS requests to REST service
问题描述
这可能吗?我即将开始一个项目,该项目需要通过 HTTPS 使用 XML 从 SAP 实例调用远程托管服务.有人有 ABAP 代码示例吗?
Is this possible? I'm about to start into a project which requires a call from an SAP instance to a remotely hosted service using XML over HTTPS. Does anyone have sample ABAP code?
推荐答案
SDN 有一篇文章标题为具有 REST 和 ICF 的真实 Web 服务".这仅涵盖服务器端(提供 REST 服务),但也许这可以帮助您入门.还有(可以说相当简洁)客户端的CF开发文档.但是,看起来您必须自己解析正文,只使用 SAP 为您提供的 XML 支持.这就是 REST 的缺点...
There is a SDN article titled "Real Web Services with REST and ICF". This covers the server side (providing a REST service) only, but maybe this could help you getting started. There's also the (arguably rather concise) documentation on client side ICF development. However, it looks like you'll have to parse the body on your own, using nothing but the XML support SAP provides you with. That's the drawback of REST...
这篇关于SAP 向 REST 服务发出 HTTPS 请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!