On Wed, Mar 12, 2008 at 6:38 PM, Ajith Ranabahu
<[EMAIL PROTECTED]> wrote:
> Hi,
>  See whether the following answers help
>
>
>  On Wed, Mar 12, 2008 at 5:58 PM, Michael Potter <[EMAIL PROTECTED]> wrote:
>  > Axis2 Crew,
>  >
>  >  I am trying to use Eclipse to create web services.
>  >
>  >  I have created a webservice using the Axis2 Code Generated Wizard and
>  >  feel comfortable with everything it does.
>  >
>  >  I am now trying to use the Axis2 Service Archiver wizard to bundle
>  >  that service and deploy it to tomcat.
>  >
>  >
>  >  The wizard asks for the folder where my new service resides (that is
>  >  easy to answer).
>  >  It then asks for the .wsdl file and the services.xml file.
>
>  Its actually asking for the location of the .class files of the
>  service implementation
>
>
>  >  I would have thought that the wizard would have just used the .wsdl
>  >  and services.xml file that are in the folder from the first question.
>
>  Well it was never meant to do that. What we had in mind when building
>  this tool is that users would either have their generated files or
>  would have hand crafted artifacts that they want to archive into an
>  aar.
>
>
>  >  Is there some reason the wizard needs the additional degree of freedom
>  >  to use a different .wsdl and services.xml file?
>  >
>  >  The wizard also asks for the external libraries.  It seems that I have
>  >  to specify the the axis2 libraries or tomcat can not load the service.
>
>  Nope. These are not the Axis2 libs. These are any external jars needed
>  for your service. Say you are using a specialized math library in your
>  service implementations. Then you have to point to that jar here.
>  Ultimately these jars would end up in the lib folder of the generated
>  aar.
>
>
>  >  Because this wizard is specific for axis2 I would have expected it to
>  >  automatically include the axis2 libraries.
>
>  Axis2 libs are not needed inside the aar files
>
>
>  >  Is there a reason for the wizard to not include the axis2 libraries
>  >  when building a service?
>  >
>  >  It _seems_ to me that this wizard is not doing as much as it should.
>  >  I am a newbie to eclipse so I am asking in hopes that someone can
>  >  enlighten me as to why this wizard makes sense.
>
>  One thing you can easily do with this wizard is to generate an aar for
>  an arbitrary class. Here are the steps
>
>  1. Point to the class file location (say {eclipseproject}/bin) for the 
> location
>  2. skip the WSDL
>  3. add the libs your class would need
>  4. Say generate the services.xml
>  5 Type in the class name and click load. You will see all the public
>  methods in a table - select the ones you want to expose
>  6. create the archive
>
>  Once you deploy this Axis2 will generate a default WSDL for it.
>
>  HTH
>
>  Ajith

Thanks Ajith,

That clears up some of it for me.  I now see that Axis2 Service
Archiver wizard is intended to be more general purpose than I was
guessing.  I was thinking that it was intended to just archive
services that were created by Axis2 Code Generated Wizard.  Maybe what
I want is so trivial that it does not need a wizard?

Is there another way to do what I want?
Is there a command embedded in the build.xml file that will archive the service?
I think it should be easy because the folder already laid out in the
correct format.

If nothing already exists AND there is some consensus that it would be
useful I would like to volunteer to write a wizard that would archive
a well formatted service folder and copy it to the proper directory in
the tomcat/axis2 directory for deployment.

-- 
Michael Potter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to