Hi, You could use the LocalTransport instead of HTTP transport which you could just focus on the business logical things. You can take a look at the Unit test of jaxws [1], and also there are some spring example [2] [1] https://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws [2] https://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/spring
Willem. Vincenzo Vitale wrote: > > Hi, > > I would like to automatic testing my web services out of the box, that is > integrated in an application server I can start in a JUnit test case. > > My idea is using Jetty to launch the application I'm writing and then call > the webservice with a dynamic client configured with Spring (extending > AbstractDependencyInjectionSpringContextTests). BTW I don't like this > approach (launching a web server cannot be permitted in some environment > and > also the port must not be used), moreover I also need to think how to > create > a mock data provider. > > There is a better way to do it? > > > Thanks, > Vicio. > > -- View this message in context: http://www.nabble.com/Automatic-Testing-CXF-Web-Services-out-of-the-box-tf4442775.html#a12686388 Sent from the cxf-user mailing list archive at Nabble.com.
