Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » What does a webservice consist of?
What does a webservice consist of? [message #201388] Sat, 06 October 2007 07:06 Go to next message
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 #201412 is a reply to message #201388] Sun, 07 October 2007 10:27 Go to previous messageGo to next message
David Carver is currently offline David Carver
Messages: 173
Registered: July 2009
Senior Member
Peter K wrote:
> But what are all the files under /WEB-INF/lib? Lots of jar files, like
> axis.jar, and jaxrpc.jar, etc. Are they needed?
Yes they are needed. WTP uses the Apache Axis framework for developing
web services for both the client and the server. The axis.jar and
jaxrpc.jars are related to these frameworks.

>
> 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?

These are again, used by the apache axis framework for configuration of
the server side web service. You can get more information about the
Apache Axis frameworks at:

http://ws.apache.org/axis/

and

http://ws.apache.org/axis2/
Re: What does a webservice consist of? [message #201445 is a reply to message #201412] Sun, 07 October 2007 15:05 Go to previous messageGo to next message
Eclipse User
Originally posted by: xdzgor.hotmail.com

David Carver <d_a_carver@yahoo.com> wrote in
news:feamqr$o6u$1@build.eclipse.org:

> Peter K wrote:
>> But what are all the files under /WEB-INF/lib? Lots of jar files,
>> like axis.jar, and jaxrpc.jar, etc. Are they needed?
> Yes they are needed. WTP uses the Apache Axis framework for
> developing
> web services for both the client and the server. The axis.jar and
> jaxrpc.jars are related to these frameworks.
>
>>
>> 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?
>
> These are again, used by the apache axis framework for configuration
> of the server side web service. You can get more information about
> the Apache Axis frameworks at:
>
> http://ws.apache.org/axis/
>
> and
>
> http://ws.apache.org/axis2/


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?


/Peter
Re: What does a webservice consist of? [message #201452 is a reply to message #201445] Sun, 07 October 2007 17:11 Go to previous messageGo to next message
David Carver is currently offline David Carver
Messages: 173
Registered: July 2009
Senior Member
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.
Re: What does a webservice consist of? [message #201587 is a reply to message #201452] Tue, 09 October 2007 09:57 Go to previous messageGo to next message
Kathy Chan is currently offline Kathy Chan
Messages: 93
Registered: July 2009
Member
The JARs under WEB-INF/lib are JARs from Axis1 v1.4. They are required to
run compile the generated clasess and run the Web service. Files such as
deploy.wsdd and undeploy.wsdd are generated by the Axis1 emitter. The file
server-config.wsdd are generated by the Axis1 when deploying the deploy.wsdd
using the Axis1 AdminClient.

The Web services wizard in WTP makes creating an Axis1 or Axis2 Web service
easy by calling the emitter, adding the Axis1/Axis2 servlet to the Web
project and doing the necessary steps to deploy the Web service. If you
prefer to do all these manually, you should refer to the Apache Axis1 or
Axis2 documentation available on:


"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.
Re: What does a webservice consist of? [message #201612 is a reply to message #201452] Tue, 09 October 2007 11:07 Go to previous message
Kathy Chan is currently offline Kathy Chan
Messages: 93
Registered: July 2009
Member
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.
Previous Topic:Re: An internal error occurred during: "Initializing Java Tooling".
Next Topic:Cannot find the tag library descriptor for XX
Goto Forum:
  


Current Time: Wed Apr 16 07:00:32 EDT 2014

Powered by FUDForum. Page generated in 0.02409 seconds