top down web services

A

Andreas Bauer

Hi,

I already worked with RAD 6 and made some simple web projects. Now I
have to create a top down Web Service. I have read several tutorials
from IBM (theeducational ones from the Academic initiative), but these
are too "superficial". I have also bought the book "Developing Web
Services for Web Application" but this doesn't cover what I'm looking
for in details.
Here is what I have accomplished:
1. Create Entity Beans from an existing DB2 schema. Easy with RAD
2. Create a WSDL-File.
3. Import WSDL-File to ejb project and create an EJB-Skeleton from that
WSDL-File
What I need to do:
1. The entity beans are abstract classes which have get/set methods
,for example the username. Can I add there other methods, lets say for
deleteUser in this abstract class? Or where do I have to put them?
2. In the web service implementation I want to access the the entity
beans. So I have to use a find-method to get the local entity bean. But
I need a find method which finds the entity bean by the username or id.
Do I put the implementation in the localhome class where the other find
method is situated.
3. And when I want to access the the database in the deleteUser method,
I create a Datasource,then access via jndi-lookup and execute my sql
statements?, don't I?
4. Is there any more detailed tutorial which explains how to create a
top down web service?

It would be great if anybody could support me, as I need this for my
masterthesis and I'm already stuck with this for a while.

Best regards,

Andi
 
S

Sawssan

Hey Andi,

I don't know how far you got with you thesis but I'm working on almost
the same thing.
I am supposed to develop a couple of web services under
eclipse/Jbuilder (up to me as long as it's a j2EE platform). I chose to
implement them as EJB stateless session beans but didn't really figure
out how to.
If you got any answers to your questions or managed to find a way out
of it i'd love to hear from you.

Thanks in advance.

Sawssan

Andreas Bauer a écrit :
 
R

robert

Andreas Bauer escreveu:
Hi,

I already worked with RAD 6 and made some simple web projects. Now I
have to create a top down Web Service. I have read several tutorials
from IBM (theeducational ones from the Academic initiative), but these
are too "superficial". I have also bought the book "Developing Web
Services for Web Application" but this doesn't cover what I'm looking
for in details.
Here is what I have accomplished:
1. Create Entity Beans from an existing DB2 schema. Easy with RAD
2. Create a WSDL-File.
3. Import WSDL-File to ejb project and create an EJB-Skeleton from that
WSDL-File
What I need to do:
1. The entity beans are abstract classes which have get/set methods
,for example the username. Can I add there other methods, lets say for
deleteUser in this abstract class? Or where do I have to put them?
2. In the web service implementation I want to access the the entity
beans. So I have to use a find-method to get the local entity bean. But
I need a find method which finds the entity bean by the username or id.
Do I put the implementation in the localhome class where the other find
method is situated.
3. And when I want to access the the database in the deleteUser method,
I create a Datasource,then access via jndi-lookup and execute my sql
statements?, don't I?
4. Is there any more detailed tutorial which explains how to create a
top down web service?

It would be great if anybody could support me, as I need this for my
masterthesis and I'm already stuck with this for a while.

Best regards,

Andi

I've done a lot of EJB and web services work. Typically I use JBoss for
several reasons. Have you read their EJB / web services tutorial ?

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWS

HTH,
Robert
http://www.braziloutsource.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top