summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-11 23:06:58 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-11 23:06:58 +0000
commit3dd7e2c4da9c80b8182a2d04dc129a67aa7910df (patch)
tree71b970aa1c5987564405511d3912044387118fd4 /branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp
parent0f3f9b59b310833f31ba234ee4aefa808649833c (diff)
Moving 1.x branches
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp')
-rw-r--r--branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/SCATestTool.jsp130
-rw-r--r--branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/WEB-INF/web.xml31
2 files changed, 0 insertions, 161 deletions
diff --git a/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/SCATestTool.jsp b/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/SCATestTool.jsp
deleted file mode 100644
index eb219e4cef..0000000000
--- a/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/SCATestTool.jsp
+++ /dev/null
@@ -1,130 +0,0 @@
-<%--/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
- --%>
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%--
- * SCATestService.java
- * written by Chris Ortiz
- * interface class for basic test service
- * version .1 9/22/2006
- *
- *
- --%>
-
-
-<HTML>
-<HEAD>
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1" session="true" autoFlush="true"
- isThreadSafe="true" isErrorPage="false"
- import="org.apache.tuscany.sca.itest.SCATestToolService"
- import="java.io.PrintWriter"
- import="java.io.StringWriter"
- import="org.osoa.sca.CurrentCompositeContext"
- import="org.osoa.sca.CompositeContext"
- %>
- <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <META name="GENERATOR" content="IBM Software Development Platform">
- <TITLE>SCA FVT Test Service Driver</TITLE>
-</HEAD>
-
-<BODY bgcolor="#c8d8f8">
-<H2>SCA FVT Test Tool Client</H2>
-
-<form action="SCATestTool.jsp" method="get"><HR><BR>Choose Binding type:<BR><BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="bind" value="WS"> WS Binding
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="bind" value="EJB"> EJB Binding
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="radio" name="bind" value="SCA" checked> Default Binding<BR><BR><HR>
- <BR>Check Tests to run:<BR><BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="checkbox" name="test" value="Ping First Composite" checked> Ping First Composite
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="checkbox" name="test" value="Ping Second Composite"> Ping Second Composite<BR><BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="checkbox" name="test" value="Data Type Test"> Data Type Test<BR><BR>
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="checkbox" name="test" value="Async One Way"> Async One Way&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- &nbsp;&nbsp;&nbsp;&nbsp;<INPUT type="checkbox" name="test" value="Async Callback"> Async Call Back<BR><BR>
-
-
- <BR>
- <INPUT type="submit" value="Run Test"></FORM>
-<BR>
-
- <%
-
- String bindingchoice = request.getParameter("bind");
- String[] selected = request.getParameterValues("test");
-
- try {
- SCATestToolService scaTestTool;
- if (bindingchoice.equals("WS")) {
- CompositeContext compositeContext = CurrentCompositeContext.getContext();
- scaTestTool = (SCATestToolService) compositeContext.locateService(SCATestToolService.class, "SCATestToolWSReference");
- } else if (bindingchoice.equals("EJB")) {
- CompositeContext compositeContext = CurrentCompositeContext.getContext();
- scaTestTool = (SCATestToolService) compositeContext.locateService(SCATestToolService.class, "SCATestToolEJBReference");
- } else {
- // assume default binding
- CompositeContext compositeContext = CurrentCompositeContext.getContext();
- scaTestTool = (SCATestToolService) compositeContext.locateService(SCATestToolService.class, "SCATestToolSCAReference");
- }
- if (selected != null && selected.length != 0) {
- for (int i = 0; i < selected.length; i++) {
- String value = null;
- if (null != selected[i] && selected[i].equals("Ping First Composite")) {
- value = scaTestTool.doOneHopPing("brio");
- } else if (null != selected[i] && selected[i].equals("Ping Second Composite")){
- value = scaTestTool.doTwoHopPing("brio");
- } else if (null != selected[i] && selected[i].equals("Data Type Test")){
- value = scaTestTool.doDataTypeTest("brio");
- } else if (null != selected[i] && selected[i].equals("Async One Way")){
- value = "Ut Oh! Test tool not complete for oneway testing";
- } else if (null != selected[i] && selected[i].equals("Async Callback")){
- value = "Ut Oh! Test tool not complete for async testing";
- } else {
- value = "Ut Oh! unknown test";
- }
-
-%>
-
-<HR>
-Results from <%=selected[i]%> test with <%=bindingchoice%> binding:
-<P><%=value%>
- <%
- } //for
- } //if
-
- }catch(Exception e){
- e.printStackTrace();
- StringWriter sw= new StringWriter();
- PrintWriter pw= new PrintWriter(sw);
-
- e.printStackTrace(pw);
- pw.flush();
-
-%>
- Whoops!<BR clear="all">
-<PRE>
- Exception &quot;<%=e.getClass().getName()%>&quot; Exception message: &quot;<%=e.getMessage()%>&quot;<BR clear="all">
- <%=sw.toString() %>
-</PRE>
-<% } //catch
-
-%>
-
-</BODY>
-</HTML> \ No newline at end of file
diff --git a/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index fd58cb8b0e..0000000000
--- a/branches/sca-java-0.99/itest/old/bindings/bindingsclient/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<!--
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
- -->
-
-<!DOCTYPE web-app PUBLIC
- "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
- "http://java.sun.com/dtd/web-app_2_3.dtd" >
-
-<web-app>
- <display-name>SCA Test Service Driver</display-name>
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>SCATestTool.jsp</welcome-file>
- </welcome-file-list>
-</web-app>