cxf client code


	public static void main(String[] args) {
		JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
		factory.getInInterceptors().add(new LoggingInInterceptor());
		factory.getOutInterceptors().add(new LoggingOutInterceptor());
		factory.setServiceClass(es.depontevedra.soa.facturae.search.FacturaeSearch.class);
		factory.setAddress("http://HOST:PORT/serviciows/servicio?wsdl");
		HelloWorld client = (HelloWorld ) factory.create();
		 
		List<EstadoFactura> reply = client.setHi("Hola");
		System.out.println("Size: " + reply.size());
	}
Anuncios
cxf client code