使用soapUI消費SAP Cloud for Customer的web service
Hello all, I am really a newbie to Cloud for Customer world and this is my first blog, very simple but I hope it can help some other newbies just the same as me.
I have been working as an application developer in SAP CRM for 5 years, and in CRM we have dedicated work center to create web service based on CRM standard business object.
Just a quick glance at the modeling UI in CRM.
and now I have to do the same in C4C, let’s say I would like to query C4C Opportunity transaction data in my custom application using standard web service provided in C4C. In order to test this consumption, I choose SoapUI.
Here below is detailed step by step screenshot.
(1) Go to workcenter Administrator, then Input and Output management->Service Explorer, you can get a list of all standard inbound services here.
Download the WSDL for later use. If you are working in 1605, you can find a list of all standard web services from SAP help:
Since I would like to query Opportunity data, I choose QueryOpportunityIn, and click “Show full documentation”:
The documentation tells me how to fill the request detail in SoapUI.
(2) Download and install SoapUI. Create a new SOAP project by loading the WSDL downloaded from previous step.
Suppose I would like to retrieve this opportunity data in my C4C system by querying its id:
Of source this example might not make much sense from business perspective as in real world we tend to use other criteria like customer name to query Opportunity. Paste the following xml source code in request view to query on Opportunity 15360.
<soapenv:Envelope xmlns:soapenv="
<soapenv:Header/>
<soapenv:Body>
<glob:OpportunityByElementsQuery_sync_V1>
<!--Optional:-->
<OpportunitySelectionByElements>
<!--Zero or more repetitions:-->
<SelectionByIdentifier>
<!--Optional:-->
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
<!--Optional:-->
<LowerBoundaryIdentifier>15360</LowerBoundaryIdentifier>
</SelectionByIdentifier>
</OpportunitySelectionByElements>
</glob:OpportunityByElementsQuery_sync_V1>
</soapenv:Body></soapenv:Envelope>
Execute this request, I meet with error message: 401 Unauthorized.
Then I manually maintained my business user and password in request property view:
You might also need to maintain proxy setting for SoapUI according to your network landscape.
Once you have finished all such settings, execute request again and now you can see response as expected:
Update 2017-11-29
In case you meet with error message “Authorization role missing” when consuming web service, you might refer to this blog for help: How to resolve error message when calling Web Service in SoapUI – Authorization role missing
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2716715/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用nodejs消費SAP Cloud for Customer上的Web serviceNodeJSCloudWeb
- SAP Cloud for Customer 如何直接消費S/4HANA APICloudAPI
- 如何在SAP CRM裡建立和消費Web serviceWeb
- SAP Cloud for Customer UI Designer裡如何消費Object Value Selector(OVS)CloudUIObject
- 如何處理消費SAP ABAP Web Service時遇到的Unauthorized錯誤WebZed
- 最詳細的 SAP ABAP Web Service 建立和消費步驟講解Web
- 如何使用SAP Cloud for Customer裡的Data SourceCloud
- SAP Cloud for Customer的前世今生Cloud
- SAP Cloud for Customer框架是如何使用JavaScript Promise的Cloud框架JavaScriptPromise
- 消費SAP C4C Web Service時遇到的Authorization role missing錯誤Web
- 使用SAP雲平臺的destination消費Internet上的OData service
- 如何使用API的方式消費SAP Commerce Cloud的訂單服務APICloud
- 如何使用 API 的方式消費 SAP Commerce Cloud 的訂單服務APICloud
- SAP Cloud for Customer Account和individual customer的區別Cloud
- 使用Excel匯入資料到SAP Cloud for Customer系統ExcelCloud
- 機器學習在SAP Cloud for Customer中的應用機器學習Cloud
- SAP 電商雲 Spartacus UI 同 SAP Customer Data Cloud 的整合UICloud
- 如何在 SAP BTP 平臺 ABAP 程式設計環境裡消費基於 SOAP 的 Web Service程式設計Web
- 如何在 SAP BTP 上使用 Integration Suite 消費 S/4HANA Cloud APIUICloudAPI
- 使用Excel消費C4C的OData serviceExcel
- SAP Customer Data Cloud(Gigya)的使用者搜尋實現Cloud
- SAP Cloud for Customer Rule Editor的使用方法和底層工作原理Cloud
- SAP Cloud for Customer的CTI呼叫中心解決方案Cloud
- SAP Cloud for Customer的Mashup位於CustomPane裡Cloud
- SAP Cloud for Customer ABSL的一些優化Cloud優化
- 自開發Web應用和SAP Customer Data Cloud Identity服務的整合WebCloudIDE
- SAP Cloud for Customer的Account Team裡的role如何配置Cloud
- SAP Cloud for Customer裡BusinessPartner, Customer和Employee這些BO的區別Cloud
- SAP Cloud for Customer和SAP Fiori系統裡的OData測試工具Cloud
- 如何把SAP Kyma和SAP Cloud for Customer連線起來Cloud
- SAP Cloud for Customer 標準培訓課程Cloud
- SAP Cloud for Customer Price-計價簡介Cloud
- SAP Cloud for Customer的Container應用設計原理CloudAI
- SAP Cloud for Customer Extensibility的設計與實現Cloud
- SAP Analytics Cloud和Cloud for Customer之間的Single Sign on配置Cloud
- 部署在SAP Cloud Platform CloudFoundry環境的應用如何消費SAP Leonardo機器學習APICloudPlatform機器學習API
- SAP Cloud for Customer使用移動裝置訪問系統的硬體要求Cloud
- SAP Cloud for Customer客戶主資料的地圖整合Cloud地圖