aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Which Methods? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Which Methods?" Watch "Which Methods?" New topic
Author

Which Methods?

Sehrish Hasan
Ranch Hand

Joined: Aug 15, 2005
Posts: 43
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.
Gaurav Agnihotri
Ranch Hand

Joined: Jul 06, 2006
Posts: 35
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.


Gaurav Agnihotri<br />SCJP, SCDJWS, IBM Six-Sigma Yellow Belt
Sehrish Hasan
Ranch Hand

Joined: Aug 15, 2005
Posts: 43
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

Joined: Jul 06, 2006
Posts: 35
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)
 
wood burning stoves
 
subject: Which Methods?