soapUI 结合了更多的模拟服务 [英] soapUI combine more mock services

查看:50
本文介绍了soapUI 结合了更多的模拟服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 soapUI 创建一个模拟服务,但不是从单个 wsdl,而是从多个 wsdl,最后创建一个可以部署的单个 WAR.理论上这是可能的,如果我使用不同的 wsdls 创建更多的 soapUI 项目,然后分别启动每个模拟服务.但是这怎么可能将这些不同的服务打包到一个 WAR 实例中,然后连接到不同 URL 上的服务.

I would like to create a mock service with soapUI, but not from a single wsdl, but from several, and at the end, create a single WAR that can be deployed. Theoretically that's possible, if I create more soapUI projects with the different wsdls and then start each mock service separately. But how is this possible to package these different services to one WAR instance, and then connect to the services on different URLs.

谢谢!

推荐答案

创建 1 个 SOAPUI 项目.

Create 1 SOAPUI project.

右键单击项目并添加单击添加 WSDL.

Right click on the project and add click Add WSDL.

对要添加的所有 WSDL 重复.

Repeat for all WSDL's you want to add.

右键单击导入的 WSDL,然后单击 Generate MockService

Right click on a imported WSDL and click Generate MockService

对您要模拟的所有服务重复此操作.

Repeat for all services you wish to mock.

要部署,请右键单击项目,然后单击部署为 War"、包括全局设置"、启用 WebUI".

To deploy right click on the project and click Deploy As War, Include Global settings, Enable WebUI.

将 MockServiceEndpoint 设置为 http://:设置战争文件(这将是上下文根)

Set the MockServiceEndpoint to http://: Set the War File (which will be the context root)

这篇关于soapUI 结合了更多的模拟服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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