Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Java Web Services: what tools do I need?

Thread view: 
bruce_phipps@my-deja.com - 04 Jul 2006 12:48 GMT
What software do I need to start learning how to code and deploy
Java-based web services?
At the moment I have a Linux box with J2SDK and Apache installed.

What do I need from:
Java Web Service Developers kit
JAXM
Apache SOAP
Apache Tomcat
Java Application Server
GlassFish

Any *basic* introductions available on to how these all fit together?

Thanks
Bruce
Tomek - 04 Jul 2006 13:10 GMT
Hi,
You need 2 things:
-  Server which supports Java Servlet technology like  Orion, Jetty,
Tomcat  or anything you want
- Webservice framework you want to work with: I strongly advice XFire
from http://xfire.codehaus.org

What you need to do :
1. Create web web aplication project in you favorite IDE
2. Create regular java class with your logic ( any POJO )
3. Put jars from webservice framework distribution to you lib folder
4. Create config file which points to your java class which should be
exposed as webservice
5. Build webapplication
6. Deploy application on your server
6.a Run server
THE END

7. Generate you client code form service wsdl
8. Run client
9. Get promoted by running webservice in 25 min ;)

bruce_phipps@my-deja.com napisal(a):
> What software do I need to start learning how to code and deploy
> Java-based web services?
[quoted text clipped - 12 lines]
> Thanks
> Bruce
bruce_phipps@my-deja.com - 04 Jul 2006 13:29 GMT
Thanks, Tomek. But this all looks a little bit advanced for me at the
moment...

Say I want to take the first newbie steps and code and deploy a "Hello
World" web service.
I don't think I'll need XFire or an IDE to do that, will I?
Do I need an applications server -- or will Apache + Tomcat be OK?

Thanks
Bruce

> Hi,
> You need 2 things:
[quoted text clipped - 35 lines]
> > Thanks
> > Bruce
William Markito - 04 Jul 2006 14:23 GMT
Hi Bruce!
 The easiest way to do a webservice in java (my opinion) is using
Axis. Go read a little bit about it 'cause it's pretty easy.
 Basically, you will install and deploy Axis as a webapp in your
container (Tomcat for eg) and then you will create your simple java
program that you'd like to use as a webservice. After this, just put
this .java file inside a specific folder under Axis webapp structure
and you will be able to access the wsdl for this webservice from a url.
It's very simple, try search and read about Axis and you'll find out.

Regards

> Thanks, Tomek. But this all looks a little bit advanced for me at the
> moment...
[quoted text clipped - 46 lines]
> > > Thanks
> > > Bruce
Tomek - 04 Jul 2006 15:09 GMT
William Markito napisal(a):
> Hi Bruce!
>   The easiest way to do a webservice in java (my opinion) is using
[quoted text clipped - 5 lines]
> and you will be able to access the wsdl for this webservice from a url.
> It's very simple, try search and read about Axis and you'll find out.

As i remeber you should also add .jws extention to java class.  But you
can create service in such way only for fun or to check if your axis is
running, personaly don't know anyony who is using it.
ps.
And belive me, axis isn't the easiest way to do webservices :)  Since i
started using XFire on  my project, i never run axis again.

> > Thanks, Tomek. But this all looks a little bit advanced for me at the
> > moment...
[quoted text clipped - 46 lines]
> > > > Thanks
> > > > Bruce
William Markito - 04 Jul 2006 20:40 GMT
Great! I never heard about xfire... I'll also take a look too!
 Thanks for the tips Tomek! ;)

> William Markito napisal(a):
> > Hi Bruce!
[quoted text clipped - 64 lines]
> > > > > Thanks
> > > > > Bruce
Tomek - 04 Jul 2006 15:01 GMT
Hmm, you need some webservice engine to run webservice, for sure :).
And ofcourse you don't need any IDE, but creating project and its
classes without any IDE can be a little painful.

Tomcat is enough.

Try to download xfire distribution and take a look at book example,
this one of the simplest webservice sample ( java service + interface,
object returnd by service, client class and 1 config file).
( Sorry  i'm writing only about xfire example, but i stoped using axis
long time ago )

bruce_phipps@my-deja.com napisal(a):
> Thanks, Tomek. But this all looks a little bit advanced for me at the
> moment...
[quoted text clipped - 46 lines]
> > > Thanks
> > > Bruce
Part Pic - 05 Jul 2006 08:51 GMT
hello,
If you are interested in the computer,you can come to my picture
www.flickr.com/photos/partpic/.
We are the professional photograph website about the computer.
there are o lot of picture of some kinds of computer ,include
BIM,SUN,HP,EMC,HDS and others.Welcome you!

> What software do I need to start learning how to code and deploy
> Java-based web services?
[quoted text clipped - 12 lines]
> Thanks
> Bruce
olle.sundblad@gmail.com - 05 Jul 2006 16:46 GMT
To learn the basics (which you should) you just need Tomcat.

Look at/edit their examples jsp/servlet, which you can get to from the
Tomcat start page after starting Tomcat (default:
http://localhost:8080).

After getting that to work you could start looking at various
frameworks etc.

/Olle

> What software do I need to start learning how to code and deploy
> Java-based web services?
[quoted text clipped - 12 lines]
> Thanks
> Bruce


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.