简体   繁体   中英

Mock Apache CXF JAX-WS client

I need to test web services in Apache CXF app, therefore, requiring some mechanism to mock a client analogous MockWebServiceClient in Spring WS. Any ideas?

I've created a simple JUnit rule project which helps with mocking the webservice. Basically you configure your client using properties to point to localhost, and mount endpoints at these locations. The endpoint servers delegate to an actual mock.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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