}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
SecPort port = (SecPort)service.getSecHttp(endpoint);
/*
* At this point all preparations are done. Using the port we can
* now perform as many calls as necessary.
*/
// perform call
String result = port.secSend("AppName");
System.out.println(result);
if (opts.isFlagSet('t') > 0) {
long startTime = System.currentTimeMillis();
for (int i = 0; i < 20; i++)
port.secSend("AppName");
long endTime = System.currentTimeMillis();
System.out.println("Time used: " + (endTime - startTime) + "ms");
}
}