如何存根 wsdl 服务端点?
How to stub wsdl service endpoints?
我想 运行 在 WSDL
客户端应用程序上进行一些集成测试。因此,我希望 WSDL 服务器(不受我控制)始终以相同的 xml 响应进行响应。
我怎样才能做到这一点?是否有任何工具可以提供 wsdl 端点并且总是 return 相同 xml(然后我可以从我的实时日志中获取)?
看看Soap-UI - it has the ability to mock web services exactly as you mentioned using just a wsdl. You can then decide which XML the mocked web service will return, and it will run as a server locally. Instead of pointing to the 'real' server you can then point to your own local endpoint in order to retreive the same response. More information available on my blog here
SOAPUI 提供此功能。以前用过很顺手
或者,如果您不想经历将 WSDL 请求转换为有意义的响应的麻烦,请查看像 mocky 这样的服务,它只是回显有效负载。
我想 运行 在 WSDL
客户端应用程序上进行一些集成测试。因此,我希望 WSDL 服务器(不受我控制)始终以相同的 xml 响应进行响应。
我怎样才能做到这一点?是否有任何工具可以提供 wsdl 端点并且总是 return 相同 xml(然后我可以从我的实时日志中获取)?
看看Soap-UI - it has the ability to mock web services exactly as you mentioned using just a wsdl. You can then decide which XML the mocked web service will return, and it will run as a server locally. Instead of pointing to the 'real' server you can then point to your own local endpoint in order to retreive the same response. More information available on my blog here
SOAPUI 提供此功能。以前用过很顺手
或者,如果您不想经历将 WSDL 请求转换为有意义的响应的麻烦,请查看像 mocky 这样的服务,它只是回显有效负载。