I have the small following test: package com.acme.test; public class serviceClass { String sayHello(String name){ return "Hello " + name; } }
with: package com.acme.test; import org.apache.cxf.aegis.databinding.AegisDatabinding; import org.apache.cxf.frontend.ServerFactoryBean; import org.apache.cxf.aegis.databinding.AegisServiceConfiguration; public class server { public static void main(String[] args) { ServerFactoryBean sf = new ServerFactoryBean(); sf.setServiceClass(serviceClass.class); sf.setAddress("http://localhost:8080/service"); sf.getServiceFactory().setDataBinding(new AegisDatabinding()); sf.getServiceFactory().getServiceConfigurations().add(0, new AegisServiceConfiguration()); sf.create(); } } This looks quite correct with respect to the cxf users' guide. But the wsdl I got looks quite weierd. I am using cxf-2.0-RC ! Does anyone have an idea of what I am doing wrong ? Cheers Guillaume