File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Argument passing in Restful webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Argument passing in Restful webservices" Watch "Argument passing in Restful webservices" New topic
Author

Argument passing in Restful webservices

Balkishore pandey
Greenhorn

Joined: Apr 19, 2012
Posts: 19
Dear JavaRanch members,
I have a small query, in SOAP i will use the following code to pass argument to a webmethod function


Where interface1_name is the argument i pass. SOAP has @webparam for this sake.

But how can i do the same in Restful GET method. Does Rest has something similar to Webparam, if so could someone give me any example?
Any help would be very much appreciated.
Thanks a ton in advance. Cheers!
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 395
Freely receive, freely give.


Balkishore pandey
Greenhorn

Joined: Apr 19, 2012
Posts: 19
Thank you very much for replying mate!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Argument passing in Restful webservices
 
Similar Threads
WebParam annotation.
webmethod of Doc/Lit bare style with only one header param generates part="" invalid wsdl soap:body
How to get SOAP attachment within web service operation
Consuming SOAP Web Service
Passing array of strings to a netbeans WS method