Łukasz Rzeszotarski Łukasz Rzeszotarski - 1 year ago 154
Java Question

Testing CXF Client with Spring WS Test

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
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download