Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

WSDL and MRP document genrator Java library

Thread view: 
Rafal Chojnacki - 05 Dec 2006 10:53 GMT
Hi,

I am looking for Java library for building WSDL document from Java
class when class source code is not available (in other words, from
Class class instance). Any suggestion?

Thanks,
Rafal
Tomek - 05 Dec 2006 11:25 GMT
Rafal Chojnacki napisal(a):
> Hi,
>
[quoted text clipped - 4 lines]
> Thanks,
> Rafal

Try XFire ( xfire.codehaus.org ). You have to create config file with
few lines of xml, put your classes in classpath and then you can run
ant task to generate wsdl.
Rafal Chojnacki - 06 Dec 2006 07:40 GMT
>> 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()


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.