如何在SAP C4C里使用ABSL消费第三方Restful API
生活随笔
收集整理的這篇文章主要介紹了
如何在SAP C4C里使用ABSL消费第三方Restful API
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
首先我們得有一個(gè)可以正常工作的Restful API:
然后在Cloud for Customer的Cloud Application Studio里創(chuàng)建Restful API的模型,把第一步可以正常工作的Restful API url填進(jìn)模型里去:
然后在ABSL里使用如下代碼進(jìn)行消費(fèi):
import ABSL;if( this.OutboundDeliveryID.IsInitial() == false){raise already_delivered.Create("E");return; }var HttpMethod = "GET"; var HttpResource = ""; // not required var ContentType = ""; // not required var Body = ""; // not required var HeaderParameter : collectionof NameAndValue; // not requiredvar URLParameter : collectionof NameAndValue;var URLParameterEntry : NameAndValue;URLParameterEntry.Name = "SoID"; URLParameterEntry.Value = this.ID.content;URLParameter.Add(URLParameterEntry);var response = WebServiceUtilities.ExecuteRESTService("JerryExternalService", "JerryExternal", HttpMethod, HttpResource, URLParameter, HeaderParameter,ContentType, Body);this.OutboundDeliveryID = response.Content; raise delivery_message.Create("S", this.OutboundDeliveryID);要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的如何在SAP C4C里使用ABSL消费第三方Restful API的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 为啥国产电动车在欧洲不好卖?海外汽车大V
- 下一篇: SAP技术专家的ABAP调试器培训材料