Receive Json WebService

0

I have to get an answer from an external web service that contains a json, this answer has to reach my web service, let's say https://ejemplo/json and since I'm new using web service I do not know how to do this, my idea is that I come the json to that address and save it for me to manipulate it as necessary, but I'm lost at this point.

So far I have created webservice that receive a request and send a response, here what I try to do is just receive a json to my web service and I save it, but it is no longer necessary to send a response.

    
asked by M. Gar 28.10.2017 в 20:44
source

1 answer

1

Something like that would be your answer, it's an example in java webservices (WSDL)

@WebMethod(operationName = "recibeJson")
public boolean recibeJson(JSON dato) {
    boolean respuesta = false;
    if (dato != null) {
        respuesta = true;
    }
    return respuesta;
}
    
answered by 28.10.2017 в 22:22