• Post Reply Bookmark Topic Watch Topic
  • New Topic

session bean method not being pulled while creating web service from this.  RSS feed

 
Saxena Sajal
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was trying to create a sample webservice.
I created a ejb project , web project for router module and asaociated this to an ear.
I created a simple stateless session bean and added a method add there.
I deployed this ejb project on server.
Now I am trying to create a websevice from this one. Here are the steps which I did.
1. Right click on ejb. And select create webservice.
2. Given ejb bottom up web swrvice, implementation as jax-rpc. And service peoject and ear project too.
3. Selected binding as http. And gave router projwct as well.
4.now when I select next rad wizard for generating wsdl does not how the add method of ejb to create wsdl.
It gives no methods are available.

What may be the reason for this.I am using rad 8 and was 7.
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your EJB is Stateless or Singleton bean ?

I would recomend to use JAX-WS. Easy to expose EJB or any POJO as webservice with after adding few annotations on it. Moreover, IBM WAS 7.X + supports JAX-WS (HTTP and JMS endpoints) ;-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!