简体   繁体   English

测试 WSDL Web 服务

[英]Testing WSDL Web Service

I have a bunch of WSDL web service link with me.我有一堆 WSDL web 服务链接。 I need to write automation code to test this service.我需要编写自动化代码来测试这个服务。 What library you all recommended (Spring, or others).你们都推荐什么库(Spring 或其他)。 Any reference website would be good.任何参考网站都会很好。 Thanks.谢谢。

I will suggest you to create Spring Boot projects and use Apache CXF dependencies and plugins, It is simple and efficient both.我建议您创建 Spring 引导项目并使用 Apache CXF 依赖项和插件,既简单又高效。 All you need is to follow some steps:您只需要遵循一些步骤:

1) Copy the WSDL into your project. 1) 将 WSDL 复制到您的项目中。

2) Add cxf-spring-boot-starter-jaxws and cxf-codegen-plugin dependencies. 2) 添加cxf-spring-boot-starter-jaxwscxf-codegen-plugin依赖。

3) Include plugin that contains the path of your WSDL file. 3) 包含包含 WSDL 文件路径的插件。

4) Create a JaxWsProxyFactoryBean client and access your webservice. 4) 创建一个JaxWsProxyFactoryBean客户端并访问您的 Web 服务。

You can take some reference from here https://dzone.com/articles/soap-web-services-with-apache-cxf-and-spring-boot您可以从这里参考https://dzone.com/articles/soap-web-services-with-apache-cxf-and-spring-boot

Hope it helps..!!希望能帮助到你..!!

SoapUI has been around for years. SoapUI已经存在多年了。 I've used it to integrate and test projects even while not working in Java.即使不在 Java 中工作,我也用它来集成和测试项目。 It generates client side code based on the WSDL definition and also test code (including functional, load and security tests).它根据 WSDL 定义生成客户端代码以及测试代码(包括功能、负载和安全测试)。

I'm out of this domain several years.我离开这个领域好几年了。 But it seems that WSO2 still provides Enterprise Integration and related products, check Whether it is relevant at their doc about Publishing a Custom WSDL or their Test Automation Framework但似乎 WSO2 仍然提供企业集成和相关产品,请在他们关于发布自定义 WSDL或他们的测试自动化框架的文档中检查是否相关

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM