/** * @param string the symbol of the stock * @return string the stock price * @soap */ public function asdf($asd) { $params = array("idJugador" => "13"); $clientes = new SoapClient("http://localhost:8080/WsHospital2/services/Servicio?wsdl"); $response = $clientes->mostrarPacientes(); //var_dump($response); $res = $response->mostrarPacientesReturn; $respuesta = "{\"results\":" . $res . "}"; return $respuesta; }