Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with resultset in web service method

 
benjamin yap
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i actually have a webservice method that retrieve datas from my oracle database.

I have resultset as a return type. I have problem running this method. I cant return a resultset in a web service method.

I am using netbeans 6.7 IDE

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Right, you cannot return the result set itself but you can extract the data returned in the result set and return the data, perhaps in some kind of data transfer object.
Best wishes!
 
benjamin yap
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Krizsan wrote:Hi!
Right, you cannot return the result set itself but you can extract the data returned in the result set and return the data, perhaps in some kind of data transfer object.
Best wishes!


Hmm could you give me more details or some sample code? that would be good. thanks
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic