Hi, Thanks for the reply.
We want to do this with a live service. Let me take a look at AbstractAegisTest. Thanks, Li bimargulies wrote: > > Do you want to do this with a live service, or just 'on the side'? There > are > lots of unit tests that do the former you can copy from. In fact, > AbstractAegisTest might be what you want to see. > > On Fri, Jun 19, 2009 at 1:29 AM, liw <[email protected]> wrote: > >> >> Hi, we are migrating from xfire to cxf. In xfire, we have the following >> code >> for generating wsdl. >> >> XFire xfire = (XFire)BeanFactory.getBeanInstance("xfire"); >> Service origRegisteredService = >> xfire.getServiceRegistry().getService(serviceName); >> origRegisteredService.getWSDLWriter().write(os); >> >> We need to migrate the above code from xfire to CXF. >> >> 1) Is JavaToWSDLProcessor.generate() the right API to use for generating >> wsdl in CXF? >> 2) If so, given a serviceName, what are the APIs we need to use to get >> the >> ServiceInfo, so we can pass it to JavaToWSDLProcessor.generate() method? >> >> Thanks very much in advice, >> >> Li >> >> >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-generate-wsdl-programmatically-using-cxf--tp24105734p24105734.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/How-to-generate-wsdl-programmatically-using-cxf--tp24105734p24151653.html Sent from the cxf-user mailing list archive at Nabble.com.
