Package org.apache.ws.axis.samples.wssec.doall.axisSec

Examples of org.apache.ws.axis.samples.wssec.doall.axisSec.SecPort


            }
            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");
        }
    }
View Full Code Here


            }
            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");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.axis.samples.wssec.doall.axisSec.SecPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.