>> I am looking for Java library for building WSDL document from Java
>> class when class source code is not available (in other words, from
[quoted text clipped - 3 lines]
> few lines of xml, put your classes in classpath and then you can run
> ant task to generate wsdl.
Thank you for your interest. Unfortunately, ANT task do not meet my
needs because my classes are not available during compilation. There
are generated, compiled and load at runtime by my application.
Rafal
Tomek - 06 Dec 2006 08:39 GMT
Rafal Chojnacki napisal(a):
> >> I am looking for Java library for building WSDL document from Java
> >> class when class source code is not available (in other words, from
[quoted text clipped - 7 lines]
> needs because my classes are not available during compilation. There
> are generated, compiled and load at runtime by my application.
I should be more specific :) Ant task is only a wrapper which show how
to use XFire Api to generate WSDL, which you can use at runtime.
The code you need looks like ( i'm writing from the top of my head, so
it can have compilations errors :)
XFireConfigLoader configLoader = new XFireConfigLoader();
XFire xfire = configLoader.loadConfig( CONFIG_LOCATION);
final ServiceRegistry serviceRegistry = xfire.getServiceRegistry();
Service service = serviceRegistry.getService(SERVICE_NAME);
// DO Something with WSDL here
service.getWSDLWriter()