+1 to the "wsldFile" parameter in the service.  The WSDL2Java emitter
should automatically set this parameter.

Question 1:
Is the "wsldFile" path a remote url ?

Question 2:
I am not sure whether I think caching is a good idea for non-JWS files,
since TypeMappingRegistry can change
during processing, and this affects the emitter.



Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                       
                                           
                      Glen Daniels                                                     
                                           
                      <gdaniels@macrome        To:       "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>                    
                      dia.com>                 cc:                                     
                                           
                                               Subject:  Caching generated WSDL        
                                           
                      02/07/2002 11:43                                                 
                                           
                      PM                                                               
                                           
                      Please respond to                                                
                                           
                      axis-dev                                                         
                                           
                                                                                       
                                           
                                                                                       
                                           




Let's say we wanted to cache the WSDL generated by the ?WSDL URLs, and also
perhaps provide a way for a service to specify its own WSDL.  The simple
way to do this might be to specify a WSDL output directory property.  Then
each time a given service's WSDL is requested, we first check for a
ServiceName.wsdl file in that directory and simply send that if it exists
instead of running the emitter.  We don't want the cached WSDL to get out
of sync with the class definitions, so we need a way to say "if the file is
older than the last class reload, regen it".  For non-JWS files, it's
probably good enough to mark when the AxisServer starts up, and then
generate each service once after that.  For JWS classes, we have the time
available and so can be a bit more dynamic.

If you want to specify a static file which should always be used rather
than autogen, perhaps we could simply put that as a parameter of the
<service> deployment:

  <parameter name="wsdlFile" value="/path/to/service.wsdl"/>

What do folks think about this direction?  Should we add it to the to-do
list?

--G



Reply via email to