简体   繁体   English

如何跟踪 Web 服务?

[英]How can I trace a Web Service?

I have a Web Service that sends data from SAP to a external system (non-SAP, lets cal it X).我有一个 Web 服务,可以将数据从 SAP 发送到外部系统(非 SAP,我们称之为 X)。

If I run the Function Module (of the WS) in SE37 or the WS in SE80 (Test Service definition) it returns a result (the correct result) but if a user calls the Web Service from system X, the result will differ.如果我在SE37运行(WS 的)功能模块或在SE80 (测试服务定义)中SE37 WS,它会返回一个结果(正确的结果),但如果用户从系统 X 调用 Web 服务,结果将有所不同。

In both scenarios the same parameters are used.在这两种情况下,使用相同的参数。

Is there a way to trace the user who calls the Web Service from system X ?有没有办法跟踪从系统 X 调用 Web 服务的用户?

For example, every time a user calls the Web Service from system X, a system user from SAP runs the Function Module from the WS and I could trace that system user.例如,每次用户从系统 X 调用 Web 服务时,来自 SAP 的系统用户都会从 WS 运行功能模块,我可以跟踪该系统用户。

You can use SRT_UTIL or SRTUTIL t-code for Tracing Utilities for Web Service.您可以使用SRT_UTILSRTUTIL t-code 来跟踪 Web 服务的实用程序。 You need to enable tracing by user.您需要启用用户跟踪。

跟踪配置

NOTE: If your system older (like ECC 6) you cannot find these t-codes.注意:如果您的系统较旧(如 ECC 6),您将无法找到这些 t 代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM