SAP的WebService发布

1、RFC的介绍

上一篇博文“ SAP的RFC接口的发布与JAVA调用”已经介绍了SAP是如何创建RFC接口,这里我们就不再详细讲述了。本文中的WebService是基于RFC建立的,因此没有建立好RFC的朋友们,请先阅读上一篇博文,完成RFC的建立。

2、WebService创建

2.1、调用创建命令

在RFC界面点击Utilities-->More Utilities-->Create Web Service-->From the Function Module
SAP的WebService发布_第1张图片

2.2、定义Web Service

2.2.1、Object Type

输入Service Definition和描述,Endpoint Type选择“FUNC Function Module”,继续
SAP的WebService发布_第2张图片

2.2.2、Choose Endpoint

输入上一篇博文中SE37创建的Function名称,勾选“Name Mapping”,继续
SAP的WebService发布_第3张图片

2.2.3、Configure Service

SOAP Application默认,Profile一般选择"PRF_DT_IF_SEC_NO",勾选Deploy Service,继续
SAP的WebService发布_第4张图片

2.2.4、Enter Package/Request

指定开发包及request,也可以选中为本地模式
SAP的WebService发布_第5张图片

2.2.5、Complete

提示Web Service已创建

SAP的WebService发布_第6张图片

3、发布Web Service

3.1、调用Web Service配置

在SAP中输入事务代码SOAMANAGER,激活IE浏览器,如下图所示
SAP的WebService发布_第7张图片

3.2、点击配置链接

进入IE之后,选择“Business Administration”页签,点击“Web Service Administration”
SAP的WebService发布_第8张图片

3.3、选择定义的Web Service

在Search by中选择“Service”,输入查询条件,点击“Start”按钮
SAP的WebService发布_第9张图片

3.4、选中点击Apply Selection

找到刚才创建的服务,选中后点击“Apply Selection”

SAP的WebService发布_第10张图片

执行成功后,在Configurations页签中可以看到该服务处于Active状态,如下图所示
SAP的WebService发布_第11张图片

3.5、编辑定义的Web Service

SAP的WebService发布_第12张图片

3.6、输入用户名密码

输入用户名密码,Save保存后返回
SAP的WebService发布_第13张图片

3.7、测试WSDL接口

在Overview页签中,可以看到如下提示,并点击“Open WSDL document for selected binding”

SAP的WebService发布_第14张图片

可以看到服务说明如下,记录下当前的网址,如http://xxx.xxx.xxx.xxx:xxx/sap/bc/srt/wsdl/bndg_5774BBD6F65A41DEE10080000A0A6757/wsdl11/allinone/ws_policy/document?sap-client=xxx

SAP的WebService发布_第15张图片

你可能感兴趣的:(SAP,ABAP)