I'd like to setup a test environment where I can mock SOAP JAX-WS webservices by providing canned SOAP Body responses in XML files. I still want CXF to apply WS-Policy to the response, so that the right signatures are there, etc.
It would be nice to be able to simply have a generic interface that I can just provide a WSDL and map operations to responses, with the possibility of doing it by XPath too. Which would mean that for a particular operation you could have a range of canned responses based on different XPath expressions. Would it be easy to do with CXF? Can you expose arbitrary endpoints without writing custom Java Code for each web service? Ie, I'm happy to have some common code to set up a bunch of webservices with different WSDL's and canned responses. The purpose is so that I can write integration tests for web services that communicate with other webservices, but I'd like to create mocked/fake versions of the web service dependencies so that running integration tests doesn't require all the real web services to be deployed. -- View this message in context: http://cxf.547215.n5.nabble.com/How-to-provide-mocked-canned-responses-for-CXF-SOAP-JAX-WS-Services-tp5770933.html Sent from the cxf-user mailing list archive at Nabble.com.
