That way, it is only used when the web service is java
, what you have to do is create a class and make the call from there only validate that it responds ok
.
This could be an example of the code you could use
try {
Client client = Client.create();
WebResource webResource = client.resource("http://localhost/tuUrl.php?parametro=xxx");
ClientResponse response = webResource.accept("").get(ClientResponse.class);
if (response.getStatus() != 200) {
throw new RuntimeException("Fallo : Codigo HTTP error : " + response.getStatus());
}
String salida = response.getEntity(String.class);
System.out.println("\n============Plain Text Response============");
System.out.println(output2);
} catch (Exception e) {
e.printStackTrace();
}