5960616263646566676869
HttpTransceiver client = new HttpTransceiver(new URL("http://127.0.0.1:"+s.getLocalPort()+"/")); client.setTimeout(100); Simple proxy = SpecificRequestor.getClient(Simple.class, client); try { proxy.hello("foo"); } catch (UndeclaredThrowableException e) { throw e.getCause(); } finally { s.close(); }
5859606162636465666768
HttpTransceiver client = new HttpTransceiver(new URL("http://127.0.0.1:"+s.getLocalPort()+"/")); client.setTimeout(100); Simple proxy = SpecificRequestor.getClient(Simple.class, client); try { proxy.hello("foo"); } catch (AvroRemoteException e) { throw e.getCause(); } finally { s.close(); }