This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Which Methods?  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am very new to webservices and want to know if any method in a class can be exposed as a webservice? What are the restrictions? What are the requirements for a method to be eligible for exposure as a webservice?

Thanks,
S Hasan.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cant specifically expose a method in a class as a web-service. However what you can do is define an interface with the method that you want to expose and then have an implementation class as a JSE (JAX-RPC Service Endpoint). Hope this helps.
 
Sehrish Hasan
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok... but are there any restrictions for the signature of the method.... For example, the method has to be public, cant have these return types or can have only these paramters???

Any help is appreciated.
Thanks,
S Hasan.
 
Gaurav Agnihotri
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some rules that need to followed while declaring a JAX-RPC Service Endpoint. Please refer to JAX-RPC Notes. Scroll down till the title JAX-PRC Service Endpoint (JSE)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!