使用soapUI消费SAP Cloud for Customer的web service-阿里云开发者社区

开发者社区> jerrywangsap> 正文

使用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


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
使用jMeter对基于SAP ID service进行Authentication的Restful API进行并发测试
这篇文章本来Jerry只在SAP社区上写了英文版的,后来有两位做Marketing Cloud开发的德国同事,写邮件询问关于文章的更多细节,声称这种方式对他们自己的API性能测试很有用,所以我觉得还是值得用中文再写一遍。
1131 0
SAP Commerce Cloud 导入消费OCC API需要使用的credentials
SAP Commerce Cloud 导入消费OCC API需要使用的credentials
5 0
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
9494 0
使用SAP portal service创建Fiori Launchpad
使用SAP portal service创建Fiori Launchpad
13 0
使用SAP WebIDE开发SAP Fiori Worklist应用消费OData服务
使用SAP WebIDE开发SAP Fiori Worklist应用消费OData服务
21 0
安装SOA SUITE并使用ORACLE XE数据库作为组件要点.
使用高级安装, 在安装SOA SUITE前需要 1.设置ORACLE_HOME 和JAVA_HOME, JAVA要求1.4的, ORACLE_HOME指向为X:\oraclexe\app\oracle\product\10.
599 0
使用SAP CDS view快速创建一个Fiori应用,管理Service Order
使用SAP CDS view快速创建一个Fiori应用,管理Service Order
11 0
使用nodejs消费SAP Cloud for Customer上的Web service
Jerry在公众号文章C4C和微信集成系列教程里曾经使用nodejs去消费C4C提供的标准webservice。
6 0
+关注
2628
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载