THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
import org.apache.cxf.aegis.databinding.AegisDatabinding; import org.apache.cxf.frontend.ClientProxyFactoryBean; ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(serviceClass); factory.setAddress("http://myhost/service"); factory.getServiceFactory().setDataBinding(new AegisDatabinding()); MyService client = (MyService) factory.create(); |
XFire
...
Compatibility
If you need to ensure that your service is backward compatabile with XFire, you'll want to add one other line:
...