Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I need to create a complex web service searching on internet i have found something like that :

SQL
@POST
   @Path("functionname")
   @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML,MediaType.TEXT_HTML})
   @Produces(MediaType.APPLICATION_JSON)
   public String functionname(@FormParam("sc") String sc,@FormParam("cp")company cp) {
       if (fn.checkSTring(sc)) {
               return new Login().Updatefunction(cp);
       } else {
           return "Wrong Parameters Sent";
       }
   }


where comapny is a class that contain string name,description and id cp
trying to access them from Soapui i get error Wrong Parameters Sent .
kindly if they are any demo on how to send complex parameters in restful web service ?and consume them.

Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900