Pessoal, como faço pra chamar um cliente web service em php? Me foi passado o seguinte código mas dá erro de biblioteca.
import java.net.URL;
import org.apache.axis.client.Call; // Não tem essa biblioteca, como faço pra importar?
import org.apache.axis.client.Service; // Não tem essa biblioteca, como faço pra importar?
public class TesteWService {
try {
Service service = new Service();
Call call = (Call) service.createCall();
//URL do WSDL
call.setTargetEndpointAddress(new URL("http://187.62.207.133/soap/server.php?WSDL"));
//Método
call.setOperationName("PausaPreditivo");
//parâmetros
Object[] params = new Object[2];
params[0] = "AQUI-VC-POE-A-VARIAVEL-agente";
Object retval = call.invoke(params);
System.out.println("Retorno: " + retval);
} catch(Exception e) {
System.out.println(e.toString());
}
}