• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using parameters with JAX-RPC

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use only primitives and classes that are JAX-RPC value types as parameters or return types for the EJB methods defined in the Web service endpoint interface.

But anybody please tell me what if i wanted to use anything like Collection as method parameter or as a return type


 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should never try to return a collection from a web service - return an array of simple types instead. The standard library provides easy conversion from collections to arrays.

Bill
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that helps .Thank you very much .
 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The beloved Java Web Services in a nutshell of O'Reilly lists the data types that can be used as JAX-RPC method arguments and return values -

  • Java Primitive types
  • Wrapper classes for Java primitive types
  • Standard Java classes
  • Value types
  • Holder classes
  • Arrays


  • Regards,
    Dan
     
    Don't get me started about those stupid light bulbs.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic