如何使用 1 个会话访问 2 个 Web 服务?机器人框架

如何使用 1 个会话访问 2 个 Web 服务?机器人框架

问题描述:

我有来自同一个网站的 2 个 Web 服务,我必须通过 1 个会话访问这两个服务

I have 2 Web Services from same web site, I have to access both with 1 Session

示例:

Create Soap Client       ${CURDIR}\\SecurityServiceService.wsdl
Set Proxies     http     ${PROXY}
 ${result}=       Call Soap Method  authenticateUserInternalSecurity      ${USERNAME}   ${PASSWORD}    1   #SecurityServiceService


Create Soap Client       ${CURDIR}\\DelinquentServiceService.wsdl
Set Proxies     http     ${PROXY}
${result}=       Call Soap Method        getMultipleLovBei010                                                   #DelinquentServiceService
     log    ${result}
    delete all sessions

通过安全服务访问拖欠服务.

With the Security service access to Delinquent Services.

我的错误:

WebFault:服务器引发错误:'操作:调用了 getMultipleLovBei010没有有效的会话.'

WebFault: Server raised fault: 'Operation: getMultipleLovBei010 called without a valid session.'

谢谢,

问候

在 SudsLibrary 文档中有一个关键字示例 切换 Soap 客户端.这支持您的方法,所以我猜问题可能有所不同.

In the SudsLibrary documentation there is an example for the keyword Switch Soap client. This supports your approach, so I'm guessing that the problem might be different.