ABAP-WebService 接口
创建 RFC 函数
SE80,在函数组下,右击->创建,创建函数模块,填写函数模块名称及描述。

创建服务




点击完成,创建成功,记得激活一下

SOAMANAGER 做 web 配置

正常是以下的界面,如果出不来这个界面,把网址中的域名换成服务器的地址试试

找到刚才创建的服务

点击 ZWSTEST 进入进行配置




点击完成,完成配置,生成 WSDL

点击这里可以查看生成的 WSDL,如下图

将 WSDL 发送给外围系统即可。
SOAPUI 测试
打开 SOAPUI,创建 SOAP PROJECT



弹出一个登录的验证,这个登录的验证是登录 SAP 系统的认证。一般情况下我们输入账号密码即可,但是后面外围系统在调用的时候需要将这个验证去掉,我这里用的方法是将账号密码集成到 WSDL 上,具体的方法如下:在 WSDL 的最后面加上
复制代码

这样就跳过了系统登录的验证。进入界面后就可以进行测试了

左边的界面传入值,右边的界面返回值,值顺利返回代表连通性没有问题。最后将 WSDL 发给外围系统即可
转载于:https://blog.csdn.net/LuciferousYam/article/details/121351951
评论