Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using generic types in web service methods

 
sh. garg
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to use generic request and repsonse classes in the a stateless session bean method exposed as a webservice.
Scenario is
1)Request object that takes a generic type. i.e. Request<T>
Now i use this object as the input parameter for a stateless session bean method.
i.e. signature of the method is
Response<Employee> createEmployee(Request<Employee> emp).
Now, when we use @WebService annotation to expose the bean as webservice we do not see the specific type i.e. Employee in this case in the request structure.

Any idea on how can this be used.

Regards,
sh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic