Yep :) you need to set the classloader in your code and invoke
java2wsdl (org.apache.axis.wsdl.Java2WSDL's main method) from your
code. If you run into problems, hop onto the axis-dev mailing list.

-- dims

On Fri, 4 Jun 2004 13:00:22 -0700, Sagar Pidaparthi
<[EMAIL PROTECTED]> wrote:
> 
> I think I understand better.  Please confirm if the following  is
> correct:
> 
> Once the class loader is set to my class loader, java2wsdl command
> internally invokes my Class loader and so it should be able to generate
> wsdl for my classes.
> 
> Is this correct?
> 
> Regards
> 
> Sagar
> 
> 
> 
> -----Original Message-----
> From: Sagar Pidaparthi
> Sent: Friday, June 04, 2004 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Customizing java2wsdl
> 
> Thanks.  I am new to Axis and so here is my understanding of your
> message.
> 
> 1.  Write a class loader that uses my factory and loads the classes into
> memory.
> 
> 2.  set the class loader to be my class loader using
> ClassUtils.setClassLoader.
> 
> 3.  At run time, invoke the class loader to load all my class objects.
> These objects are now in memory.
> 
> 4.  run java2wsdl and pass these objects in memory to this program.
> 
> Questions:
> 
> It is not clear to me how I can invoke java2wsdl command for an object
> in memory.  Can you explain?
> 
> Thanks once again for your help.
> 
> Regards
> 
> Sagar
> 
> -----Original Message-----
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 04, 2004 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Customizing java2wsdl
> 
> One way to do this is as follows...Write your own class loader for
> your classes, then try to use ClassUtils.setClassLoader to set the
> custom classloader and then invvoke java2wsdl as usual.
> 
> -- dims
> 
> On Fri, 4 Jun 2004 11:39:15 -0700, Sagar Pidaparthi
> <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for the reply on customizing Java2WSDL.  Here is a further
> > question.
> >
> > I am assuming that java2wsdl instantiates a java object and
> introspects
> > the object and generates wsdl for this class.  If this is true, my
> plan
> > is to customize java2wsdl and use a factory to instantiate my java
> > object and then let AXIS introspect and generate wsdl for this object.
> >
> > My main requirement is to generate wsdl for a java object generated by
> > my factory.
> >
> > Is this feasible?
> >
> > sagar
> >
> > In the documentation I find a plug-in point for customizing
> > wsdl2java.  Is it possible to customize java2wsdl?
> >
> >
> > sagar
> >
>

Reply via email to