如何使用 1 个会话访问 2 个 Web 服务?机器人框架 [英] How access to 2 Web services with 1 Session? Robot Framework

查看:42
本文介绍了如何使用 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.

这篇关于如何使用 1 个会话访问 2 个 Web 服务?机器人框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆