本文就以SAP Cloud for Customer的web service消费这个需求为例,来讲解soapui这个工具的使用步骤。

使用soapui消费web service,最简单的方式是在soapui里直接导入web service的WSDL文件。

为此,我们需要先拿到SAP C4C标准web service的WSDL文件。

  1. Go to workcenter Administrator, then Input and Output management->Service Explorer, you can get a list of all standard inbound services here.

在administator工作中心的input and output management里找到想消费的web service:

点击超链接,把它的WSDL文件下载下来。

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.

  1. Download and install SoapUI. Create a new SOAP project by loading the WSDL downloaded from previous step.

下载安装soapui,此处导入第一步下载的WSDL文件。

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.

把下列的XML字符串复制到soapui面板里:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:zzz="http://sap.com/xi/AP/CustomerExtension/BYD/ZZZZZ"><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>

复制结束之后是这样的:这段字符串是我给soapui发起的web service的请求负载:

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

执行soapui请求,遇到了401 错误,原来我忘记维护用户名和密码了。

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

此处维护消费这个web service的用户名和密码:

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

如果在企业内网的防火墙里使用soapui,还需要在此处设置代理服务器:

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

一切就绪之后,使用soapui能看到web service执行的响应内容了:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

最详细的使用 soapui 消费 SAP Cloud for Customer Web service 的教程相关推荐

  1. 使用nodejs消费SAP Cloud for Customer上的Web service

    Jerry在公众号文章C4C和微信集成系列教程里曾经使用nodejs去消费C4C提供的标准webservice. 看一个具体例子:C4C里Individual Customers可以维护Social ...

  2. SAP Cloud for Customer里如何根据产品ID拿到其UUID

    在我们需要把SAP Cloud for Customer同第三方系统集成时,经常需要在第三方系统里消费SAP Cloud for Customer的API, 这些API往往需要指定SAP C4C对象的 ...

  3. SAP Cloud for Customer 如何直接消费S/4HANA API

    最近有朋友在微信上问我本文标题这个需求,如何在 SAP Cloud for Customer 里实现.正好我在 2018年底参加的 SAP 和沈阳自动化研究所合作设计的一个工业 4.0 示范系统 PO ...

  4. SAP Cloud for Customer UI Designer里如何消费Object Value Selector(OVS)

    先看最后实现的效果: 我有一个字段,用户既手动输入Employee ID,也可以点击字段的矩形框,打开Value help: 假设我选中ID为1的Employee,则其first name和last ...

  5. SAP Cloud for Customer 技术概述

    SAP Cloud for Customer 标准培训课程 文章目录 SAP Cloud for Customer 架构 SAP Cloud for Customer 部署的三种方式 SAP Clou ...

  6. 机器学习在SAP Cloud for Customer中的应用

    关于机器学习这个话题,我相信我这个公众号1500多位关注者里,一定有很多朋友的水平比Jerry高得多.如果您看过我以前两篇文章,您就会发现,我对机器学习仅仅停留在会使用API的层面上. 使用Java程 ...

  7. SAP Cloud for Customer Extensibility的设计与实现

    今天的文章来自Jerry的同事,SAP成都研究院C4C开发团队的开发人员徐欢(Xu Boris).徐欢就坐我左手边的位置,因此我工作中但凡遇到C4C的技术问题,一扭头就可以请教他了,非常方便.下图是他 ...

  8. SAP Cloud for Customer Price-计价简介

    SAP Cloud for Customer(本文以下简称C4C)作为SAP新一代的CRM云产品,其Price功能实现虽不如以前的SAP ERP那么复杂,但是也能满足企业运作中各种Price需求. C ...

  9. 如何在 SAP Cloud for Customer 里自定义消息 Message

    在 SAP Cloud for Customer 里,虽然 Partners 不允许直接登录 ABAP 后台,但仍旧可以通过 Cloud Application Studio 新建显示在 UI 上的消 ...

最新文章

  1. 1044 Shopping in Mars
  2. 函授计算机与科学论文,函授计算机科学与技术论文
  3. php无刷新实现页面更新,使用laravel和ajax实现整个页面无刷新的操作方法
  4. android 漂亮的表单界面,面向ArcGIS for Android的表单界面生成器的设计与实现
  5. CentOS7,zabbix3.4通过,zabbix-Java-gateway监控Tomcat
  6. 添加元素的注意问题 复习 介绍 元素的创建 元素添加的方法 元素移除的方法
  7. C++ Primer 有感(new和delete表达式)
  8. 整理了 25 个前端相关的学习网站和一些靠谱的小工具,都来看看吧
  9. android动态注册广播权限,记动态注册广播权限问题
  10. 我爸的电脑中了勒索病毒
  11. OpenCV自带的CamShift算法解读
  12. Redis 实战场景
  13. fftshift使用
  14. RC电路 CR电路 理解
  15. 新媒体营销方式的优势
  16. 命名实体如何进行概念消歧?
  17. FastBuilder 一款让人上瘾的新一代开发神器
  18. .net framework 4.0 在 VS2010 安装目录下位置 dotNetFx40_Full_x86_x64.exe在磁盘哪个目录?...
  19. Python 实现 Swagger yaml 格式 api 文档合并
  20. 门禁服务器业务导航不显示,门禁一卡通管理软件重大问题解决办法

热门文章

  1. udp与tcp协议介绍
  2. 支持向量机器—SMO算法
  3. R语言与Shapiro正态性检验
  4. java 文本编辑器 源码_java文本编辑器源码
  5. 讲讲数据分析中的同期群模型
  6. SAP UI5 初学者教程之十五 - 对话框和 Fragments 的使用方式试读版
  7. 使用 cx recipe 安装 Hybris Commerce Cloud 之后,遇到 indexer workder failed 错误
  8. By.css 的级联读取
  9. 使用 SAP UI5 系统测试工具 UIVeri5 的一个具体例子
  10. 如何使用 SAP CDS view 中的 currency conversion 功能