SAP.NET 可以实现与SAP系统的IDOC,FM,BAPI,RFC ,web service方式的连接,进行交互,其中web service是未来SAP与外界进行交互技术发展的趋势,也是ESOA的实现之一。

开发步骤:
这个实例使用BAPI_USER_GET_DETAIL 做为receiver interface 和用户定义outbound 同步interface。

创建response message mapping 。

创建interface mapping 。

创建sender communication channel 类型是SOAP adapter ,使用outbound synchronous interface

创建 receiver communication channel

创建receiver determination

在ID端定义web service,创建WSDL outbound synchronous ,URL http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel

在.net 开发环境下加入web 引用,可以用本地文件,或者远程URL。

编译后会生成CS的类文件,关于sap.net 的应用可以查看sap.net安装后的DEMO,很好,很强大。

开发步骤:
这个实例使用BAPI_USER_GET_DETAIL 做为receiver interface 和用户定义outbound 同步interface。

创建response message mapping 。

创建interface mapping 。

创建sender communication channel 类型是SOAP adapter ,使用outbound synchronous interface

创建 receiver communication channel

创建receiver determination

在ID端定义web service,创建WSDL outbound synchronous ,URL http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel

在.net 开发环境下加入web 引用,可以用本地文件,或者远程URL。

编译后会生成CS的类文件,关于sap.net 的应用可以查看sap.net安装后的DEMO,很好,很强大。