Reputation: 6130
According to the documentation you can nicely test your WS client using http://docs.spring.io/spring-ws/site/apidocs/org/springframework/ws/test/client/MockWebServiceServer.html server.
But there is one precondition your client has to
// MyWebServiceClient extends WebServiceGatewaySupport, and is configured in applicationContext.xml
@Autowired
private MyWebServiceClient client;
extend WebServiceGatewaySupport.
My question is what if I am using another implementation for instance CXF. Is there any exisiting mock server implementation which supports CXF clients?
Upvotes: 0
Views: 752
Reputation: 8287
I've create a simple JUnit rule which lets you mock with a server in CXF. Basically configure your clients using properties, then point them to a webservice instance which delegates to a mock object.
Upvotes: 0
Reputation: 1256
No. The spring-ws-test module is specific to Spring-WS and cannot be used with other frameworks. You can use SoapUI for that, for instance.
Upvotes: 3