使用soapUI消费SAP Cloud for Customer的web service

简介: 使用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.


image.png


Just a quick glance at the modeling UI in CRM.


image.png


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.


image.png


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:


image.png


Since I would like to query Opportunity data, I choose QueryOpportunityIn, and click “Show full documentation”:


image.png


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.


image.png


Suppose I would like to retrieve this opportunity data in my C4C system by querying its id:


image.png


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.

image.pngimage.png

Execute this request, I meet with error message: 401 Unauthorized.


image.png


Then I manually maintained my business user and password in request property view:

image.png



You might also need to maintain proxy setting for SoapUI according to your network landscape.



image.png

Once you have finished all such settings, execute request again and now you can see response as expected:


image.png


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


相关文章
|
4月前
|
开发工具 Android开发 开发者
SAP ABAP Cloud 发展简史
SAP ABAP Cloud 发展简史
SAP ABAP Cloud 发展简史
|
11月前
|
安全 测试技术 数据安全/隐私保护
SAP Commerce Cloud Backoffice site 里 Require Authentication 字段的作用
SAP Commerce Cloud Backoffice site 里 Require Authentication 字段的作用
|
27天前
|
Linux C++ Windows
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
【Azure 应用服务】Azure App Service(Windows)环境中如何让.NET应用调用SAP NetWeaver RFC函数
|
27天前
【Azure 云服务】Azure Cloud Service 为 Web Role(IIS Host)增加自定义字段 (把HTTP Request Header中的User-Agent字段增加到IIS输出日志中)
【Azure 云服务】Azure Cloud Service 为 Web Role(IIS Host)增加自定义字段 (把HTTP Request Header中的User-Agent字段增加到IIS输出日志中)
|
4月前
|
UED
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
什么是 SAP Commerce Cloud SmartEdit Product Carousel Component Editor
|
4月前
|
数据库 存储 安全
使用 SAP HANA Cloud 的一些优势
使用 SAP HANA Cloud 的一些优势
使用 SAP HANA Cloud 的一些优势
|
4月前
|
机器学习/深度学习 搜索推荐 UED
SAP Commerce Cloud Context Driven Services 概述
SAP Commerce Cloud Context Driven Services 概述
|
4月前
|
监控 搜索推荐 安全
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
SAP Commerce Cloud Context Driven Services 里 profile-tag.js 的作用介绍
|
4月前
|
存储 消息中间件 搜索推荐
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
SAP Commerce Cloud Context Driven Services 的 clickStreamEvents HTTP 请求
|
4月前
|
机器学习/深度学习 人工智能 搜索推荐
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述
SAP Commerce Cloud 智能销售服务 (Intelligent Selling Services)概述