SAP 创建 Web Services

来源:互联网 发布:校园商店源码 编辑:程序博客网 时间:2024/05/16 08:24

   sap Web Services 
   Web service 就是一个应用程序,它向外界暴露出一个能够通过Web进行调用的API。也就是说,可以利用编程的方法通过Web来调用这个应用程序。
   Web services是建立可互操作的分布式应用程序的新平台。Web service平台是一套标准,它定义了应用程序如何在Web上实现互操作性。你可以用任何你喜欢的语言,在任何你喜欢的平台上写Web service ,只要我们可以通过Web service标准对这些服务进行查询和访问。

SAP 的Web Service 分为ABAP and Java Web Services。

创建Web Service
方法1.T-Code:SE80 选择Package,然后右击在菜单中选择,Create ® Enterprise Services / Web Services ® Web Service.
方法2.T-CODE :SE37 选择一个function module,显示,菜单,Utilities ® More Utilities ®Create Web Service ® From the Function Moduleor From the Function Group
方法3.T-CODE:BAPI  BAPI Explorer

在创建Web service 时,首先要创建Virtual interfaces
Virtual interfaces

Using virtual interfaces, you can define several views of an implementation and publish these separately as a Web service. When you create virtual interfaces, you can rename or hide operations and parameters. You can also define standard values for parameters and convert parameter types.
创建Virtual interfaces
T-CODE:SE80    选择Package 右击:Create ® Enterprise Service / Web Service ®Virtual Interface

Release Web Service
T-CODE:WSConfig
选择web service Service Definition ,Variant ,
创建 release web service.
保存后列表中会出现已release 的web service.

生成WSDL
T-CODE:WSADMIN
执行(Ctrl+F8),生成WSDL(Web Services Description Language)(Ctrl+F9)
服务管理
T-CODE:sicf  管理SAP服务(包含web service)   default_host/sap/bc/srt/rfc/sap/
服务监控:
T-Code:smicm 服务监控

原创粉丝点击