What does a webservice consist of? [message #201388] |
Sat, 06 October 2007 07:06  |
Eclipse User |
|
|
|
Originally posted by: xdzgor.hotmail.com
Hi
I have used the WTP plugin to make a web-service with Eclipse, and install
it in Tomcat. I have also used Eclipse to make a test client for this web-
service.
But now I would like to know exactly what it is Eclipse has made for me (in
regards to the web-service - I'm not so worried about the client).
I can see under the web-service directory in Tomcat, there are several
subdirectories, and I can see my web-service class file under /WEB-
INF/classes/...
But what are all the files under /WEB-INF/lib? Lots of jar files, like
axis.jar, and jaxrpc.jar, etc. Are they needed?
And what about the files like deploy.wsdd and undeploy.wsdd? What are they,
and are they needed? And also web.xml and server-config-wsdd, they are also
generated for me - what is their syntax?
What I'd really like is to be able to "manually" make a web-service. So I'd
like to know what Eclipse does, and what I need to do if I was just using a
simple text editor, javac, and wsgen for example.
I heard that a webservice also requires a servlet in order to function - is
this correct? (Maybe that's what all the extra .jar files are?)
Thanks,
Peter
|
|
|
|
|
|
|
Re: What does a webservice consist of? [message #201612 is a reply to message #201452] |
Tue, 09 October 2007 11:07  |
Eclipse User |
|
|
|
The JARs in /WEB-INF/lib are Axis1 JARs. They are needed to compile the
generated code and to run the Web service.
The deploy.wsdd and undeploy.wsdd files are generated by the Axis1 emitter.
The file deploy.wsdd is used when deploying the Web service to Axis1
AdminClient. A resulting file server-config.wsdd is generated to represent
what has been deployed to the Axis1 servlet.
The Web Services wizards in WTP handles the following for the user when
creating Axis1 Web service:
- Generate Java code, WSDL file and deployment files
- Add Axis servlet to Web project
- Deploy to Axis servlet
- Add project to server
- Starts the server
If you prefer to do all these yourself, you should refer to
http://ws.apache.org/axis/.
Please note that starting with WTP 2.0, you can also choose the Axis2
runtime when using the Web Services wizard to generate Axis2 Web services.
Regards,
Kathy Chan
"David Carver" <d_a_carver@yahoo.com> wrote in message
news:febeh4$ci2$1@build.eclipse.org...
> Peter K wrote:
>> Right - thanks for the reply. I am actually trying to write a program
>> which itself generates and deploys web-services to Tomcat. (So I was
>> first trying to see what Eclipse/WTP does when it generates a
>> web-service).
>>
>> Would you recommend my program also uses Axis - or is there a
>> better/simpler way to implement and deploy web-services in java?
>
> Well, there are a wide variety of different frameworks that could be used.
> You could also try the JAXWS stuff from Sun and their glassfish project.
> All are going to be pretty similar in complexity and deployment though.
>
> Personally, I'd stick with Axis or Axis 2, but that is a personal
> preference.
|
|
|
Powered by
FUDForum. Page generated in 0.03863 seconds