is my first question and I urgently need to respond. The case is that they help me create a function that returns data from this servlet that happened to me.
SERVLET LIBRARY
srvconsultasbiblio is the servlet that has 3 parameters: getlistaLibros, getlistaTesis, getlistaRevistas. These parameters will return a list in JSON format according to the search terms and the search criteria (title, author, content).
WSBIBLIO Address link
PARAMETER "getlistaLibros" This parameter returns a list of books according to the search criteria (title, author, content) and the terms to search. CALLED link ***
* ANSWER *
{"Result":"OK","Records":[{"codigo":"005.133.TRIG.00","titulo":"PHP 4","autor":"TRIGOS GARCÍA, ESTEBAN","contenido":"PROGRAMACIÓN DE PAGINAS PHP.-VARIABLES Y OPERADORES ","anyo":"2000","editorial":"ANAYA MULTIMEDIA"}]}
Where:
Call parameters:
Search: Keywords that the user enters. Search: Searches can be made by: title, author, content Return: code: Title book code: Book title author: Book author (in case of books with more than one author these are separated by the line change '\ r \ n '). Content: Book content anyo: Publication year of Editorial Book: Book Publisher
As you can see, he tells me that I have 3 parameters, now my question, in JAVA I need to create a function that allows me to send him a String like
String tit="PHP 4";
fun("titulo",tit);
and I returned all the books that have php title 4, remember that it is a servlet and that it returns a json, how can I store the servlet json in java.