THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Similarly, here is a client side using the simple front end. note the 'serviceClass', as always with Note the use of the WSDL. Without the WSDL, the simple front end , should be a class, not an interface, since will try to learn
parameters names from Java reflection. As always, Java interfaces don't carry parameter names, and this results in names like 'arg0', 'arg1', etc, which don't match the service.
Code Block | ||||
---|---|---|---|---|
| ||||
import org.apache.cxf.aegis.databinding.AegisDatabinding; import org.apache.cxf.frontend.ClientProxyFactoryBean; ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(serviceClassserviceInterfaceClassObject); factory.setAddress("http://myhost/service"); factory.setWsdlLocation("http://myhost/service?wsdl"); factory.getServiceFactory().setDataBinding(new AegisDatabinding()); MyService client = (MyService) factory.create(); |
...