Java Reference
In-Depth Information
Developing a web service consumer
The web service consumer of the
TicketSOAPService
class will be coded using
the Apache CXF utility classes; we will use a factory class named
JaxWsProxyFactoryBean
that, as the name suggests, can be used to create
proxies for your JAX-WS interfaces. This
factory
is peculiar to Apache CXF,
however it provides a greater control over your web services in terms of logging and
debugging.
Right, now add a class named
TicketWebServiceIT
to your project in the pack-
age
com.packtpub.as7development.chapter8.test
:
package
com.packtpub.as7development.chapter8.test;
import static org.junit.Assert.*;
import java.util.List;
import javax.xml.ws.BindingProvider;
import org.apache.cxf.interceptor.*;
import