I am trying to use the CXF Addressing Feature and i see the following 
exception while constructing the client object.Is this the right way to 
get ws-addressing running on the JAXWS client?

         ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
        factory.setServiceClass(AuthenticationService.class);
        factory.setAddress(Authentication_SERVICE_URL);
        factory.getFeatures().add(new WSAddressingFeature());
        AuthenticationService client = 
(AuthenticationService)factory.create();

Exception in thread "main" java.lang.IllegalArgumentException: 
com.primavera.ws.p6.authentication.AuthenticationService is not an 
interface
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
        at org.apache.cxf.frontend.ClientProxyFactoryBean.create(
ClientProxyFactoryBean.java:105)
        at com.primavera.wsclient.WSAddressingClient.main(
WSAddressingClient.java:25)

thanks and regards,
Bharath

Reply via email to