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