How access to 2 Web services with 1 Session? Robot Framework

99封情书 提交于 2019-12-25 16:10:45

问题


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

Example:

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.

My error:

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

Thanks,

Regards


回答1:


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.



来源:https://stackoverflow.com/questions/46043647/how-access-to-2-web-services-with-1-session-robot-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!