How to pass input and retrieve the same in restful web services

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Aug 2008
Posts: 16
Reputation: dhanya_piit is an unknown quantity at this point 
Solved Threads: 0
dhanya_piit dhanya_piit is offline Offline
Newbie Poster

How to pass input and retrieve the same in restful web services

 
0
  #1
Oct 22nd, 2009
hi,
am using netbeans to write restful web services.
I want to pass an input and the again retrieve it and display the out put in XML form.

i am giving the path as
@Path("book\{name}\{author}")

and using it as an argument
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. public Book getxml(@PathParam("zip") String zip,@PathParam("div") String div)
  2. {
  3.  
  4. }

am getting an error
illegal argument

wat may be wrong?
please help
Last edited by peter_budo; Oct 22nd, 2009 at 1:08 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC