944,138 Members | Top Members by Rank

Oct 22nd, 2009
0

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

Expand Post »
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)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dhanya_piit is offline Offline
16 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: Want submit rss feed to google??
Next Thread in RSS, Web Services and SOAP Forum Timeline: Plz solve the error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC