%@ page language="java" import="org.apache.ws.axis.oasis.ping.*, javax.xml.rpc.holders.StringHolder" %> <% String url = request.getParameter ("url"); String scenario = request.getParameter ("scenario").trim(); %>
Server URL: <%= url %>
<% PingServiceLocator service = new PingServiceLocator(); java.net.URL endpoint = new java.net.URL(url); PingPort port = null; if(scenario.equals("1")) port = (PingPort) service.getPing1(endpoint); else if(scenario.equals("2")) port = (PingPort) service.getPing2(endpoint); else if(scenario.equals("3")) port = (PingPort) service.getPing3(endpoint); else if(scenario.equals("4")) port = (PingPort) service.getPing4(endpoint); else if(scenario.equals("5")) port = (PingPort) service.getPing5(endpoint); else if(scenario.equals("6")) port = (PingPort) service.getPing6(endpoint); else if(scenario.equals("7")) port = (PingPort) service.getPing7(endpoint); StringHolder text = new StringHolder("WSS4J - Scenario " + scenario + " @ [" + new java.util.Date(System.currentTimeMillis()) + "]"); %> Request: <%= text.value %>
<% port.ping(new org.apache.ws.axis.oasis.ping.TicketType("WSS4J" + scenario), text); System.out.println(text.value); %> Response: <%= text.value %>
Go Back Copyright © 1999-2004, The Apache Software Foundation