diff --git a/appserver/admingui/cluster/src/main/resources/org/glassfish/cluster/admingui/Strings.properties b/appserver/admingui/cluster/src/main/resources/org/glassfish/cluster/admingui/Strings.properties index 8129ba92f1c..c1bd0be9cd6 100644 --- a/appserver/admingui/cluster/src/main/resources/org/glassfish/cluster/admingui/Strings.properties +++ b/appserver/admingui/cluster/src/main/resources/org/glassfish/cluster/admingui/Strings.properties @@ -1,4 +1,5 @@ # +# Copyright (c) 2023 Contributors to the Eclipse Foundation. # Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved. # # This program and the accompanying materials are made available under the @@ -148,7 +149,6 @@ standalone.InstanceName=Standalone Instance Name: #standalone.tab.Resources=Resources #standalone.tab.Monitor=Monitor #standalone.tab.Advanced=Advanced -#standalone.tab.JBI=JBI #standalone.PageTitle=Standalone Server Instances #standalone.TableTitle=Server Instances #standalone.PageHelp=The instance named server cannot be started, stopped or deleted from here. The node agent of the instance must be running to start or stop it. diff --git a/appserver/admingui/core/src/main/resources/org/glassfish/admingui/core/Strings.properties b/appserver/admingui/core/src/main/resources/org/glassfish/admingui/core/Strings.properties index c8b6ba68a69..aa73755776a 100644 --- a/appserver/admingui/core/src/main/resources/org/glassfish/admingui/core/Strings.properties +++ b/appserver/admingui/core/src/main/resources/org/glassfish/admingui/core/Strings.properties @@ -1,4 +1,5 @@ # +# Copyright (c) 2023 Contributors to the Eclipse Foundation. # Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. # # This program and the accompanying materials are made available under the @@ -357,13 +358,6 @@ commonTasks.task.deployCustomMBean.infoTitle=Deploy Custom MBean (.jar) commonTasks.task.deployCustomMBean.infoLinkText=More on Custom MBean (.jar) Deployment commonTasks.task.deployCustomMBean.toolTip=Deploy Custom MBean (.war) - -commonTasks.task.deployJbi=Deploy Java Business Integration (JBI) Service Assembly -commonTasks.task.deployJbi.infoText=A JBI Service Assembly is packaged in a Jar or Zip file. -commonTasks.task.deployJbi.infoTitle=Deploy Java Business Integration (JBI) Service Assembly -commonTasks.task.deployJbi.infoLinkText=More on JBI Service Assembly Deployment -commonTasks.task.deployJbi.toolTip=Deploy Java Business Integration (JBI) Service Assembly - commonTasks.task.jdbcResource=Create New JDBC Resource commonTasks.task.jdbcResource.toolTip=Create New JDBC Resource @@ -464,7 +458,6 @@ common.Naming=Naming common.Security=Security common.Jts=JTS common.Jta=JTA -common.JBI=JBI common.Jaxws=JAXWS common.Admin=Admin common.Deployment=Deployment @@ -819,19 +812,12 @@ configuration.pageTitleHelp=Manage configurations, and view the target server in configurations.pageTitle=Configurations configurations.pageTitleHelp=Manage configurations, and view the target server instances or clusters using the configurations. - - required.field.legend = Indicates required field - -# JBI page resources moved to publish/glassfish/jbi/lib/jbi-admin-gui.jar, built from open-esb source: -# cvs.dev.java.net:/cvs/open-esb/ri-clients/jbi-admin-gui/src/com/sun/jbi/jsf/resources/Bundle.properties - #Common keys desc.Enabled=Enabled desc.Required=Required - #Connector Service headings.ConnService=Connector Service connServ.ConnServiceInfo=The attributes specified apply to all resource adapters deployed in this cluster/server-instance. @@ -839,8 +825,6 @@ connServ.shutdTimeoutLabel=Shutdown Timeout: connServ.shutdTimeoutHelp=Resource Adapters that take longer are ignored and the shutdown procedure continues # Transaction Service -# - ## Connection Pool cp.Title=Connection Pool diff --git a/appserver/admingui/core/src/main/resources/templates/menu.inc b/appserver/admingui/core/src/main/resources/templates/menu.inc index 2f66b5b6e64..acc8b7eb554 100644 --- a/appserver/admingui/core/src/main/resources/templates/menu.inc +++ b/appserver/admingui/core/src/main/resources/templates/menu.inc @@ -1,5 +1,6 @@ - @@ -96,7 +90,6 @@ - diff --git a/appserver/jdbc/admin/src/test/resources/DomainTest.xml b/appserver/jdbc/admin/src/test/resources/DomainTest.xml index 98562d74664..ddcc57500b3 100644 --- a/appserver/jdbc/admin/src/test/resources/DomainTest.xml +++ b/appserver/jdbc/admin/src/test/resources/DomainTest.xml @@ -1,5 +1,6 @@ - - "JBI Framework LifecycleModule" - - @@ -676,7 +673,6 @@ - @@ -694,7 +690,6 @@ - @@ -703,7 +698,6 @@ - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/README deleted file mode 100644 index ba61d94511a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/README +++ /dev/null @@ -1,22 +0,0 @@ -Following are the instructions to run JavaEE service engine developer tests - -1. Start the appserver by running asadmin start-domain command - -2. Start JavaEE service engine and HTTP SOAP binding component using the following commands- - asadmin start-jbi-component sun-javaee-engine - asadmin start-jbi-component sun-http-binding - -3. Start the database by running asadmin start-database (used by transactions tests) - -4. Run tests by running asant all - - - -Setting JBI log levels in glassfish for debugging purposes. - -Java EE service engine: - asadmin set server.log-service.module-log-levels.server=FINE - asadmin set server.log-service.module-log-levels.deployment=FINE - -Other JBI components(BPEL, HTTPBC, etc.): - asadmin set server.applications.lifecycle-module.JBIFramework.property."com\.sun\.jbi\.defaultLogLevel"=FINE diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/README deleted file mode 100644 index d6829442a2f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test Bare Doc/Literal style operations. - -The test case uses: ------------------- - -HTTP SOAP BC as the consumer. - -Java EE Service Engine as the provider. - -client <----> HTTP SOAP BC <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.properties deleted file mode 100644 index f0243d665c2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.xml deleted file mode 100644 index f5916ad5d1b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/build.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/client/SOAPWebConsumer.java deleted file mode 100755 index f57c2515701..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/client/SOAPWebConsumer.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/bare_doc_literal-bc_consumer_se_provider/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider"; - public static void main (String[] args) { - stat.addDescription(testId); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(); - stat.printSummary(testId); - } - - private void addUsingSOAPConsumer() { - com.example.calculator.Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - System.out.println(" Using SOAP binding's consumer to add 500 + 50 = " + port.add(50)); - stat.addStatus(testId, stat.PASS); - System.out.println(" No Exception thrown"); - - } catch(Exception e) { - //e.printStackTrace(); - if(e instanceof jakarta.xml.ws.soap.SOAPFaultException) - stat.addStatus(testId, stat.FAIL); - else { - stat.addStatus(testId, stat.FAIL); - System.out.println(" SOAPFaultException Not thrown"); - } - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/endpoint/Calculator.java deleted file mode 100644 index 92f55abe23b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/endpoint/Calculator.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.*; -import jakarta.jws.soap.SOAPBinding; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.com/Calculator" -) -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -public class Calculator { - public Calculator() {} - - @WebMethod - public int add( - @WebParam(name = "number1", targetNamespace = "http://example.com/Calculator", partName = "part1") - int j - ) throws Exception { - int i = 500; - int k = i +j ; - System.out.println("JBI Test :: bare-rpc-literal bc_consumer_se_provider : " + i + "+" + j +" = " + k); - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 43378e2c8eb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index 12e168268ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index 30f049ce049..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 7d7abfe9b99..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 329a809527a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/bc_consumer_se_provider/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/build.xml deleted file mode 100644 index c0bf2f0b645..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/build.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/README deleted file mode 100644 index b993cc4372f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test Bare Doc/Literal style operations. - -The test case uses: ------------------- - -Java EE Service Engine as the consumer. - -Java EE Service Engine as the provider. - -client <----> servlet <-----> JavaEE SE <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.properties deleted file mode 100644 index eb23c35c49f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.xml deleted file mode 100644 index 1a7623c119e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/build.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client/TestClient.java deleted file mode 100644 index 1912b20b89c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/client/TestClient.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/bare_doc_literal/se_consumer_se_provider"; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - StringBuffer buffer = new StringBuffer(); - String line = null; - boolean found = false; - while ((line = input.readLine()) != null) { - if(line.indexOf("SUCCESS") != -1) found = true; - buffer.append(line + "\n"); - } - log(buffer.toString()); - if(!found) return 505; - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/common/IncomeTaxDetails.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/common/IncomeTaxDetails.java deleted file mode 100644 index 54d8d3d37f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/common/IncomeTaxDetails.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package common; - -public class IncomeTaxDetails { - public String firstName; - public String lastName; - public String status; // salaried, self-employed, student. - public long annualIncome; -} - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/endpoint/Calculator.java deleted file mode 100644 index e736dfb89bd..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/endpoint/Calculator.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.*; -import common.IncomeTaxDetails; -import java.util.Hashtable; -import jakarta.jws.soap.SOAPBinding; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -public class Calculator { - public Calculator() {} - - @WebMethod - public int add( - /* - @WebParam(name = "number1", targetNamespace = "http://example.web.service/Calculator", partName = "part1") - int i , */ - @WebParam(name = "number2", targetNamespace = "http://example.web.service/Calculator", partName = "part2") - int j - ) throws Exception { - int i = 50; - int k = i +j ; - System.out.println("JBI Test :: bare-rpc-literal se_consumer_se_provider : " + i + "+" + j +" = " + k); - return k; - } - -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/webclient/client/Client.java deleted file mode 100644 index 17e0326ca9f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/bare_doc_literal/se_consumer_se_provider/webclient/client/Client.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; -//import common.IncomeTaxDetails; -//import java.util.Hashtable; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Calculator port = service.getCalculatorPort(); - - int k = port.add(505); - printSuccess("SUCCESS :: Sum of 505 and 50 is : ", out,k); - - - } catch(java.lang.Exception e) { - //e.printStackTrace(); - printFailure(out, e.getMessage()); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out, String errMsg) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: Error message - " + errMsg); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(String message, PrintWriter out, long result) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - } - - public void printSuccess(String message, PrintWriter out, String result) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/build.xml deleted file mode 100644 index f2b9b2471dc..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/build.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - -]> - - - &commonSetup; - &commonBuild; - &reporting; - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/build.xml deleted file mode 100644 index 50e495b1526..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/build.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.properties deleted file mode 100644 index a8626ab8979..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.xml deleted file mode 100644 index 093d5f9eb63..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/build.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client/TestClient.java deleted file mode 100644 index a6217035b1b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/client/web"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF Calculator add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[3]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/endpoint/Calculator.java deleted file mode 100644 index 5697ceeccd9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/endpoint/Calculator.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 80f2e5d60f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index ba7b58af39a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index 1fe236894b5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 5b6d8610625..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index d13e6ebeaea..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/assembly/META-INF/jbi.xml deleted file mode 100755 index 9e6cf3e189c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - SunSOAPBinding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/META-INF/jbi.xml deleted file mode 100755 index 07987b7b230..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/endpoints.xml deleted file mode 100755 index e3d7c3e287f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/soap-binding-su/su/endpoints.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - http://example.web.service/Calculator - CalculatorService - - CalculatorPort - provider - http://localhost:8080/jsr208-integration-web-client/webservice/CalculatorService - - - add - http://www.w3.org/2004/08/wsdl/in-out - "" - - http://example.web.service/Calculator - - - http://example.web.service/Calculator - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/webclient/client/Client.java deleted file mode 100644 index 3b62e48b430..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/client/web/webclient/client/Client.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Calculator add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/README deleted file mode 100644 index 9b2a76b12d4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/README +++ /dev/null @@ -1,27 +0,0 @@ -Assumption : Two asadmin domains - domain1 with default port values and domain2 with following values are created, started and openESB product is installed on both the instances along with JMS Binding. - -Domain2 : Expected values for ports are as follows : -instance port : 9080 -admin port : 9848 -jmx port : 9686 - -Execution: - - |--------------domain2-----------------|---------------domain1----------------------| - | | | -client -|-> servlet --> JavaEE SE --> JMS BC --|--> JMS BC --> JavaEE SE --> EJB Web Service| - - -Only one imq broker at 7676 ie. domain1 is used for creating queues. -Filestore /tmp/imqobjects is used for persistence. - - -Instructions to run the test case : - -1. Start domain1 -2. Create domain2 (step one is required so as to avoid port conflicts) -3. start domain2 -4. install JBI on both domains -5. Install jms binding component on both the domains. To install on domain2 use "-Djbi.port=9686" as argument. - -Execute asant diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/broker_passfile b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/broker_passfile deleted file mode 100644 index eda23d63159..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/broker_passfile +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -imq.imqcmd.password=admin diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.properties deleted file mode 100644 index 2bff0d6154d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.properties +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.xml deleted file mode 100644 index 87b712c02ea..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/build.xml +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-sun-web.xml deleted file mode 100644 index 70bbae87832..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-sun-web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-web.xml deleted file mode 100644 index 19c131c6434..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client-web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client/TestClient.java deleted file mode 100644 index 3986d04e5c9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/ejb-jmsbc/consumer"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF Calculator add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[WebSvcTest-Hello Appserver Tester !]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/assembly/META-INF/jbi.xml deleted file mode 100644 index 16580c8d723..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - client_ejb_consumer_assembly - This is an SA for JMS Binding - - - - - client_ejb_consumer_su - This is an SU that is deployed to the jms binding - - - client_ejb_consumer_su.jar - SunJMSBinding - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService.wsdl deleted file mode 100644 index 0561652f3f7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService_schema1.xsd deleted file mode 100644 index 87266b5c9d9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/HelloEJBService_schema1.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/META-INF/jbi.xml deleted file mode 100644 index 6a13eb62f60..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/jms-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/webclient/client/Client.java deleted file mode 100644 index 8cf7c5a104e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/consumer/webclient/client/Client.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - Hello port = service.getHelloEJBPort(); - // Get Stub -/* - BindingProvider stub = (BindingProvider)port; - //String endpointURI ="http://localhost:8080/soap/ejb/noname/helloendpoint"; - String endpointURI ="http://localhost:12015/HelloEJBPort"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); -*/ - String ret = port.sayHello("Appserver Tester !"); - System.out.println("Return value from webservice:"+ret); - - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Calculator add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/HelloEJB.java deleted file mode 100644 index 2239b6dc629..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - public String sayHello(String who) { - System.out.println("**** EJB Called"); - return "WebSvcTest-Hello " + who; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/assembly/META-INF/jbi.xml deleted file mode 100644 index 0727c3884b3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - client_ejb_provider_assembly - This is an SA for JMS Binding - - - - - client_ejb_provider_su - This is an SU that is deployed to the jms binding - - - client_ejb_provider_su.jar - SunJMSBinding - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService.wsdl deleted file mode 100644 index 99d85f5073e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService_schema1.xsd deleted file mode 100644 index 87266b5c9d9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/HelloEJBService_schema1.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/META-INF/jbi.xml deleted file mode 100644 index 4ce153b8af9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/ejb-jmsbc/provider/jms-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/README deleted file mode 100644 index 068e2676e84..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/README +++ /dev/null @@ -1,9 +0,0 @@ -This is a two way message exchage sample. - -This sample exercises JavaEE SE as both Consumer & Provider. - -Execution path: - - Client <-----> Servlet <-----> Java SE Consumer <---> NMR <----> Java SE Provider <---> EndPoint - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.properties deleted file mode 100644 index bcf46c197f1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.xml deleted file mode 100644 index 05f5572d6f5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/build.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-sun-web.xml deleted file mode 100644 index cd1f76e6251..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/adder - - - http://example.web.service/Adder - AdderPort - -service.web.example.adder.Adder - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client/TestClient.java deleted file mode 100644 index 0dedaf5dbca..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/client/TestClient.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - public boolean found1 = false; - - private static String testId = "jbi-serviceengine/inout-sample"; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - //for(int i=0; i<1000; i++) { - int code = invokeServlet(url); - //System.out.println("client ID : " + i); - report(code); - //} - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("Value is") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/endpoint/Adder.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/endpoint/Adder.java deleted file mode 100644 index d4e4c11a20a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/endpoint/Adder.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="Adder", - serviceName="AdderService", - targetNamespace="http://example.web.service/Adder" -) -public class Adder { - public Adder() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i -j ; - System.err.println(i + "-" + j +" = " + k); - return k; - - /* - if(i == 101) - throw new RuntimeException("This is my exception in add ..."); - */ - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 80f2e5d60f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService.wsdl deleted file mode 100644 index 6e3f3892811..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService.wsdl +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService_schema1.xsd deleted file mode 100644 index 16ff25115ed..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/AdderService_schema1.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 8fd0032e47c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 21de1eb1c2e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/web.xml deleted file mode 100644 index 6b4f966e97e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Adder Service - AdderWAR - - - Endpoint for Adder Web Service - AdderWebService - Adder - endpoint.Adder - 0 - - - - Adder - /webservice/AdderService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/webclient/client/Client.java deleted file mode 100644 index 526b0da8e2b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/inout-sample/webclient/client/Client.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.adder.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/adder") AdderService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Adder port = service.getAdderPort(); - System.out.println("port is : " + port); - int result = port.add(101, 2); - System.out.println("result is : " + result); - //printFailure(out); - printSuccess(out, result); - } catch(java.lang.Exception e) { - e.printStackTrace(); - //printSuccess(out); - printFailure(out); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: SOAPFaultException not thrown"); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out, int result) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Value is : " + result); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.properties deleted file mode 100644 index e128fe8c0de..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.properties +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.xml deleted file mode 100644 index fa8ac036c7d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/jbi_commons.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/README deleted file mode 100644 index f6a8de2ae5b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/README +++ /dev/null @@ -1,9 +0,0 @@ -This is a one way message exchage sample. - -This sample exercises JavaEE SE as both Consumer & Provider. - -Execution path: - - Client <-----> Servlet <-----> Java SE Consumer <---> NMR <----> Java SE Provider <---> EndPoint - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.properties deleted file mode 100644 index 54a07a55af5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.xml deleted file mode 100644 index df2eb2f3ebe..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/build.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-sun-web.xml deleted file mode 100644 index 35e6a8abf28..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/oneway - - - http://example.web.service/OneWay - OneWayPort - -service.web.example.oneway.OneWay - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client/TestClient.java deleted file mode 100644 index 251153c4a5e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/client/TestClient.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/oneway"; - public boolean found1 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - //for(int i=0; i<100; i++) { - int code = invokeServlet(url); - report(code); - //} - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - //if(line.indexOf("Exception thrown Successfully") != -1) - if(line.indexOf("Endpoint is invoked successfully") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/endpoint/OneWay.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/endpoint/OneWay.java deleted file mode 100644 index edfc1049025..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/endpoint/OneWay.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="OneWay", - serviceName="OneWayService", - targetNamespace="http://example.web.service/OneWay" -) -public class OneWay { - public OneWay() {} - - @WebMethod(operationName="subtract", action="urn:Subtract") - @Oneway - public void subtract(int i, int j) { - System.out.println("*** Inside subtract("+i+", "+j+")"); - int k = i -j ; - if(i == 101) - throw new RuntimeException("This is my exception in subtract ..."); - } - - @WebMethod(operationName="sayHi", action="urn:SayHi") - @Oneway - public void sayHi() { - System.out.println("*** Hi from OneWay"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index e35e14806ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_oneway_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_oneway - consumer service to the soap binding - - - client_web_oneway_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index 43879bca18f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index 443882a637c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 2e5b2a1df22..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 27b0432f80a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/web.xml deleted file mode 100644 index 9d85b50a0e5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the OneWay Service - OneWayWAR - - - Endpoint for OneWay Web Service - OneWayWebService - OneWay - endpoint.OneWay - 0 - - - - OneWay - /webservice/OneWayService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/webclient/client/Client.java deleted file mode 100644 index 0db1725f56a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/oneway/webclient/client/Client.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.oneway.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/oneway") OneWayService service; - //static OneWay port; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - OneWay port = service.getOneWayPort(); - //if (port == null) port = service.getOneWayPort(); - System.out.println("port is : " + port); - port.subtract(101, 2); - port.sayHi(); - printSuccess(out); - } catch(java.lang.Exception e) { - e.printStackTrace(); - printFailure(out); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Endpoint invocation failed."); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Endpoint is invoked successfully."); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/report.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/report.xml deleted file mode 100644 index 094e365ecbb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/report.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/resultCount.sh b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/resultCount.sh deleted file mode 100644 index 1fa7e14ce90..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/resultCount.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -FILE=$APS_HOME/test_resultsValid.xml -echo "input file=$FILE" - -TOTAL=30 -PASSED=`grep "pass" $FILE | wc -l` -FAILED=`grep "fail" $FILE | wc -l` -TOTAL_RUN=`expr $PASSED + $FAILED ` -DNR=`expr $TOTAL - $TOTAL_RUN` - -echo "" -echo "************************" -echo "PASSED= $PASSED" -echo "------------ =========" -echo "FAILED= $FAILED" -echo "------------ =========" -echo "DID NOT RUN= $DNR" -echo "------------ =========" -echo "Total Expected=$TOTAL" -echo "************************" -echo "" - -echo "************************">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -date>>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "-----------------------">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "PASSED= $PASSED">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "------------ =========">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "FAILED= $FAILED">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "------------ =========">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "DID NOT RUN= $DNR">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "------------ =========">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "Total Expected=$TOTAL">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; -echo "************************">>$APS_HOME/devtests/webservice/jbi-serviceengine/count.txt; diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/README deleted file mode 100644 index a79e5d88ea9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test RPC/Literal style operations with the bundled WSDL. - -The test case uses: ------------------- - -HTTP SOAP BC as the consumer. - -Java EE Service Engine as the provider. - -client <----> HTTP SOAP BC <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.properties deleted file mode 100644 index bd251a908ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.xml deleted file mode 100644 index 11824e35447..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/build.xml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/client/SOAPWebConsumer.java deleted file mode 100755 index 79c5e24cb1d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/client/SOAPWebConsumer.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -import service.web.example.calculator.*; -import jakarta.xml.ws.*; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/rpc-literal-bundled-wsdl-bc-consumer-se-provider/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/rpc-literal/bc_consumer_sc_provider/bundled-wsdl"; - - public static void main(String[] args) { - stat.addDescription(testId); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(); - stat.printSummary(testId); - } - - private void addUsingSOAPConsumer() { - Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - - IncomeTaxDetails itDetails = new IncomeTaxDetails(); - itDetails.setFirstName( "bhavani"); - itDetails.setLastName("s"); - itDetails.setAnnualIncome( 400000); - itDetails.setStatus("salaried"); - - long startTime = System.currentTimeMillis(); - long ret = 0; - // Make 100 calls to see how much time it takes. - //for(int i=0; i<1000; i++) { - ret = port.calculateIncomeTax(itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - ); - //} - long timeTaken = System.currentTimeMillis() - startTime; - - //int ret = port.add(1, 2); - printSuccess("Your income tax is : Rs ", ret, timeTaken); - startTime = System.currentTimeMillis(); - int k = port.add(505, 50); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Sum of 505 and 50 is : ", k, timeTaken); - - startTime = System.currentTimeMillis(); - String hi = port.sayHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Output from webservice : ", hi, timeTaken); - - /* - startTime = System.currentTimeMillis(); - port.printHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", "Webservice has successfully printed hi in server.log", timeTaken); - - startTime = System.currentTimeMillis(); - port.printHiToMe("JavaEEServiceEngine"); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", "Webservice has successfully printed hi to me in server.log", timeTaken); - */ - stat.addStatus(testId, stat.PASS); - - } catch(java.lang.Exception e) { - stat.addStatus(testId, stat.FAIL); - } - } - - public void printFailure(String errMsg) { - System.out.println(""); - System.out.println(""); - System.out.println("TestServlet"); - System.out.println(""); - System.out.println(""); - System.out.println("

"); - System.out.println("Test FAILED: Error message - " + errMsg); - System.out.println("

"); - System.out.println(""); - System.out.println(""); - } - - public void printSuccess(String message, long result, long timeTaken) { - System.out.println("\n\n"); - System.out.println(message + result); - System.out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - - public void printSuccess(String message, String result, long timeTaken) { - System.out.println("\n\n"); - System.out.println(message + result); - System.out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/common/IncomeTaxDetails.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/common/IncomeTaxDetails.java deleted file mode 100644 index 54d8d3d37f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/common/IncomeTaxDetails.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package common; - -public class IncomeTaxDetails { - public String firstName; - public String lastName; - public String status; // salaried, self-employed, student. - public long annualIncome; -} - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/endpoint/Calculator.java deleted file mode 100644 index 55b94c62a7e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/endpoint/Calculator.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.*; -import jakarta.jws.soap.SOAPBinding; -import common.IncomeTaxDetails; - -@WebService( -name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator", - wsdlLocation = "WEB-INF/wsdl/CalculatorService.wsdl" - ) - @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) - - public class Calculator { - - public static final String testName = "\nTest :: rpc-literal-bundled-wsdl-bc-consumer-se-provider : "; - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add( - @WebParam(name = "int_1", partName = "int_1") int i, - @WebParam(name = "int_2", partName = "int_2") int j - ) throws Exception { - int k = i +j ; - System.out.println(testName + i + "+" + j +" = " + k); - return k; - } - - @WebMethod(operationName="calculateIncomeTax", action="urn:CalculateIncomeTax") - public long calculateIncomeTax(IncomeTaxDetails details - , IncomeTaxDetails details2 - , IncomeTaxDetails details3 - , IncomeTaxDetails details4 - , IncomeTaxDetails details5 - , IncomeTaxDetails details6 - , IncomeTaxDetails details7 - , IncomeTaxDetails details8 - , IncomeTaxDetails details9 - , IncomeTaxDetails details10 - ) { - long income = details.annualIncome; - System.out.println(testName + "Annual income = " + income); - long taxRate = 30; // 30% - long taxToBePaid = income / taxRate; - System.out.println(testName +"Tax to be paid = " + taxToBePaid); - return taxToBePaid; - } - - @WebMethod(operationName="sayHi", action="urn:SayHi") - public String sayHi() { - return testName + "Hi from sayHi()"; - } - - @WebMethod(operationName="printHi", action="urn:PrintHi") - @Oneway - public void printHi() { - System.out.println(testName +"Hi from printHi()"); - } - - @WebMethod(operationName="printHiToMe", action="urn:PrintHiToMe") - @Oneway - public void printHiToMe(String name) { - System.out.println(testName +"Hi to " + name + " from printHiToMe()"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 43378e2c8eb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index f59836b3d5a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index bb5ebd98ab2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index a6064c86e0b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 6b6593f00a7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService.wsdl deleted file mode 100644 index 80efa777a0a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService_schema1.xsd deleted file mode 100644 index d06b5bb916b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/bundled-wsdl/wsdl/CalculatorService_schema1.xsd +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/README deleted file mode 100644 index fad576ebff5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test RPC/Literal style operations with one WSDL importing another WSDL. - -The test case uses: ------------------- - -HTTP SOAP BC as the consumer. - -Java EE Service Engine as the provider. - -client <----> HTTP SOAP BC <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.properties deleted file mode 100644 index edbec45259d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.xml deleted file mode 100644 index 59f201c2282..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/build.xml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/client/SOAPWebConsumer.java deleted file mode 100755 index 30679ea4d11..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/client/SOAPWebConsumer.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -import service.web.example.calculator.*; -import jakarta.xml.ws.*; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/rpc-literal-bundled-wsdl-bc-consumer-se-provider/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/rpc-literal/bc_consumer_sc_provider/wsdl-import"; - - public static void main(String[] args) { - stat.addDescription(testId); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(); - stat.printSummary(testId); - } - - private void addUsingSOAPConsumer() { - Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - - IncomeTaxDetails itDetails = new IncomeTaxDetails(); - itDetails.setFirstName( "bhavani"); - itDetails.setLastName("s"); - itDetails.setAnnualIncome( 400000); - itDetails.setStatus("salaried"); - - long startTime = System.currentTimeMillis(); - long ret = 0; - // Make 100 calls to see how much time it takes. - //for(int i=0; i<1000; i++) { - ret = port.calculateIncomeTax(itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - ); - //} - long timeTaken = System.currentTimeMillis() - startTime; - - //int ret = port.add(1, 2); - printSuccess("Your income tax is : Rs ", ret, timeTaken); - startTime = System.currentTimeMillis(); - int k = port.add(505, 50); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Sum of 505 and 50 is : ", k, timeTaken); - - startTime = System.currentTimeMillis(); - String hi = port.sayHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Output from webservice : ", hi, timeTaken); - - /* - startTime = System.currentTimeMillis(); - port.printHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", "Webservice has successfully printed hi in server.log", timeTaken); - - startTime = System.currentTimeMillis(); - port.printHiToMe("JavaEEServiceEngine"); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", "Webservice has successfully printed hi to me in server.log", timeTaken); - */ - stat.addStatus(testId, stat.PASS); - - } catch(java.lang.Exception e) { - stat.addStatus(testId, stat.FAIL); - } - } - - public void printFailure(String errMsg) { - System.out.println(""); - System.out.println(""); - System.out.println("TestServlet"); - System.out.println(""); - System.out.println(""); - System.out.println("

"); - System.out.println("Test FAILED: Error message - " + errMsg); - System.out.println("

"); - System.out.println(""); - System.out.println(""); - } - - public void printSuccess(String message, long result, long timeTaken) { - System.out.println("\n\n"); - System.out.println(message + result); - System.out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - - public void printSuccess(String message, String result, long timeTaken) { - System.out.println("\n\n"); - System.out.println(message + result); - System.out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/common/IncomeTaxDetails.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/common/IncomeTaxDetails.java deleted file mode 100644 index 54d8d3d37f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/common/IncomeTaxDetails.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package common; - -public class IncomeTaxDetails { - public String firstName; - public String lastName; - public String status; // salaried, self-employed, student. - public long annualIncome; -} - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/endpoint/Calculator.java deleted file mode 100644 index 55b94c62a7e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/endpoint/Calculator.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.*; -import jakarta.jws.soap.SOAPBinding; -import common.IncomeTaxDetails; - -@WebService( -name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator", - wsdlLocation = "WEB-INF/wsdl/CalculatorService.wsdl" - ) - @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) - - public class Calculator { - - public static final String testName = "\nTest :: rpc-literal-bundled-wsdl-bc-consumer-se-provider : "; - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add( - @WebParam(name = "int_1", partName = "int_1") int i, - @WebParam(name = "int_2", partName = "int_2") int j - ) throws Exception { - int k = i +j ; - System.out.println(testName + i + "+" + j +" = " + k); - return k; - } - - @WebMethod(operationName="calculateIncomeTax", action="urn:CalculateIncomeTax") - public long calculateIncomeTax(IncomeTaxDetails details - , IncomeTaxDetails details2 - , IncomeTaxDetails details3 - , IncomeTaxDetails details4 - , IncomeTaxDetails details5 - , IncomeTaxDetails details6 - , IncomeTaxDetails details7 - , IncomeTaxDetails details8 - , IncomeTaxDetails details9 - , IncomeTaxDetails details10 - ) { - long income = details.annualIncome; - System.out.println(testName + "Annual income = " + income); - long taxRate = 30; // 30% - long taxToBePaid = income / taxRate; - System.out.println(testName +"Tax to be paid = " + taxToBePaid); - return taxToBePaid; - } - - @WebMethod(operationName="sayHi", action="urn:SayHi") - public String sayHi() { - return testName + "Hi from sayHi()"; - } - - @WebMethod(operationName="printHi", action="urn:PrintHi") - @Oneway - public void printHi() { - System.out.println(testName +"Hi from printHi()"); - } - - @WebMethod(operationName="printHiToMe", action="urn:PrintHiToMe") - @Oneway - public void printHiToMe(String name) { - System.out.println(testName +"Hi to " + name + " from printHiToMe()"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/assembly/META-INF/jbi.xml deleted file mode 100755 index 43378e2c8eb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService.wsdl deleted file mode 100644 index f59836b3d5a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService_schema1.xsd deleted file mode 100644 index bb5ebd98ab2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/META-INF/jbi.xml deleted file mode 100755 index a6064c86e0b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/endpoints.xml deleted file mode 100755 index 6b6593f00a7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/sun-http-binding/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService.wsdl deleted file mode 100644 index 8024780e134..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService.wsdl +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService_schema1.xsd deleted file mode 100644 index d06b5bb916b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/CalculatorService_schema1.xsd +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/MessageTypes.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/MessageTypes.wsdl deleted file mode 100644 index 84228b83dec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/bc_consumer_sc_provider/wsdl-import/wsdl/MessageTypes.wsdl +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/build.xml deleted file mode 100644 index 63f8174f18d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/build.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/README deleted file mode 100644 index d7c90e0976e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test RPC/Literal style operations with the bundled WSDL. - -The test case uses: ------------------- - -Java EE Service Engine as the consumer. - -Java EE Service Engine as the provider. - -client <----> servlet <-----> JavaEE SE <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.properties deleted file mode 100644 index 7824ae94fc2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.xml deleted file mode 100644 index df2ca7c9a5e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/build.xml +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client/TestClient.java deleted file mode 100644 index 9efef11ad97..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/client/TestClient.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/rpc-literal/se_consumer_se_provider/bundled_wsdl"; - - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - StringBuffer buffer = new StringBuffer(); - String line = null; - boolean found = false; - while ((line = input.readLine()) != null) { - if(line.indexOf("SUCCESS") != -1) found = true; - buffer.append(line + "\n"); - } - log(buffer.toString()); - if(!found) return 505; - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/common/IncomeTaxDetails.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/common/IncomeTaxDetails.java deleted file mode 100644 index 54d8d3d37f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/common/IncomeTaxDetails.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package common; - -public class IncomeTaxDetails { - public String firstName; - public String lastName; - public String status; // salaried, self-employed, student. - public long annualIncome; -} - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/endpoint/Calculator.java deleted file mode 100644 index b39a2c29800..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/endpoint/Calculator.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.*; -import jakarta.jws.soap.SOAPBinding; -import common.IncomeTaxDetails; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator", - wsdlLocation = "WEB-INF/wsdl/CalculatorService.wsdl" - ) -@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) - -public class Calculator { - - public static final String testName = "\nTest :: rpc-literal-bundled-wsdl : "; - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add( - @WebParam(name = "int_1", partName = "int_1") int i, - @WebParam(name = "int_2", partName = "int_2") int j - ) throws Exception { - int k = i +j ; - System.out.println(testName + i + "+" + j +" = " + k); - return k; - } - - @WebMethod(operationName="calculateIncomeTax", action="urn:CalculateIncomeTax") - public long calculateIncomeTax(IncomeTaxDetails details - , IncomeTaxDetails details2 - , IncomeTaxDetails details3 - , IncomeTaxDetails details4 - , IncomeTaxDetails details5 - , IncomeTaxDetails details6 - , IncomeTaxDetails details7 - , IncomeTaxDetails details8 - , IncomeTaxDetails details9 - , IncomeTaxDetails details10 - ) { - long income = details.annualIncome; - System.out.println(testName + "Annual income = " + income); - long taxRate = 30; // 30% - long taxToBePaid = income / taxRate; - System.out.println(testName +"Tax to be paid = " + taxToBePaid); - return taxToBePaid; - } - - @WebMethod(operationName="sayHi", action="urn:SayHi") - public String sayHi() { - return testName + "Hi from sayHi()"; - } - - @WebMethod(operationName="printHi", action="urn:PrintHi") - public void printHi() { - System.out.println(testName +"Hi from printHi()"); - } - - @WebMethod(operationName="printHiToMe", action="urn:PrintHiToMe") - public void printHiToMe(String name) { - System.out.println(testName +"Hi to " + name + " from printHiToMe()"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/assembly/META-INF/jbi.xml deleted file mode 100755 index 3add32cfc40..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - rpc-literal-bundled-wsdl-se-consumer-se-provider - Client web calculator service assembly - - - - rpc-literal-bundled-wsdl - provider service - - - rpc-literal-bundled-wsdl-web.war - sun-javaee-engine - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/su/META-INF/jbi.xml deleted file mode 100755 index 23e1bd2d151..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/javaee-se-serviceunit/su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/sun-web.xml deleted file mode 100644 index 833de5287b5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/sun-web.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - -rpc-literal-bundled-wsdl - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/webclient/client/Client.java deleted file mode 100644 index af9c9bf5347..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/webclient/client/Client.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; -//import common.IncomeTaxDetails; -//import java.util.Hashtable; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Calculator port = service.getCalculatorPort(); - IncomeTaxDetails itDetails = new IncomeTaxDetails(); - itDetails.setFirstName ( "bhavani"); - itDetails.setLastName ("s"); - itDetails.setAnnualIncome ( 400000); - itDetails.setStatus ("salaried"); - - long startTime = System.currentTimeMillis(); - long ret = 0; - // Make 100 calls to see how much time it takes. - //for(int i=0; i<1000; i++) { - ret = port.calculateIncomeTax(itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - ); - //} - long timeTaken = System.currentTimeMillis() - startTime; - - //int ret = port.add(1, 2); - printSuccess("Your income tax is : Rs ", out,ret, timeTaken); - startTime = System.currentTimeMillis(); - int k = port.add(505, 50); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Sum of 505 and 50 is : ", out,k, timeTaken); - - startTime = System.currentTimeMillis(); - String hi = port.sayHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Output from webservice : ", out, hi, timeTaken); - - startTime = System.currentTimeMillis(); - port.printHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", out, "Webservice has successfully printed hi in server.log", timeTaken); - - startTime = System.currentTimeMillis(); - port.printHiToMe("JavaEEServiceEngine"); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", out, "Webservice has successfully printed hi to me in server.log", timeTaken); - - } catch(java.lang.Exception e) { - //e.printStackTrace(); - printFailure(out, e.getMessage()); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out, String errMsg) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: Error message - " + errMsg); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(String message, PrintWriter out, long result, long timeTaken) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - - public void printSuccess(String message, PrintWriter out, String result, long timeTaken) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService.wsdl deleted file mode 100644 index 80efa777a0a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService.wsdl +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService_schema1.xsd deleted file mode 100644 index d06b5bb916b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/bundled_wsdl/wsdl/CalculatorService_schema1.xsd +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/README deleted file mode 100644 index cfddd2205af..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/README +++ /dev/null @@ -1,11 +0,0 @@ -This is a test case to test RPC/Literal style operations with generated WSDL. - -The test case uses: ------------------- - -Java EE Service Engine as the consumer. - -Java EE Service Engine as the provider. - -client <----> servlet <-----> JavaEE SE <-----NMR------> JavaEE SE <------> webservice - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.properties deleted file mode 100644 index f77f303f447..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.xml deleted file mode 100644 index cc42c0225fc..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/build.xml +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client/TestClient.java deleted file mode 100644 index 767f2cc0c10..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/client/TestClient.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/rpc-literal/se_consumer_se_provider/generated_wsdl"; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - StringBuffer buffer = new StringBuffer(); - String line = null; - boolean found = false; - while ((line = input.readLine()) != null) { - if(line.indexOf("SUCCESS") != -1) found = true; - buffer.append(line + "\n"); - } - log(buffer.toString()); - if(!found) return 505; - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/common/IncomeTaxDetails.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/common/IncomeTaxDetails.java deleted file mode 100644 index 54d8d3d37f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/common/IncomeTaxDetails.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package common; - -public class IncomeTaxDetails { - public String firstName; - public String lastName; - public String status; // salaried, self-employed, student. - public long annualIncome; -} - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/endpoint/Calculator.java deleted file mode 100644 index dc593bc24dc..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/endpoint/Calculator.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; -import common.IncomeTaxDetails; -import java.util.Hashtable; -import jakarta.jws.soap.SOAPBinding; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -@SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) -public class Calculator { - - public static final String testName = "\nTest :: rpc-literal-generated-wsdl : "; - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(testName + i + "+" + j +" = " + k); - //throw new java.lang.Exception("This is my exception"); - return k; - } - - @WebMethod(operationName="calculateIncomeTax", action="urn:CalculateIncomeTax") - public long calculateIncomeTax(IncomeTaxDetails details - , IncomeTaxDetails details2 - , IncomeTaxDetails details3 - , IncomeTaxDetails details4 - , IncomeTaxDetails details5 - , IncomeTaxDetails details6 - , IncomeTaxDetails details7 - , IncomeTaxDetails details8 - , IncomeTaxDetails details9 - , IncomeTaxDetails details10 - ) { - long income = details.annualIncome; - System.out.println(testName + "Annual income = " + income); - long taxRate = 30; // 30% - long taxToBePaid = income / taxRate; - System.out.println(testName +"Tax to be paid = " + taxToBePaid); - return taxToBePaid; - } - - @WebMethod(operationName="sayHi", action="urn:SayHi") - public String sayHi() { - return testName + "Hi from sayHi()"; - } - - @WebMethod(operationName="printHi", action="urn:PrintHi") - public void printHi() { - System.out.println(testName +"Hi from printHi()"); - } - - @WebMethod(operationName="printHiToMe", action="urn:PrintHiToMe") - public void printHiToMe(String name) { - System.out.println(testName +"Hi to " + name + " from printHiToMe()"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/webclient/client/Client.java deleted file mode 100644 index af9c9bf5347..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/rpc_literal/se_consumer_se_provider/generated_wsdl/webclient/client/Client.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; -//import common.IncomeTaxDetails; -//import java.util.Hashtable; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Calculator port = service.getCalculatorPort(); - IncomeTaxDetails itDetails = new IncomeTaxDetails(); - itDetails.setFirstName ( "bhavani"); - itDetails.setLastName ("s"); - itDetails.setAnnualIncome ( 400000); - itDetails.setStatus ("salaried"); - - long startTime = System.currentTimeMillis(); - long ret = 0; - // Make 100 calls to see how much time it takes. - //for(int i=0; i<1000; i++) { - ret = port.calculateIncomeTax(itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - , itDetails - ); - //} - long timeTaken = System.currentTimeMillis() - startTime; - - //int ret = port.add(1, 2); - printSuccess("Your income tax is : Rs ", out,ret, timeTaken); - startTime = System.currentTimeMillis(); - int k = port.add(505, 50); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Sum of 505 and 50 is : ", out,k, timeTaken); - - startTime = System.currentTimeMillis(); - String hi = port.sayHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("Output from webservice : ", out, hi, timeTaken); - - startTime = System.currentTimeMillis(); - port.printHi(); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", out, "Webservice has successfully printed hi in server.log", timeTaken); - - startTime = System.currentTimeMillis(); - port.printHiToMe("JavaEEServiceEngine"); - timeTaken = System.currentTimeMillis() - startTime; - printSuccess("SUCCESS : ", out, "Webservice has successfully printed hi to me in server.log", timeTaken); - - } catch(java.lang.Exception e) { - //e.printStackTrace(); - printFailure(out, e.getMessage()); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out, String errMsg) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: Error message - " + errMsg); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(String message, PrintWriter out, long result, long timeTaken) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } - - public void printSuccess(String message, PrintWriter out, String result, long timeTaken) { - if(out == null) return; - out.println("\n\n"); - out.println(message + result); - out.println("Time taken to invoke the endpoint operation is : " + timeTaken + " milliseconds."); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/README deleted file mode 100644 index 3914cb49849..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/README +++ /dev/null @@ -1 +0,0 @@ -This directory contains tests for the security feature of JavaEE service engine. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/build.xml deleted file mode 100644 index 513121a84c6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/build.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/README deleted file mode 100644 index e070591696c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/README +++ /dev/null @@ -1,12 +0,0 @@ -It tests the security feature of JavaEE service engine. JavaEE SE is used on consumer as well as on the provider side. -An EJB webservice is invoked by a servlet that requires authentication. This webservice method returns the caller principal associated with the invocation. -A temporary file user is created in this test. - -Here is the invocation flow- - -1. Standalone client invokes the servlet after passing proper user credential. -2. Apserver invokes the servlet with a Principal. -3. Servlet calls the EJB webservice. -4. EJB webservice returns the caller principal associated with the EJBContext. -5. Servlet sends the returned value of EJB webservice in the response. -6. Client checks whether the returned principal matches with the one it was invoked. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.properties deleted file mode 100644 index 3c364992497..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.xml deleted file mode 100644 index 4ad78f3b5fb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/build.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-sun-web.xml deleted file mode 100644 index 3457894171d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-sun-web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - user - user - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-web.xml deleted file mode 100644 index 8e2c646edda..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client-web.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - - 54 - - - - UserConstraint - - User - - /webclient/RequestProcessor/* - GET - POST - - - - user - - - - BASIC - file - - - user - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client/TestClient.java deleted file mode 100644 index f81e35abdc7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/client/TestClient.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; -import java.nio.charset.StandardCharsets; -import java.util.Base64; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String description = "jbi-serviceengine/security/jse_only"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(description); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(description); - } - - public void doTest(String[] args) { - - String url = args[0]; - String passwd = args[1]; - try { - int code = invokeServlet(url,passwd); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url, String userPassword) throws Exception { - log("Invoking url = " + url+", password = " + userPassword); - URL u = new URL(url); - String encoding = Base64.getEncoder().encodeToString(userPassword.getBytes(StandardCharsets.UTF_8));; - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - c1.setRequestProperty ("Authorization", "Basic " + encoding); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EJB webservice IS") != -1) - found1 = true; - if(line.indexOf("[JBI-SecurityTest PrincipalSent=user PrincipalGot=user]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(description, stat.PASS); - } - - private void fail() { - stat.addStatus(description, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/HelloEJB.java deleted file mode 100644 index a6e1fc091b6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import java.security.Principal; -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; -import jakarta.ejb.SessionContext; -import jakarta.annotation.Resource; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - @Resource private SessionContext ctx; - - public String sayHello(String who) { - System.out.println("**** sayHello("+ who+")"); - Principal p = ctx.getCallerPrincipal(); - String principal = (p == null)? "NULL": p.getName(); - System.out.println("****EJB: principal = " + principal); - return "JBI-SecurityTest " + who + " PrincipalGot="+principal; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/webclient/client/Client.java deleted file mode 100644 index 29e95d9ec8c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/security/jse_only/webclient/client/Client.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.http.*; -import java.io.PrintWriter; -import java.security.Principal; - -import jakarta.xml.ws.*; - -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - Principal p = req.getUserPrincipal(); - String principal = (p==null)? "NULL": p.getName(); - System.out.println("****Servlet: principal = " + principal); - - Hello port = service.getHelloEJBPort(); - String ret = port.sayHello("PrincipalSent="+principal); - System.out.println("Return value from webservice:"+ret); - - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EJB webservice IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - } catch(Exception e) { - e.printStackTrace(); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/build.xml deleted file mode 100644 index 7253bbafeb6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/build.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/build.xml deleted file mode 100644 index 387de911470..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/build.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.properties deleted file mode 100755 index bc96034b752..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.properties +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.xml deleted file mode 100755 index b7ac9a5906e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/build.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - -]> - - - &commonSetup; - &commonBuild; - &buildProperties; - &commonEjbAnnotationsBuild; - &jbiCommon; - &jbiBuild; - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/Hi.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/Hi.java deleted file mode 100755 index bc4b627e886..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/Hi.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.jaxws; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/jaxws") -public interface Hi { - - public String sayHi(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/HiEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/HiEJB.java deleted file mode 100755 index 3657f8420d2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/endpoint/jaxws/HiEJB.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.jaxws; - -import jakarta.jws.WebService; -import jakarta.ejb.Stateless; - -@WebService(endpointInterface="endpoint.jaxws.Hi",targetNamespace="http://endpoint/jaxws") -@Stateless -public class HiEJB implements Hi { - - public String sayHi(String who) { - System.out.println("In EJB2"); - return "WebSvcTest-Hi" + who; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 399e3b73913..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - ejb_noname_HiEJB_consumer_assembly - This is an AU for Soap Binding deployments - - - - ejb_noname_HiEJB_consumer_su - consumer service to the soap binding - - - ejb_noname_HiEJB_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService.wsdl deleted file mode 100755 index 2e0886c1e29..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService_schema1.xsd deleted file mode 100755 index f5f3373bd19..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/HiEJBService_schema1.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 4444c961a67..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 0e59034ada0..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_ejb/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.properties deleted file mode 100755 index 7b5c71676c4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.xml deleted file mode 100755 index 0f9676eac90..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/build.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-sun-web.xml deleted file mode 100755 index 171f360393c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/subtractor - - - http://example.web.service/Subtractor - SubtractorPort - -service.web.example.subtractor.Subtractor - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-web.xml deleted file mode 100755 index 22df5e6fc52..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - SubtractorServlet - SubtractProcessor - client.Client - - - SubtractProcessor - /webclient/SubtractProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/endpoint/Subtractor.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/endpoint/Subtractor.java deleted file mode 100755 index 645f8e2bdf8..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/endpoint/Subtractor.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Subtractor", - serviceName="SubtractorService", - targetNamespace="http://example.com/Subtractor" -) -public class Subtractor { - static int count = 0; - public Subtractor() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i -j ; - count++; - System.out.println(i + "-" + j +" = " + k); - System.out.println("Count is: "+count); - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 9d5fb26a5a8..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_subtractor_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_subtractor - consumer service to the soap binding - - - client_web_subtractor_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 97b4c1aae9b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService.wsdl deleted file mode 100755 index f53b925b2c6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService_schema1.xsd deleted file mode 100755 index 759b5eec09a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/SubtractorService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 2a064b58c54..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/sun-web.xml deleted file mode 100755 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/web.xml deleted file mode 100755 index 8616107b9d5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Subtractor Service - SubtractorWAR - - - Endpoint for Subtractor Web Service - SubtractorWebService - Subtractor - endpoint.Subtractor - 0 - - - - Subtractor - /webservice/SubtractorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/webclient/client/Client.java deleted file mode 100755 index 304899d43ff..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/another_servlet/webclient/client/Client.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.subtractor.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/subtractor") SubtractorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - Subtractor port = service.getSubtractorPort(); - int ret = port.add(5, 2); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Subtractor add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.properties deleted file mode 100644 index 46e1a58ac61..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.properties +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.xml deleted file mode 100644 index 1d085f40b7f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/build.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - -]> - - - &commonSetup; - &commonBuild; - &buildProperties; - &commonEjbAnnotationsBuild; - &jbiCommon; - &jbiBuild; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/JAXWSClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/JAXWSClient.java deleted file mode 100644 index 5307587a194..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/JAXWSClient.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; - -import endpoint.jaxws.HelloEJBService; -import endpoint.jaxws.Hello; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class JAXWSClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/ejb/hello"; - - @WebServiceRef - static HelloEJBService service; - - public static void main(String[] args) { - stat.addDescription(testId); - JAXWSClient client = new JAXWSClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - try { - Hello port = service.getHelloEJBPort(); - for (int i=0;i<10;i++) { - String ret = port.sayHello("Appserver Tester !"); - if(ret.indexOf("WebSvcTest-Hello") == -1) { - System.out.println("Unexpected greeting " + ret); - stat.addStatus(testId, stat.FAIL); - return; - } - System.out.println(ret); - } - stat.addStatus(testId, stat.PASS); - } catch(Exception e) { - e.printStackTrace(); - stat.addStatus(testId, stat.FAIL); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumer.java deleted file mode 100755 index 3fb9a1d87ef..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumer.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.BindingProvider; - -import endpoint.jaxws.HelloEJBService; -import endpoint.jaxws.Hello; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPEjbConsumer { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/server/ejb/hello"; - @WebServiceRef - static HelloEJBService service; - - public static void main(String[] args) { - stat.addDescription(testId); - SOAPEjbConsumer client = new SOAPEjbConsumer(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - try { - Hello port = service.getHelloEJBPort(); - // Get Stub - BindingProvider stub = (BindingProvider)port; - //String endpointURI ="http://localhost:8080/soap/ejb/noname/helloendpoint"; - String endpointURI ="http://localhost:12015/HelloEJBPort"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - String ret = port.sayHello("Appserver Tester !"); - if(ret.indexOf("WebSvcTest-Hello") == -1) { - System.out.println("Unexpected greeting " + ret); - stat.addStatus(testId, stat.FAIL); - return; - } - System.out.println(ret); - stat.addStatus(testId, stat.PASS); - } catch(Exception e) { - e.printStackTrace(); - stat.addStatus(testId, stat.FAIL); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumerNonHttpBC.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumerNonHttpBC.java deleted file mode 100755 index 91454d51ec0..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/client/SOAPEjbConsumerNonHttpBC.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.BindingProvider; - -import endpoint.jaxws.HelloEJBService; -import endpoint.jaxws.Hello; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPEjbConsumerNonHttpBC { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/ejb/hello"; - - @WebServiceRef - static HelloEJBService service; - - public static void main(String[] args) { - stat.addDescription(testId); - SOAPEjbConsumerNonHttpBC client = new SOAPEjbConsumerNonHttpBC(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - try { - Hello port = service.getHelloEJBPort(); - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:8080/soap/ejb/noname/helloendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - String ret = port.sayHello("Appserver Tester !"); - if(ret.indexOf("WebSvcTest-Hello") == -1) { - System.out.println("Unexpected greeting " + ret); - stat.addStatus(testId, stat.FAIL); - return; - } - System.out.println(ret); - stat.addStatus(testId, stat.PASS); - } catch(Exception e) { - e.printStackTrace(); - stat.addStatus(testId, stat.FAIL); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/Hello.java deleted file mode 100644 index 876b972dd22..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.jaxws; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/jaxws") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/HelloEJB.java deleted file mode 100644 index d05f42334cf..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/endpoint/jaxws/HelloEJB.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.jaxws; - -import jakarta.jws.WebService; -import jakarta.ejb.Stateless; - -@WebService(endpointInterface="endpoint.jaxws.Hello", targetNamespace="http://endpoint/jaxws") -@Stateless -public class HelloEJB implements Hello { - - public String sayHello(String who) { - return "WebSvcTest-Hello " + who; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 13ae4f31e9f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - ejb_noname_HelloEJB_consumer_assembly - This is an AU for Soap Binding deployments - - - - ejb_noname_HelloEJB_consumer_su - consumer service to the soap binding - - - ejb_noname_HelloEJB_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService.wsdl deleted file mode 100644 index 81bcb7a4935..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService_schema1.xsd deleted file mode 100644 index f207ad78a04..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/HelloEJBService_schema1.xsd +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 3cc90833c3e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 7563826ff2c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/assembly/META-INF/jbi.xml deleted file mode 100755 index 9e71a61b947..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - ejb_noname_HelloEJB_consumer_assembly - This is an AU for Soap Binding deployments - - - - ejb_noname_HelloEJB_consumer_su - consumer service to the soap binding - - - ejb_noname_HelloEJB_consumer_su.jar - SunSOAPBinding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/META-INF/jbi.xml deleted file mode 100755 index 092d518812c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/endpoints.xml deleted file mode 100755 index 4b3f655ff00..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/soap-binding-su/su/endpoints.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - http://endpoint/jaxws - HelloEJBService - - HelloEJBPort - consumer - http://localhost:8080/soap/ejb/noname/helloendpoint - - - sayHello - http://www.w3.org/2004/08/wsdl/in-out - "" - - http://endpoint/jaxws - - - http://endpoint/jaxws - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stress.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stress.xml deleted file mode 100755 index c508cc03f79..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stress.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - -]> - - - &commonSetup; - &commonBuild; - &buildProperties; - &commonEjbAnnotationsBuild; - &jbiCommon; - &jbiBuild; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressClient.java deleted file mode 100755 index e5eca567dc8..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressClient.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package stressclient; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.BindingProvider; - -import endpoint.jaxws.HelloEJBService; -import endpoint.jaxws.Hello; - -import endpoint.jaxws.HiEJBService; -import endpoint.jaxws.Hi; - -import com.example.subtractor.SubtractorService; -import com.example.subtractor.Subtractor; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class StressClient extends Thread { - - int clientId; - Hello port; - Hi port1; - Subtractor port2; - - private static String testId = "jbi-serviceengine/server/ejb/hello/stressclient"; - - static long startTime = 0; - static int minutesToRun = 0; - static long endTime = 0; - - - private SimpleReporterAdapter stat ; - - HelloEJBService service; - HiEJBService service1; - SubtractorService service2; - - StressClient(int i,SimpleReporterAdapter stat) { - System.out.println("Instantiating a stress client"); - //stat.addDescription("jsr108-serverside-webservices-ejb-noname-annotation"); - clientId = i; - this.stat = stat; - } - - void setServiceHandle( HelloEJBService ser, HiEJBService ser1, SubtractorService ser2){ - service = ser; - service1 = ser1; - service2 = ser2; - } - - static void setTimeToRun( int minutes ) { - minutesToRun = minutes; - startTime = System.currentTimeMillis(); - } - - public void run() { - port = service.getHelloEJBPort(); - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12015/HelloEJBPort"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(clientId + ":" + " After setting endpoint address URI"); - - port1 = service1.getHiEJBPort(); - BindingProvider stub1 = (BindingProvider)port1; - String endpointURI1 ="http://localhost:12017/HiEJBPort"; - stub1.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI1); - - port2 = service2.getSubtractorPort(); - BindingProvider stub2 = (BindingProvider)port2; - String endpointURI2 ="http://localhost:12018/subtractorendpoint"; - stub2.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI2); - - - while((endTime - startTime) < minutesToRun*60*1000) { - // Iterative tester for stress, per Thread - for ( int i=0 ; i < 10; i++) - doTest("Stress Tester",i); - endTime = System.currentTimeMillis(); - } - } - - public void doTest(String toSend, int id) { - try { - Integer i = (Integer)id; - - String ret = port.sayHello(toSend+i); - String ret1 = port1.sayHi(toSend+i); - int res = port2.add(5,2); - - if(ret.indexOf("WebSvcTest-Hello") == -1 || ret.indexOf(i.toString()) == -1) { - System.out.println(clientId + ":" + "Unexpected greeting " + ret); - stat.addStatus(testId, stat.FAIL); - stat.printSummary(testId); - return; - } - //pass(); - System.out.println(clientId + ":" + ret); - - if(ret1.indexOf("WebSvcTest-Hi") == -1 || ret1.indexOf(i.toString()) == -1) { - System.out.println(clientId + ":" + "Unexpected greeting " + ret1); - stat.addStatus(testId, stat.FAIL); - return; - } - //pass(); - System.out.println(clientId + ":" + ret1); - - if( res != 3) { - System.out.println(clientId + ":" + "Unexpected result " + res); - stat.addStatus(testId, stat.FAIL); - return; - } - //pass(); - System.out.println(clientId + "Result is :" + res); - - } catch(Exception e) { - stat.addStatus(testId, stat.FAIL); - stat.printSummary(testId); - e.printStackTrace(); - } - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } - - -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressSOAPEjbConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressSOAPEjbConsumer.java deleted file mode 100755 index d2bed8cde26..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/ejb/hello/stressclient/StressSOAPEjbConsumer.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package stressclient; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.BindingProvider; - -import endpoint.jaxws.HelloEJBService; -import endpoint.jaxws.Hello; -import endpoint.jaxws.HiEJBService; -import endpoint.jaxws.Hi; -import com.example.subtractor.Subtractor; -import com.example.subtractor.SubtractorService; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class StressSOAPEjbConsumer { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/ejb/hello/stressclient"; - - @WebServiceRef - static HelloEJBService service; - - @WebServiceRef - static HiEJBService service1; - - @WebServiceRef(wsdlLocation="http://localhost:8080/subtractorservice/webservice/SubtractorService?WSDL") - static SubtractorService service2; - - - static long startTime = 0; - static int minutesToRun = 0; - static long endTime = 0; - - StressSOAPEjbConsumer() { - //create multiple instances of iterative test clients. - StressClient clients[] = new StressClient[100]; - for(int i = 0 ; i < 100 ; i++) { - clients[i] = new StressClient(i,stat); - clients[i].setServiceHandle(service,service1,service2); - clients[i].start(); - } - } - public static void main(String[] args) throws Exception { - stat.addDescription(testId); - - if( args != null && args.length > 0 && args[0] != null) - try { - minutesToRun = Integer.parseInt(args[0]); - } catch(NumberFormatException numEx) { - minutesToRun = 3; - } - System.out.println("Time to run is: "+minutesToRun); - Thread.currentThread().sleep(2000); - StressClient.setTimeToRun(minutesToRun); - StressSOAPEjbConsumer stressClient = new StressSOAPEjbConsumer(); - //stat.addStatus("jsr108-serverside-webservices-ejb-noname-annotation", stat.PASS); - //stat.printSummary("jsr108-serverside-webservices-ejb-noname-annotation"); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/README deleted file mode 100644 index f2c85545c30..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/README +++ /dev/null @@ -1,17 +0,0 @@ -This is a Calculator web service, packaged as a servlet, with only one operation add which -adds two numbers. Client is a standalone java application which can send request -to the webservice either in standard way using HTTP or through SOAPBinding. -By default the web service is activated in JBI environment. The sample also demonstrates -how an endpoint can be deactivated from JBI environment. - -ant all of this sample does the following : - -1. compiles and deploys the web service on application server, deploys a -producer service unit on SOAP Binding -2. sends a request through SOAP binding, -3. disable activation of web service in JBI and send requests through JBI SOAP binding again for testing negative test scenario, -4. runs the client which makes request web service invocation using HTTP to confirm that web service is still accessible using normal path even though it has been deactivated from JBI, -5. Activate the web service again in JBI and send a request through SOAP binding -6. undeploy application from app server and service assembly deployment from -SOAP Binding. - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.properties deleted file mode 100644 index 4ee58d30dd5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.xml deleted file mode 100644 index d0418897f06..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/build.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/JAXWSClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/JAXWSClient.java deleted file mode 100644 index 51ef6421515..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/JAXWSClient.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; - -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class JAXWSClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/web/client"; - - @WebServiceRef(wsdlLocation="http://localhost:8080/calculatorservice/webservice/CalculatorService?WSDL") - static CalculatorService service; - - public static void main(String[] args) { - try { - stat.addDescription(testId); - //CalculatorService service = new CalculatorService(); - JAXWSClient client = new JAXWSClient(); - client.doTest(args, service); - stat.printSummary(testId); - } catch(Exception e) { - e.printStackTrace(); - } - } - - public void doTest(String[] args, CalculatorService service) { - try { - System.out.println(" Before getting port service is : " + service); - Calculator port = service.getCalculatorPort(); - for (int i=0;i<10;i++) { - int ret = port.add(i, 10); - if(ret != (i + 10)) { - System.out.println("Unexpected greeting " + ret); - stat.addStatus(testId, stat.FAIL); - return; - } - System.out.println(" Adding : " + i + " + 10 = " + ret); - } - stat.addStatus(testId, stat.PASS); - } catch(Exception e) { - e.printStackTrace(); - stat.addStatus(testId, stat.FAIL); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumer.java deleted file mode 100755 index 83a579b8128..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumer.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/calculatorservice/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/web/client"; - public static void main (String[] args) { - stat.addDescription(testId + args[0]); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(args); - stat.printSummary(testId + args[0]); - } - - private void addUsingSOAPConsumer(String[] args) { - com.example.calculator.Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - //String endpointURI ="http://localhost:8080/soap/web/calculatorendpoint"; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - System.out.println(" Using SOAP binding's consumer to add 1 + 2 = " + port.add(1,2)); - if(args[0].equals("jbi-enabled-true")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - - } catch(Exception e) { - e.printStackTrace(); - if(args[0].equals("jbi-enabled-false")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumerNonHttpBC.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumerNonHttpBC.java deleted file mode 100755 index b1e0a2cffb5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/client/SOAPWebConsumerNonHttpBC.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumerNonHttpBC { - @WebServiceRef(wsdlLocation="http://localhost:8080/calculatorservice/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/server/web/client"; - - public static void main (String[] args) { - stat.addDescription(testId + args[0]); - SOAPWebConsumerNonHttpBC client = new SOAPWebConsumerNonHttpBC(); - client.addUsingSOAPConsumer(args); - stat.printSummary(testId + args[0]); - } - - private void addUsingSOAPConsumer(String[] args) { - com.example.calculator.Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - System.out.println(" Using SOAP binding's consumer to add 1 + 2 = " + port.add(1,2)); - if(args[0].equals("jbi-enabled-true")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - - } catch(Exception e) { - e.printStackTrace(); - if(args[0].equals("jbi-enabled-false")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/endpoint/Calculator.java deleted file mode 100644 index a9c8c59cd0f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/endpoint/Calculator.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.com/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 43378e2c8eb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index 4eb468e402f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index 1022aa1fc1d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 7d7abfe9b99..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 329a809527a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/assembly/META-INF/jbi.xml deleted file mode 100755 index ed274ad96b2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - SunSOAPBinding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/META-INF/jbi.xml deleted file mode 100755 index 74e3d607406..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/endpoints.xml deleted file mode 100755 index d43d75b0f0a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/soap-binding-su/su/endpoints.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - http://example.com/Calculator - CalculatorService - - CalculatorPort - consumer - http://localhost:8080/soap/web/calculatorendpoint - - - add - http://www.w3.org/2004/08/wsdl/in-out - "" - - http://example.com/Calculator - - - http://example.com/Calculator - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/server/web/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/README deleted file mode 100644 index aa31e123bb5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/README +++ /dev/null @@ -1,28 +0,0 @@ -This test case has : --------------------- - -A simple webservice returns the sum of two integers. This is bundled as a -servlet inside a WAR file. This WAR file is included in the service assembly -and is deployed by the JavaEE Service Engine. - -A simple servlet (with jbi_enabled=true) to access this web service - -A simple java client to invoke this servlet - -The test case uses: ------------------- - -Java EE Service Engine as the consumer. - -Java EE Service Engine as the provider. - -client <----> servlet <-----> JavaEE SE <-----NMR------> JavaEE SE <------> webservice - -Expected result: ----------------- - -The Java EE Service Engine should successfully deploy the service unit. - -Java client should be able to successfully invoke the webservice and get -the sum of two numbers. - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.properties deleted file mode 100644 index e88a8eefd9d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.xml deleted file mode 100644 index 12fcf488430..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/build.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-sun-web.xml deleted file mode 100644 index 254b0ab48e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/AddNumber - AddNumberPort - -service.web.example.calculator.AddNumber - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client/TestClient.java deleted file mode 100644 index 38cd263c41e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/client/TestClient.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/add-numbers"; - - public boolean found1 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("Result is") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/endpoint/AddNumber.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/endpoint/AddNumber.java deleted file mode 100644 index f2531346f08..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/endpoint/AddNumber.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="AddNumber", - serviceName="AddNumberService", - targetNamespace="http://example.web.service/AddNumber" -) -public class AddNumber { - public AddNumber() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - //throw new java.lang.Exception("This is my exception"); - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/assembly/META-INF/jbi.xml deleted file mode 100755 index 445361a2a85..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - client_web_calculator_service_assembly - Client web calculator service assembly - - - - calc-web-client - provider service - - - calc-web-client-web.war - sun-javaee-engine - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/su/META-INF/jbi.xml deleted file mode 100755 index e84f666d0f4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/javaee-se-serviceunit/su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/web.xml deleted file mode 100644 index e7cf2a7b8a7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the AddNumber Service - AddNumberWAR - - - Endpoint for AddNumber Web Service - AddNumberWebService - AddNumber - endpoint.AddNumber - 0 - - - - AddNumber - /webservice/AddNumberService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/webclient/client/Client.java deleted file mode 100644 index 38f9c6268b2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/add-numbers/webclient/client/Client.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.addnumber.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") AddNumberService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - AddNumber port = service.getAddNumberPort(); - int ret = port.add(1, 2); - printSuccess(out,ret); - } catch(java.lang.Exception e) { - //e.printStackTrace(); - printFailure(out, e.getMessage()); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out, String errMsg) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: Error message - " + errMsg); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out, int result) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Result is : " + result); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/build.xml deleted file mode 100644 index 4d1accd9237..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/README deleted file mode 100644 index ac554211a77..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/README +++ /dev/null @@ -1,26 +0,0 @@ -This test demonstrates usage of a composite application when JavaEE SE is -consumer. There is a Calculator webservice with add operation that adds two -numbers. This calculator service is deployed in appserver with jbi-enabled set -to false so that the service can not be called through JavaEE SE. - -The webservice client is a servlet that sends an add request to the calculator -service. This servlet is deployed as part of a composite application. -A standalone Java client is used to invoke this servlet and execute this test. - -ant all of this test does the following : - -task setup: - 1. Calculator webservice is deployed in appserver and jbi-enabled flag is - set to false - 2. A service assembly is created and deployed that contains a JavaEE service - unit consuming calculator service and a HTTP BC service unit that provides - calculator service. -task runtest: - Client invokes the test servlet which in calls the calculator - service. This call goes through JavaEE SE. Below is the runtime call flow- - -TestClient --> Client(Servlet) --> JavaEE SE --> HTTP BC --> Calculator WS - -task undeploy: - undeploys the calculator service from appserver and composite application - from from JBI diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.properties deleted file mode 100644 index 86c6b9aec92..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.xml deleted file mode 100644 index 83a933a7124..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/build.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client/TestClient.java deleted file mode 100644 index 6d3e63551d3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/compApp-client"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF Calculator add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[3]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/endpoint/Calculator.java deleted file mode 100644 index 5697ceeccd9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/endpoint/Calculator.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/jbi.xml deleted file mode 100644 index 8409d73ec04..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/assembly/META-INF/jbi.xml deleted file mode 100755 index 4dc4f315ec7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - - wsclient - Represents this Service Unit - - - wsclient.war - sun-javaee-engine - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService.wsdl deleted file mode 100644 index acf05d9f113..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService_schema1.xsd deleted file mode 100644 index 1fe236894b5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/META-INF/jbi.xml deleted file mode 100755 index 5b6d8610625..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/endpoints.xml deleted file mode 100755 index d13e6ebeaea..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/soap-binding-su/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/webclient/client/Client.java deleted file mode 100644 index 5664d72795b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-client/webclient/client/Client.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Calculator add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/README deleted file mode 100644 index 5f3beba34bf..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/README +++ /dev/null @@ -1,9 +0,0 @@ -This test demonstrates usage of a composite application when JavaEE SE is provider. There -is a Calculator webservice with add operation that adds two numbers. Client is a standalone -Java application which sends request to the webservice through HTTP SOAPBinding. - -ant all of this test does the following : - -1. task setup: A service assembly is created and deployed that contains a JavaEE service unit providing calculator service and a HTTP BC service unit that consumes calculator service. -2. task runtest: Client sends an add request through SOAP binding, -3. task undeploy: undeploys the composite application from from JBI diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.properties deleted file mode 100644 index 559eeca63a5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.xml deleted file mode 100644 index be72c05bfd1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/build.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/client/SOAPWebConsumer.java deleted file mode 100755 index a97137a2a9e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/client/SOAPWebConsumer.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/calculatorservice-web/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/compApp-server"; - - public static void main (String[] args) { - stat.addDescription(testId + args[0]); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(args); - stat.printSummary(testId + args[0]); - } - - private void addUsingSOAPConsumer(String[] args) { - com.example.calculator.Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - System.out.println(" Using SOAP binding's consumer to add 1 + 2 = " + port.add(1,2)); - if(args[0].equals("jbi-enabled-true")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - - } catch(Exception e) { - e.printStackTrace(); - if(args[0].equals("jbi-enabled-false")) - stat.addStatus(testId, stat.PASS); - else - stat.addStatus(testId, stat.FAIL); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/endpoint/Calculator.java deleted file mode 100644 index a9c8c59cd0f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/endpoint/Calculator.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.com/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/jbi.xml deleted file mode 100644 index 56a84a594f6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/assembly/META-INF/jbi.xml deleted file mode 100755 index 4434e5c61f3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - - calculatorservice-web - Represents this Service Unit - - - calculatorservice-web.war - sun-javaee-engine - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService.wsdl deleted file mode 100644 index 4eb468e402f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService.wsdl +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService_schema1.xsd deleted file mode 100644 index 1022aa1fc1d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/META-INF/jbi.xml deleted file mode 100755 index 7d7abfe9b99..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/endpoints.xml deleted file mode 100755 index 329a809527a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/soap-binding-su/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/compApp-server/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/README deleted file mode 100644 index aa31e123bb5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/README +++ /dev/null @@ -1,28 +0,0 @@ -This test case has : --------------------- - -A simple webservice returns the sum of two integers. This is bundled as a -servlet inside a WAR file. This WAR file is included in the service assembly -and is deployed by the JavaEE Service Engine. - -A simple servlet (with jbi_enabled=true) to access this web service - -A simple java client to invoke this servlet - -The test case uses: ------------------- - -Java EE Service Engine as the consumer. - -Java EE Service Engine as the provider. - -client <----> servlet <-----> JavaEE SE <-----NMR------> JavaEE SE <------> webservice - -Expected result: ----------------- - -The Java EE Service Engine should successfully deploy the service unit. - -Java client should be able to successfully invoke the webservice and get -the sum of two numbers. - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.properties deleted file mode 100644 index e88a8eefd9d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.xml deleted file mode 100644 index cce08f97b55..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/build.xml +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-sun-web.xml deleted file mode 100644 index bb83def7523..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/EndpointMapping - EndpointMappingPort - -service.web.example.calculator.EndpointMapping - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client/TestClient.java deleted file mode 100644 index 4b758a56731..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/client/TestClient.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/endpoint-naming"; - - public boolean found1 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("Result is") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/endpoint/EndpointMapping.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/endpoint/EndpointMapping.java deleted file mode 100644 index 60170f39e22..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/endpoint/EndpointMapping.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="EndpointMapping", - serviceName="EndpointMappingService", - targetNamespace="http://example.web.service/EndpointMapping" -) -public class EndpointMapping { - public EndpointMapping() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - //throw new java.lang.Exception("This is my exception"); - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/assembly/META-INF/jbi.xml deleted file mode 100755 index 623ec8f267e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - client_web_calculator_service_assembly - Client web calculator service assembly - - - - calc-web-client - provider service - - - calc-web-client-web.war - sun-javaee-engine - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/su/META-INF/jbi.xml deleted file mode 100755 index b1c90055f3f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/javaee-se-serviceunit/su/META-INF/jbi.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/web.xml deleted file mode 100644 index 54668e0e747..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the EndpointMapping Service - EndpointMappingWAR - - - Endpoint for EndpointMapping Web Service - EndpointMappingWebService - EndpointMapping - endpoint.EndpointMapping - 0 - - - - EndpointMapping - /webservice/EndpointMappingService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/webclient/client/Client.java deleted file mode 100644 index fdd78df9581..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping/webclient/client/Client.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.endpointmapping.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") EndpointMappingService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - EndpointMapping port = service.getEndpointMappingPort(); - int ret = port.add(1, 2); - printSuccess(out,ret); - } catch(java.lang.Exception e) { - //e.printStackTrace(); - printFailure(out, e.getMessage()); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out, String errMsg) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: Error message - " + errMsg); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out, int result) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Result is : " + result); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.properties deleted file mode 100644 index c5c5734ee0c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.xml deleted file mode 100644 index d288af47b36..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/build.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client/TestClient.java deleted file mode 100644 index dd875d06e72..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/endpoint_mapping_consumer"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EndpointMappingConsumer add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[3]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/endpoint/EndpointMappingConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/endpoint/EndpointMappingConsumer.java deleted file mode 100644 index 9f691da1a92..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/endpoint/EndpointMappingConsumer.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="EndpointMappingConsumer", - serviceName="EndpointMappingConsumerService", - targetNamespace="http://example.web.service/EndpointMappingConsumer" -) -public class EndpointMappingConsumer { - public EndpointMappingConsumer() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/jbi.xml deleted file mode 100644 index aa8e4ce0a9f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/jbi.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/assembly/META-INF/jbi.xml deleted file mode 100755 index 0fb07916365..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - - wsclient - Represents this Service Unit - - - wsclient.war - sun-javaee-engine - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService.wsdl deleted file mode 100644 index 7064b612657..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService_schema1.xsd deleted file mode 100644 index 63063134312..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/EndpointMappingConsumerService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/META-INF/jbi.xml deleted file mode 100755 index ec855f7b8b7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/endpoints.xml deleted file mode 100755 index 0f0f96cb589..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-http-binding/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/web.xml deleted file mode 100644 index a2ffa0be26d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the EndpointMappingConsumer Service - EndpointMappingConsumerWAR - - - Endpoint for EndpointMappingConsumer Web Service - EndpointMappingConsumerWebService - EndpointMappingConsumer - endpoint.EndpointMappingConsumer - 0 - - - - EndpointMappingConsumer - /webservice/EndpointMappingConsumerService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/Client.java deleted file mode 100644 index a720b420f45..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/Client.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.endpointmappingconsumer.*; - -public class Client extends HttpServlet { - - @WebServiceRef EndpointMappingConsumerService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - EndpointMappingConsumer port = service.getEndpointMappingConsumerPort(); - int ret = port.add(1, 2); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EndpointMappingConsumer add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService.wsdl deleted file mode 100644 index 3bdf383301d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService.wsdl +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService_schema1.xsd deleted file mode 100644 index 63063134312..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EndpointMappingConsumerService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EnpointMappingConsumerService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EnpointMappingConsumerService_schema1.xsd deleted file mode 100644 index 63063134312..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/endpoint_mapping_consumer/webclient/client/wsdl/EnpointMappingConsumerService_schema1.xsd +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/build.xml deleted file mode 100644 index 3ebe52b85a3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/build.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - Builds, tests, and runs the project EntApp-ejb. - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/MANIFEST.MF b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/MANIFEST.MF deleted file mode 100644 index 59499bce4a2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/sun-ejb-jar.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/sun-ejb-jar.xml deleted file mode 100644 index e17789529bd..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/conf/sun-ejb-jar.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/java/entapp/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/java/entapp/ejb/HelloEJB.java deleted file mode 100644 index 6321cdfa1af..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-ejb/src/java/entapp/ejb/HelloEJB.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * HelloEJB.java - * - * Created on July 27, 2007, 9:06 AM - * - * To change this template, choose Tools | Template Manager - * and open the template in the editor. - */ - -package entapp.ejb; - -import jakarta.ejb.Stateless; -import jakarta.jws.WebMethod; -import jakarta.jws.WebParam; -import jakarta.jws.WebService; - -/** - * - * @author bhavani - */ - -@Stateless() -@WebService() -public class HelloEJB { - - /** - * Web service operation - */ - @WebMethod - public String sayHello(@WebParam(name = "name") - String name) { - String hello = "Hello from HelloEJB - " + name; - System.out.println(hello); - return hello; - } - -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/build.xml deleted file mode 100644 index 027ea2bc987..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/build.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - Builds, tests, and runs the project EntApp-war. - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/conf/MANIFEST.MF b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/conf/MANIFEST.MF deleted file mode 100644 index 59499bce4a2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/conf/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/java/entapp/web/HelloWeb.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/java/entapp/web/HelloWeb.java deleted file mode 100644 index 1afeef3e73b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/src/java/entapp/web/HelloWeb.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * HelloWeb.java - * - * Created on July 27, 2007, 9:07 AM - * - * To change this template, choose Tools | Template Manager - * and open the template in the editor. - */ - -package entapp.web; - -import jakarta.jws.WebMethod; -import jakarta.jws.WebParam; -import jakarta.jws.WebService; - -/** - * - * @author bhavani - */ -@WebService() -public class HelloWeb { - - /** - * Web service operation - */ - @WebMethod - public String sayHello(@WebParam(name = "name") - String name) { - String hello = "Hello from HelloWeb - " + name; - System.out.println(hello); - return hello; - } - -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/sun-web.xml deleted file mode 100644 index 4a5fcff954d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /EntApp-war - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/web.xml deleted file mode 100644 index fc67e0ce795..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/WEB-INF/web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - 30 - - - - index.jsp - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/index.jsp b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/index.jsp deleted file mode 100644 index 645195ebc8c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/EntApp-war/web/index.jsp +++ /dev/null @@ -1,54 +0,0 @@ -<%-- - - Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - - This program and the accompanying materials are made available under the - terms of the Eclipse Public License v. 2.0, which is available at - http://www.eclipse.org/legal/epl-2.0. - - This Source Code may also be made available under the following Secondary - Licenses when the conditions for such availability set forth in the - Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - version 2 with the GNU Classpath Exception, which is available at - https://www.gnu.org/software/classpath/license.html. - - SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - ---%> - -<%@page contentType="text/html"%> -<%@page pageEncoding="UTF-8"%> -<%-- -The taglib directive below imports the JSTL library. If you uncomment it, -you must also add the JSTL library to the project. The Add Library... action -on Libraries node in Projects view can be used to add the JSTL 1.1 library. ---%> -<%-- -<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> ---%> - - - - - - - JSP Page - - - -

JSP Page

- - <%-- - This example uses JSTL, uncomment the taglib directive above. - To test, display the page like this: index.jsp?sayHello=true&name=Murphy - --%> - <%-- - - - Hello ${param.name}! - - --%> - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/build.xml deleted file mode 100644 index 715ccfe798f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/build.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - Builds, tests, and runs the project EntApp. - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/MANIFEST.MF b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/MANIFEST.MF deleted file mode 100644 index 59499bce4a2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/MANIFEST.MF +++ /dev/null @@ -1,2 +0,0 @@ -Manifest-Version: 1.0 - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/application.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/application.xml deleted file mode 100644 index dcc26aba4e6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/application.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - EntApp - - EntApp-ejb.jar - - - - EntApp-war.war - /EntApp-war - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/sun-application.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/sun-application.xml deleted file mode 100644 index 7693199abf3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/EntApp/src/conf/sun-application.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.properties deleted file mode 100644 index cc2ff39a0f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.properties +++ /dev/null @@ -1,36 +0,0 @@ - - - - Don't rename jdk.home as java.home -jdk.home=${env.JAVA_HOME} -server.dir=${env.S1AS_HOME} -ent.app=EntApp -src.dir=EntApp -ejb.module=EntApp-ejb -web.module=EntApp-war -ejb.webservice.class=entapp.ejb.HelloEJB -web.webservice.class=entapp.web.HelloWeb -ejb.webservice.name=HelloEJB -web.webservice.name=HelloWeb -domain.dir=${server.dir}/domains/domain1 -serviceengine.dir=${domain.dir}/jbi/components/sun-javaee-engine/install_root -ejb.path=${domain.dir}/applications/j2ee-modules/${ejb.module} -output.dir=${serviceengine.dir}/workspace -asadmin.command=${server.dir}/bin/asadmin -client.classpath=".:build:${env.APS_HOME}/lib/reporter.jar:${env.S1AS_HOME}/lib/jakartaee.jar:${env.S1AS_HOME}/modules/webservices-api-osgi.jar:${env.S1AS_HOME}/modules/webservices-osgi.jar" diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.xml deleted file mode 100644 index 2adf139e7bf..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/build.xml +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - REPLACE_WITH_ACTUAL_URL - http://localhost:12000/entapp/ejb/HelloEJB - - - - - - - - - - - - - - REPLACE_WITH_ACTUAL_URL - http://localhost:12000/entapp/web/HelloEJB - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/client/Client.java deleted file mode 100755 index 454b047a5b2..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/client/Client.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import entapp.ejb.*; -import entapp.web.*; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class Client { - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/service_unit/enterprise_app"; - - public static void main (String[] args) { - stat.addDescription(testId); - Client client = new Client(); - client.invoke(); - stat.printSummary(testId ); - } - - private void invoke() { - try { - - HelloEJBService helloEJBService = new HelloEJBService(); - HelloEJB port = helloEJBService.getHelloEJBPort(); - String hello = port.sayHello("Bhavani"); - System.out.println("Output :: " + hello); - - HelloWebService helloWebService = new HelloWebService(); - HelloWeb webPort = helloWebService.getHelloWebPort(); - hello = webPort.sayHello("Bhavani"); - System.out.println("Output :: " + hello); - - stat.addStatus(testId, stat.PASS); - - } catch(Exception ex) { - ex.printStackTrace(); - stat.addStatus(testId, stat.FAIL); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/META-INF/jbi.xml deleted file mode 100644 index 90a1ff75ca0..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/META-INF/jbi.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - EntApp - EntApp - - - - EntApp_provider - provider service for Enterprise App endpoints - - - EntApp.ear - sun-javaee-engine - - - - - EntApp-consumer - consumer service for Enterprise App endpoints - - - sun-http-binding.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-http-binding/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-http-binding/META-INF/jbi.xml deleted file mode 100644 index d166711b72a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-http-binding/META-INF/jbi.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-javaee-engine/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-javaee-engine/META-INF/jbi.xml deleted file mode 100644 index 1d6b6dfb726..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/service_unit/enterprise_app/service-assembly/sun-javaee-engine/META-INF/jbi.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/README deleted file mode 100644 index e0b593a6150..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/README +++ /dev/null @@ -1 +0,0 @@ -Client <-----> servicemix-http <------> NMR <------> Java EE Service Engine <----> Webservice diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.properties deleted file mode 100644 index 0e539cd5239..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.properties +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.xml deleted file mode 100644 index d6f9ead9b90..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/build.xml +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/client/SOAPWebConsumer.java deleted file mode 100755 index 51b53555338..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/client/SOAPWebConsumer.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:8080/provider/webservice/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/sm/bc_consumer_se_provider"; - public static void main (String[] args) { - stat.addDescription(testId); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(); - stat.printSummary(testId ); - } - - private void addUsingSOAPConsumer() { - com.example.calculator.Calculator port= null; - try { - - System.out.println(" After creating CalculatorService"); - - port = service.getCalculatorPort(); - System.out.println(" After getting port"); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:8192/calculatorendpoint/"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - System.out.println(" After setting endpoint address URI"); - System.out.println(" Using SOAP binding's consumer to add 1 + 2 = " + port.add(1,2)); - stat.addStatus(testId, stat.PASS); - //System.out.println(" No Exception thrown"); - - } catch(Exception e) { - e.printStackTrace(); - if(e instanceof jakarta.xml.ws.soap.SOAPFaultException) - stat.addStatus(testId, stat.PASS); - else { - stat.addStatus(testId, stat.FAIL); - System.out.println(" SOAPFaultException Not thrown"); - } - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/Calculator.java deleted file mode 100644 index b6bed28fe67..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/Calculator.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.com/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/endpoint/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/META-INF/jbi.xml deleted file mode 100755 index f07df333448..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/META-INF/jbi.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - sample_service_assembly - sample service assembly - - - - provider - provider - - - provider_su.war - sun-javaee-engine - - - - - consumer - consumer - - - consumer_su.jar - servicemix-http - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/javaee-se-su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/javaee-se-su/META-INF/jbi.xml deleted file mode 100755 index c7a2444acd1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/javaee-se-su/META-INF/jbi.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService.wsdl deleted file mode 100644 index aaa27efd913..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService.wsdl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService_schema1.xsd deleted file mode 100644 index bd31e1264e0..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/META-INF/jbi.xml deleted file mode 100755 index e73bd32b83f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/xbean.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/xbean.xml deleted file mode 100644 index c679213617b..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/sm/bc_consumer_se_provider/service_assembly/service_units/soap-bc-su/xbean.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/README deleted file mode 100644 index 04ab46ab62c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/README +++ /dev/null @@ -1,3 +0,0 @@ -There are 3 tests in this directory. They test that exceptions are properly -propagated through the JavaEE service engine to the webservice endpoints. -Service engine acts as a provider, consumer and consumer&provider in these 3 tests. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/build.xml deleted file mode 100644 index bf1879c2110..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/build.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/README deleted file mode 100644 index f8a75d6848c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/README +++ /dev/null @@ -1,23 +0,0 @@ -The sample tests that exceptions are properly propagated through JavaEE service -engine to the JavaEE component that requested for the webservice. Service engine -acts as a consumer in this test. - -There is a Calculator web service, deployed as a servlet, with only one -operation add which throws an exception. This webservice has it's jbi-enabled -flag as false. Another servlet is deployed which has it's jbi-enabled flag as -true. This servlet requests for the Calculator webservice and the call goes -through the service engine. -Client is a standalone java application which sends request to the servlet -which inturn calls the calculator webservice. - -ant all of this sample does the following : - -1. compiles and deploys the web service on application server. - -2. compiles and deploys the servlet that requests for above web service, - deploys a consumer service unit on SOAP Binding - -2. runs the client which invokes the servlet. - -3. undeploy applications from app server and service assembly deployment from - SOAP Binding. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.properties deleted file mode 100644 index bcf46c197f1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.xml deleted file mode 100644 index 60a3f6a1de4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/build.xml +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client/TestClient.java deleted file mode 100644 index 3670f5d10f4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/client/TestClient.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/soapfault/se_consumer"; - - public boolean found1 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("Exception thrown Successfully") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/endpoint/Calculator.java deleted file mode 100644 index 45cca7642fa..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/endpoint/Calculator.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - throw new java.lang.Exception("This is my exception"); - //return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 80f2e5d60f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index 8e5c4efbc67..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index dc101722205..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 5b6d8610625..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index d13e6ebeaea..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/webclient/client/Client.java deleted file mode 100644 index 569a78a75f3..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumer/webclient/client/Client.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - printFailure(out); - } catch(java.lang.Exception e) { - e.printStackTrace(); - if(e instanceof service.web.example.calculator.Exception_Exception) { - printSuccess(out); - } - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: SOAPFaultException not thrown"); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Exception thrown Successfully"); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/README deleted file mode 100644 index b128aa86b5c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/README +++ /dev/null @@ -1,23 +0,0 @@ -The sample tests that exceptions are properly propagated through JavaEE service -engine both to the JavaEE component and to the standalone client that requested -the service. Service engine acts as a consumer as well as a provider in this test. - -There is a Calculator web service, deployed as a servlet, with only one -operation add which throws an exception. This webservice has it's jbi-enabled -flag as true. Another servlet is deployed which has it's jbi-enabled flag as -true. This servlet requests for the Calculator webservice and the call goes -through the service engine. -Client is a standalone java application which sends request to the servlet -which inturn calls the calculator webservice. - -ant all of this sample does the following : - -1. compiles and deploys the web service on application server. - -2. compiles and deploys the servlet that requests for above web service, - deploys a consumer service unit on SOAP Binding - -2. runs the client which invokes the servlet. - -3. undeploy applications from app server and service assembly deployment from - SOAP Binding. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.properties deleted file mode 100644 index bcf46c197f1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.xml deleted file mode 100644 index 1f800b0faad..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/build.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client/TestClient.java deleted file mode 100644 index a5c2d49c65c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/client/TestClient.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/soapfault/se_consumerNprovider"; - - public boolean found1 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("Exception thrown Successfully") != -1) - found1 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/endpoint/Calculator.java deleted file mode 100644 index 93921ee0e0c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/endpoint/Calculator.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.jws.Oneway; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) throws Exception { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - throw new java.lang.Exception("This is my exception..."); - //return k; - } -/* - @WebMethod(operationName="subtract", action="urn:Subtract") - @Oneway - public void subtract(int i, int j) { - int k = i -j ; - System.out.println(i + "-" + j +" = " + k); - if(i == 101) - throw new RuntimeException("This is my exception in subtract ..."); - } -*/ -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 80f2e5d60f9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - client_consumer_for_web_calculator - consumer service to the soap binding - - - client_web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index 8e5c4efbc67..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index dc101722205..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 5b6d8610625..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index d13e6ebeaea..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/webclient/client/Client.java deleted file mode 100644 index 4db333cf38a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_consumerNprovider/webclient/client/Client.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - PrintWriter out=null; - try { - System.out.println(" Service is :" + service); - resp.setContentType("text/html"); - out = resp.getWriter(); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - printFailure(out); - } catch(java.lang.Exception e) { - e.printStackTrace(); - printSuccess(out); - } finally { - if(out != null) { - out.flush(); - out.close(); - } - } - } - - public void printFailure(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Test FAILED: SOAPFaultException not thrown"); - out.println("

"); - out.println(""); - out.println(""); - } - - public void printSuccess(PrintWriter out) { - if(out == null) return; - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("Exception thrown Successfully"); - out.println("

"); - out.println(""); - out.println(""); - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/README deleted file mode 100644 index d707b4d4961..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/README +++ /dev/null @@ -1,17 +0,0 @@ -The sample tests that exceptions are properly propagated through the JavaEE -service engine to the webservice client. Service engine acts as a provider in -this test. - -There is a Calculator web service, packaged as a servlet, with only one -operation add which throws an exception. Client is a standalone java -application which sends request to the webservice through SOAPBinding. - -ant all of this sample does the following : - -1. compiles and deploys the web service on application server, deploys a - producer service unit on SOAP Binding - -2. runs the client which makes a webservice request through SOAP binding. - -3. undeploy application from app server and service assembly deployment from -SOAP Binding. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.properties deleted file mode 100644 index 4ee58d30dd5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.xml deleted file mode 100644 index 242abf3ac75..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/build.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/client/SOAPWebConsumer.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/client/SOAPWebConsumer.java deleted file mode 100755 index 6fd4601520f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/client/SOAPWebConsumer.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.xml.ws.WebServiceRef; -import jakarta.xml.ws.Service; -import jakarta.xml.ws.BindingProvider; -import com.example.calculator.CalculatorService; -import com.example.calculator.Calculator; -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class SOAPWebConsumer { - @WebServiceRef(wsdlLocation="http://localhost:12011/calculatorendpoint/CalculatorService?WSDL") - static CalculatorService service; - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - private static String testId = "jbi-serviceengine/soapfault/se_provider"; - - public static void main (String[] args) { - stat.addDescription(testId); - SOAPWebConsumer client = new SOAPWebConsumer(); - client.addUsingSOAPConsumer(); - stat.printSummary(testId ); - } - - private void addUsingSOAPConsumer() { - com.example.calculator.Calculator port= null; - - port = service.getCalculatorPort(); - - // Get Stub - BindingProvider stub = (BindingProvider)port; - String endpointURI ="http://localhost:12011/calculatorendpoint"; - stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, - endpointURI); - - String failedMsg = null; - - try { - System.out.println("\nInvoking throwRuntimeException"); - port.throwRuntimeException("bhavani"); - } catch(Exception ex) { - System.out.println(ex); - if(!(ex instanceof RuntimeException) || - !(ex.getMessage().equals("Calculator :: Threw Runtime Exception"))) { - failedMsg = "port.throwRuntimeException() did not receive RuntimeException 'Calculator :: Threw Runtime Exception'"; - } - } - - try { - System.out.println("\nInvoking throwApplicationException"); - port.throwApplicationException("bhavani"); - } catch(Exception ex) { - System.out.println(ex); - if(!(ex instanceof com.example.calculator.Exception_Exception)) { - failedMsg = "port.throwApplicationException() did not throw ApplicationException"; - } - } - - if(failedMsg != null) { - stat.addStatus(testId, stat.FAIL); - } else { - stat.addStatus(testId, stat.PASS); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/endpoint/Calculator.java deleted file mode 100644 index 10190ca09c8..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/endpoint/Calculator.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.com/Calculator" -) - -public class Calculator { - public Calculator() {} - - - @WebMethod(operationName="throwRuntimeException", action="urn:ThrowRuntimeException") - public String throwRuntimeException(String name) { - String exceptionMsg = "Calculator :: Threw Runtime Exception"; - System.out.println(exceptionMsg); - throw new RuntimeException(exceptionMsg); - } - - @WebMethod(operationName="throwApplicationException", action="urn:ThrowApplicationException") - public String throwApplicationException(String name) throws Exception { - String exceptionMsg = "Calculator :: Threw Application Exception"; - System.out.println(exceptionMsg); - throw new Exception(exceptionMsg); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml deleted file mode 100755 index 43378e2c8eb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - web_calculator_consumer_assembly - This is an AU for Soap Binding deployments - - - - consumer_for_web_calculator - consumer service to the soap binding - - - web_calculator_consumer_su.jar - sun-http-binding - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl deleted file mode 100644 index a563fec64a7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService.wsdl +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd deleted file mode 100644 index af423ad75ff..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/CalculatorService_schema1.xsd +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml deleted file mode 100755 index 7d7abfe9b99..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/META-INF/jbi.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - WSDL11 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/endpoints.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/endpoints.xml deleted file mode 100755 index 329a809527a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/soap-binding-su-alaska/su/endpoints.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapfault/se_provider/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/README deleted file mode 100644 index 9b0f4cbb046..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/README +++ /dev/null @@ -1,34 +0,0 @@ -Assumption : Two asadmin domains - domain1 with default port values and domain2 with following values are created, started and openESB product is installed on both the instances along with JMS Binding. - -Domain2 : Expected values for ports are as follows : -instance port : 9080 -admin port : 9848 -jmx port : 9686 - -This devtest includes web service server deployed on domain1 and web service client - Java EE component- servlet deployed on domain2. The servlet accesses web service deployed on domain1 through Java EE Service Engine and JMS binding components. - -On domain1, Java EE Service Engine acts as a service provider while JMS Binding acts as a service consumer. - -On domain2, Java EE Service Engine acts as a service consumer while JMS binding acts as a service provider. - -Only one imq broker at 7676 ie. domain1 is used for creating queues. -Filestore /tmp/imqobjects is used for persistence. - - -Instructions to run the test case : - - -Execute $S1AS_HOME/bin/asadmin start-domain domain1 - -For first time users, create second domain by executing following command -ant create-domain2 - - -Install openESB on the domain just created. - -Execute $S1AS_HOME/bin/asadmin start-domain domain2 - -Execute mkdir -p /tmp/imqobjects - -Execute ant - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/broker_passfile b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/broker_passfile deleted file mode 100644 index eda23d63159..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/broker_passfile +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -imq.imqcmd.password=admin diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.properties deleted file mode 100644 index 0ead89b98b4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.properties +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.xml deleted file mode 100644 index 849b78159cb..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/build.xml +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-sun-web.xml deleted file mode 100644 index cbefb3b96f7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-sun-web.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - http://localhost:8080/jsr208-integration-web-client/CalculatorService?WSDL - - http://example.web.service/Calculator CalculatorPort -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client/TestClient.java deleted file mode 100644 index 263280d0e37..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/soapoverjms/consumer"; - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF Calculator add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[3]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/assembly/META-INF/jbi.xml deleted file mode 100644 index d635f53c1d9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - client_web_calculator_consumer_assembly - This is an SA for JMS Binding - - - - - client_web_calculator_consumer_su - This is an SU that is deployed to the jms binding - - - client_web_calculator_consumer_su.jar - SunJMSBinding - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/META-INF/jbi.xml deleted file mode 100644 index 68e62c92fb7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -WSDL20 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/endpoints.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/endpoints.wsdl deleted file mode 100644 index 52279a7d66c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/jms-binding-su/su/endpoints.wsdl +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transforms the input xml document to another xml format using the deployed stylesheet for this service - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/web.xml deleted file mode 100644 index 090526201c6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - CalculatorPort - endpoint.Calculator - 0 - - - - CalculatorPort - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/webclient/client/Client.java deleted file mode 100644 index 3b62e48b430..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/consumer/webclient/client/Client.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - try { - System.out.println(" Service is :" + service); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Calculator add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/endpoint/Calculator.java deleted file mode 100644 index 5697ceeccd9..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/endpoint/Calculator.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/assembly/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/assembly/META-INF/jbi.xml deleted file mode 100644 index 774ac6d0a90..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/assembly/META-INF/jbi.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - client_web_calculator_provider_assembly - This is an SA for JMS Binding - - - - - client_web_calculator_provider_su - This is an SU that is deployed to the jms binding - - - client_web_calculator_provider_su.jar - SunJMSBinding - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/META-INF/jbi.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/META-INF/jbi.xml deleted file mode 100644 index baaa1d8c254..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/META-INF/jbi.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - -WSDL20 - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/endpoints.wsdl b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/endpoints.wsdl deleted file mode 100644 index 8ddeae9cd3e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/soapoverjms/provider/jms-binding-su/su/endpoints.wsdl +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transforms the input xml document to another xml format using the deployed stylesheet for this service - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/README deleted file mode 100644 index 414aa54965d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/README +++ /dev/null @@ -1,10 +0,0 @@ -This directory contains tests to check the transaction feature in JavaEE service engine. - -These tests require database to be up and running. -Every test here creates a different table and drops that table in the end of the execution. - -Tests jse_only* have JavaEE SE as consumer as well as provider. No binding component is used in these tests. - -How to Run: -1. Start appserver and start database. -2. asant all diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/build.xml deleted file mode 100644 index 39893cf7cac..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/build.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/README deleted file mode 100644 index 3c0e30a2300..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/README +++ /dev/null @@ -1 +0,0 @@ -This is a simple test that executes a calculator webservice. Nothing related to transaction is done here. This ensures that the normal path works fine. diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.properties deleted file mode 100644 index a8626ab8979..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.properties +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.xml deleted file mode 100644 index 6235223b231..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/build.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-sun-web.xml deleted file mode 100644 index 0d054a66cc6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-sun-web.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - sun-web.serviceref/calculator - - - http://example.web.service/Calculator - CalculatorPort - -service.web.example.calculator.Calculator - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-web.xml deleted file mode 100644 index 795b052035d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client-web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client/TestClient.java deleted file mode 100644 index f9d58a5350f..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/client/TestClient.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/transactions/jse_only"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF Calculator add SERVICE IS") != -1) - found1 = true; - if(line.indexOf("[3]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/endpoint/Calculator.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/endpoint/Calculator.java deleted file mode 100644 index 65607dc7316..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/endpoint/Calculator.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint; - -import jakarta.jws.WebService; -import jakarta.jws.WebMethod; -import jakarta.ejb.TransactionAttribute; -import jakarta.ejb.TransactionAttributeType; - -@WebService( - name="Calculator", - serviceName="CalculatorService", - targetNamespace="http://example.web.service/Calculator" -) -public class Calculator { - public Calculator() {} - - @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) - @WebMethod(operationName="add", action="urn:Add") - public int add(int i, int j) { - int k = i +j ; - System.out.println(i + "+" + j +" = " + k); - - return k; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/webclient/client/Client.java deleted file mode 100644 index ff4d85e860a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only/webclient/client/Client.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import javax.naming.InitialContext; -import jakarta.transaction.UserTransaction; -import java.io.IOException; -import java.io.PrintWriter; - -import jakarta.xml.ws.*; -import service.web.example.calculator.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/calculator") CalculatorService service; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - UserTransaction ut = null; - try { - ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); - ut.begin(); - - System.out.println(" Service is :" + service); - Calculator port = service.getCalculatorPort(); - int ret = port.add(1, 2); - ut.commit(); - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF Calculator add SERVICE IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - out.flush(); - out.close(); - } catch(Exception e) { - try { - if(ut != null) - ut.rollback(); - } catch (Exception ex) { - ex.printStackTrace(); - } - e.printStackTrace(); - } - } -} - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/README deleted file mode 100644 index 46a300dd71d..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/README +++ /dev/null @@ -1,12 +0,0 @@ -This tests the commit logic of transaction. An EJB webservice is invoked by a servlet. This webservice method uses REQUIRED TX_Attribute. It adds a row in the database table(CUSTOMER_cm) created in the servlet. - -Here is the flow- - -1. Standalone client invokes a servlet -2. Servlet creates table CUSTOMER_cm -3. Servlet starts a UserTransaction -4. Servlet calls the EJB webservice -5. EJB webservice adds a row in the CUSTOMER_cm table -6. Servlet commits the transaction -7. It is checked whether the data is correctly updated in the table. -8. Table CUSTOMER_cm is dropped diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.properties deleted file mode 100644 index cf329e911d7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.properties +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.xml deleted file mode 100644 index 7417a9de9ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/build.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-sun-web.xml deleted file mode 100644 index 7c58dcfe634..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-sun-web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-web.xml deleted file mode 100644 index cd958a9fd88..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client-web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client/TestClient.java deleted file mode 100644 index 0b762444a2c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/client/TestClient.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/transactions/jse_only_ejbcommit"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EJB webservice IS") != -1) - found1 = true; - if(line.indexOf("[WebSvcTest-Hello Appserver Tester !]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/HelloEJB.java deleted file mode 100644 index 9231fb528c4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; -import jakarta.ejb.SessionContext; -import jakarta.ejb.TransactionAttribute; -import jakarta.ejb.TransactionAttributeType; -import jakarta.annotation.Resource; -import java.sql.*; -import javax.sql.DataSource; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - @Resource private SessionContext ctx; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - @TransactionAttribute(TransactionAttributeType.REQUIRED) - public String sayHello(String who) { - System.out.println("**** EJB Called"); - Connection con=null; - String tableName = "CUSTOMER_cm"; - try { - con = ds.getConnection(); - System.out.println("**** auto commit = " + con.getAutoCommit()); - - updateTable(con, tableName, "Vikas", "vikas@sun.com"); - readData(con, tableName); - } catch(Exception ex) { - throw new RuntimeException(ex); - } finally { - try { - if(con != null) con.close(); - } catch (SQLException se) {} - } - //ctx.setRollbackOnly(); - return "WebSvcTest-Hello " + who; - } - - private void updateTable(Connection con, String tableName, String name, String email) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } - - private void readData(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()){ - System.out.println("NAME="+rs.getString(1)+", EMAIL="+rs.getString(2)); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/webclient/client/Client.java deleted file mode 100644 index e220205357c..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit/webclient/client/Client.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.annotation.Resource; -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import javax.naming.InitialContext; -import jakarta.transaction.UserTransaction; -import jakarta.transaction.Status; -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.*; -import javax.sql.DataSource; - -import jakarta.xml.ws.*; -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - UserTransaction ut = null; - // Create Table with name CUSTOMER_cm. This name will be used in the EJB - String tableName = "CUSTOMER_cm"; - String nameEntry = "Vikas"; - String emailEntry= "vikas@sun.com"; - try { - Connection con = ds.getConnection(); - // autocommit is made true so that the table is created and dropped immediately - con.setAutoCommit(true); - createTable(con, tableName); - ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); - ut.begin(); - - System.out.println(" Service is :" + service); - Hello port = service.getHelloEJBPort(); - - String ret = port.sayHello("Appserver Tester !"); - System.out.println("Return value from webservice:"+ret); - - if(ut.getStatus() != Status.STATUS_ACTIVE) { - ret += "FAILED"; - } else { - System.out.println("**** committing transaction"); - ut.commit(); - if(!isDataUpdated(con, tableName, nameEntry, emailEntry)) { - ret += "FAILED"; - } - } - - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EJB webservice IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - dropTable(con, tableName); - } catch(Exception e) { - e.printStackTrace(); - } - } - - // use this table in the EJB webservice - private void createTable(Connection con, String tableName) throws Exception { - System.out.println("**** auto commit = " + con.getAutoCommit()); - PreparedStatement pStmt = - con.prepareStatement("CREATE TABLE "+tableName+" (NAME VARCHAR(30) NOT NULL PRIMARY KEY, EMAIL VARCHAR(30))"); - pStmt.executeUpdate(); - } - - private void dropTable(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = con.prepareStatement("DROP TABLE "+tableName); - pStmt.executeUpdate(); - } - - // Check whether the EJB webservice has updated the data in the table. - private boolean isDataUpdated(Connection con, String tableName, String name, String email) throws Exception { - PreparedStatement pStmt = con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - try { - while(rs.next()) { - String db_Name = rs.getString(1); - String db_Email = rs.getString(2); - System.out.println("NAME="+db_Name+", EMAIL="+db_Email); - if(db_Name.equals(name) && db_Email.equals(email)) - return true; - } - } finally { - rs.close(); - } - return false; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/README deleted file mode 100644 index d4ba329de67..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/README +++ /dev/null @@ -1,13 +0,0 @@ -This tests the commit logic of transaction. An EJB webservice is invoked by a servlet. This webservice method uses REQUIRED TX_Attribute. It adds a row in the database table(CUSTOMER_cm1) created in the servlet. - -Here is the flow- - -1. Standalone client invokes a servlet -2. Servlet creates table CUSTOMER_cm1 -3. Servlet starts a UserTransaction -4. Servlet adds a row in the CUSTOMER_cm1 table -5. Servlet calls the EJB webservice -6. EJB webservice adds a row in the CUSTOMER_cm1 table -7. Servlet commits the transaction -8. It is checked whether the data is correctly updated in the table. -9. Table CUSTOMER_cm1 is dropped diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.properties deleted file mode 100644 index cf329e911d7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.properties +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.xml deleted file mode 100644 index 7417a9de9ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/build.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-sun-web.xml deleted file mode 100644 index 7c58dcfe634..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-sun-web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-web.xml deleted file mode 100644 index cd958a9fd88..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client-web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client/TestClient.java deleted file mode 100644 index 58e95ded684..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/client/TestClient.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/transactions/jse_only_ejbcommit1"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EJB webservice IS") != -1) - found1 = true; - if(line.indexOf("[WebSvcTest-Hello Appserver Tester !]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/HelloEJB.java deleted file mode 100644 index f7923836ac6..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; -import jakarta.ejb.SessionContext; -import jakarta.ejb.TransactionAttribute; -import jakarta.ejb.TransactionAttributeType; -import jakarta.annotation.Resource; -import java.sql.*; -import javax.sql.DataSource; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - @Resource private SessionContext ctx; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - @TransactionAttribute(TransactionAttributeType.REQUIRED) - public String sayHello(String who) { - System.out.println("**** EJB Called"); - Connection con=null; - String tableName = "CUSTOMER_cm1"; - String nameEntry = "Vikas"; - String emailEntry= "vikas@sun.com"; - - try { - con = ds.getConnection(); - System.out.println("**** auto commit = " + con.getAutoCommit()); - - updateTable(con, tableName, nameEntry, emailEntry); - readData(con, tableName); - } catch(Exception ex) { - throw new RuntimeException(ex); - } finally { - try { - if(con != null) con.close(); - } catch (SQLException se) {} - } - //ctx.setRollbackOnly(); - return "WebSvcTest-Hello " + who; - } - - private void updateTable(Connection con, String tableName, String name, String email) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } - - private void readData(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()){ - System.out.println("NAME="+rs.getString(1)+", EMAIL="+rs.getString(2)); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/webclient/client/Client.java deleted file mode 100644 index 6d21dea83fc..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbcommit1/webclient/client/Client.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.annotation.Resource; -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import javax.naming.InitialContext; -import jakarta.transaction.UserTransaction; -import jakarta.transaction.Status; -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.*; -import javax.sql.DataSource; - -import jakarta.xml.ws.*; -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - UserTransaction ut = null; - // Create Table with name CUSTOMER_cm1. This name will be used in the EJB - String tableName = "CUSTOMER_cm1"; - String[] names = {"Vikas", "VikasAwasthi"}; - String[] emails= {"vikas@sun.com", "VikasA@sun.com"}; - try { - Connection con = ds.getConnection(); - createTable(con, tableName); - ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); - ut.begin(); - - updateTable(con, tableName, names[1], emails[1]); - System.out.println(" Service is :" + service); - Hello port = service.getHelloEJBPort(); - - String ret = port.sayHello("Appserver Tester !"); - System.out.println("Return value from webservice:"+ret); - - if(ut.getStatus() != Status.STATUS_ACTIVE) { - ret += "FAILED"; - } else { - System.out.println("**** committing transaction"); - ut.commit(); - if(!isDataUpdated(con, tableName, names, emails)) { - ret += "FAILED"; - } - } - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EJB webservice IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - dropTable(con, tableName); - } catch(Exception e) { - e.printStackTrace(); - } - } - - // use this table in the EJB webservice - private void createTable(Connection con, String tableName) throws Exception { - // autocommit is made true so that the table is created immediately - boolean autoCommit = con.getAutoCommit(); - con.setAutoCommit(true); - System.out.println("**** auto commit = " + con.getAutoCommit()); - PreparedStatement pStmt = - con.prepareStatement("CREATE TABLE "+tableName+" (NAME VARCHAR(30) NOT NULL PRIMARY KEY, EMAIL VARCHAR(30))"); - pStmt.executeUpdate(); - con.setAutoCommit(autoCommit); - } - - private void dropTable(Connection con, String tableName) throws Exception { - boolean autoCommit = con.getAutoCommit(); - con.setAutoCommit(true); - PreparedStatement pStmt = con.prepareStatement("DROP TABLE "+tableName); - pStmt.executeUpdate(); - con.setAutoCommit(autoCommit); - } - - // Check whether the EJB webservice has updated the data in the table. - private boolean isDataUpdated(Connection con, String tableName, String[] names, String[] emails) throws Exception { - PreparedStatement pStmt = con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - int allDataCount = 0; - while(rs.next()) { - String db_Name = rs.getString(1); - String db_Email = rs.getString(2); - System.out.println("NAME="+db_Name+", EMAIL="+db_Email); - for (int i=0; i < names.length; i++) - if(db_Name.equals(names[i]) && db_Email.equals(emails[i])) - allDataCount++; - } - rs.close(); - return (allDataCount == names.length); - } - - private void updateTable(Connection con, String tableName, String name, String email) - throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/README deleted file mode 100644 index 20e70e96e36..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/README +++ /dev/null @@ -1,14 +0,0 @@ -This tests the rollback logic of transaction. An EJB webservice is invoked by a servlet. This webservice method uses REQUIRED TX_Attribute. - -Here is the flow- - -1. Standalone client invokes a servlet -2. Servlet creates table CUSTOMER_rb1 -3. Servlet starts a UserTransaction -4. Servlet adds a row in the CUSTOMER_rb1 table -5. Servlet calls the EJB webservice -6. EJB webservice adds a row in the CUSTOMER_rb1 table -7. Transaction is rolledback using SessionContext.setRollbackOnly() -8. Servlet rollback the transaction -9. It is checked that the data is not updated in the table. -10. Table CUSTOMER_rb1 is dropped diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.properties deleted file mode 100644 index cf329e911d7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.properties +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.xml deleted file mode 100644 index 7417a9de9ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/build.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-sun-web.xml deleted file mode 100644 index 7c58dcfe634..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-sun-web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-web.xml deleted file mode 100644 index cd958a9fd88..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client-web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client/TestClient.java deleted file mode 100644 index e9428a692d5..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/client/TestClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/transactions/jse_only_ejbrollback"; - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EJB webservice IS") != -1) - found1 = true; - if(line.indexOf("[WebSvcTest-Hello Appserver Tester !]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/HelloEJB.java deleted file mode 100644 index 611252067c1..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; -import jakarta.ejb.SessionContext; -import jakarta.ejb.TransactionAttribute; -import jakarta.ejb.TransactionAttributeType; -import jakarta.annotation.Resource; -import java.sql.*; -import javax.sql.DataSource; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - @Resource private SessionContext ctx; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - @TransactionAttribute(TransactionAttributeType.REQUIRED) - public String sayHello(String who) { - System.out.println("**** EJB Called"); - Connection con=null; - String tableName = "CUSTOMER_rb"; - try { - con = ds.getConnection(); - System.out.println("**** auto commit = " + con.getAutoCommit()); - - updateTable(con, tableName, "Vikas", "vikas@sun.com"); - readData(con, tableName); - } catch(Exception ex) { - throw new RuntimeException(ex); - } finally { - try { - if(con != null) con.close(); - } catch (SQLException se) {} - } - ctx.setRollbackOnly(); - return "WebSvcTest-Hello " + who; - } - - private void updateTable(Connection con, String tableName, String name, String email) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } - - private void readData(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()){ - System.out.println("NAME="+rs.getString(1)+", EMAIL="+rs.getString(2)); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/webclient/client/Client.java deleted file mode 100644 index e7ff8060286..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback/webclient/client/Client.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.annotation.Resource; -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import javax.naming.InitialContext; -import jakarta.transaction.UserTransaction; -import jakarta.transaction.Status; -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.*; -import javax.sql.DataSource; - -import jakarta.xml.ws.*; -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - UserTransaction ut = null; - // Create Table with name CUSTOMER_rb. This name will be used in the EJB - String tableName = "CUSTOMER_rb"; - try { - Connection con = ds.getConnection(); - con.setAutoCommit(true); - createTable(con, tableName); - ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); - ut.begin(); - - System.out.println(" Service is :" + service); - Hello port = service.getHelloEJBPort(); - - String ret = port.sayHello("Appserver Tester !"); - System.out.println("Return value from webservice:"+ret); - - if(ut.getStatus() != Status.STATUS_MARKED_ROLLBACK) { - ret += "FAILED"; - } - System.out.println("**** rollbacking transaction"); - ut.rollback(); - if(isDataPresent(con, tableName)) { - ret += "FAILED"; - } - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EJB webservice IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - dropTable(con, tableName); - } catch(Exception e) { - e.printStackTrace(); - } - } - - // use this table in the EJB webservice - private void createTable(Connection con, String tableName) throws Exception { - System.out.println("**** auto commit = " + con.getAutoCommit()); - PreparedStatement pStmt = - con.prepareStatement("CREATE TABLE "+tableName+" (NAME VARCHAR(30) NOT NULL PRIMARY KEY, EMAIL VARCHAR(30))"); - pStmt.executeUpdate(); - } - - private void dropTable(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = con.prepareStatement("DROP TABLE "+tableName); - pStmt.executeUpdate(); - } - - // Check whether the EJB webservice has updated the data in the table. - private boolean isDataPresent(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()) { - String db_Name = rs.getString(1); - String db_Email = rs.getString(2); - System.out.println("NAME="+db_Name+", EMAIL="+db_Email); - rs.close(); - return true; - } - return false; - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/README b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/README deleted file mode 100644 index f227946fc00..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/README +++ /dev/null @@ -1,13 +0,0 @@ -This tests the rollback logic of transaction. An EJB webservice is invoked by a servlet. This webservice method uses REQUIRED TX_Attribute. - -Here is the flow- - -1. Standalone client invokes a servlet -2. Servlet creates table CUSTOMER_rb1 -3. Servlet starts a UserTransaction -4. Servlet adds a row in the CUSTOMER_rb1 table -5. Servlet calls the EJB webservice -6. EJB webservice adds a row in the CUSTOMER_rb1 table -7. Servlet rollback the transaction -8. It is checked that the data is not updated in the table. -9. Table CUSTOMER_rb1 is dropped diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.properties b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.properties deleted file mode 100644 index cf329e911d7..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.properties +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.xml deleted file mode 100644 index 7417a9de9ec..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/build.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - -]> - - - - &commonSetup; - &commonBuild; - &testproperties; - &jaxwsTools; - &jbicommon; - &jbiproperties; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-sun-web.xml deleted file mode 100644 index 7c58dcfe634..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-sun-web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - sun-web.serviceref/HelloEJBService - - endpoint.ejb.Hello - - http://endpoint/ejb - HelloEJBPort - - - jbi-enabled - true - - - http://localhost:8080/HelloEJBService/HelloEJB?WSDL - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-web.xml deleted file mode 100644 index cd958a9fd88..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client-web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - A test application - WebTier - - centralServlet - RequestProcessor - client.Client - - - RequestProcessor - /webclient/RequestProcessor - - - service ref for ejb endpoint - service/helloservice - javax.xml.rpc.Service - - endpoint.ejb.Hello - - - - - 54 - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client/TestClient.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client/TestClient.java deleted file mode 100644 index 50255aab165..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/client/TestClient.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.URL; - -import com.sun.ejte.ccl.reporter.SimpleReporterAdapter; - -public class TestClient { - - private static SimpleReporterAdapter stat = - new SimpleReporterAdapter("appserv-tests"); - - private static String testId = "jbi-serviceengine/transactions/jse_only_ejbrollback1"; - - public boolean found1 = false; - public boolean found2 = false; - - public static void main (String[] args) { - stat.addDescription(testId); - TestClient client = new TestClient(); - client.doTest(args); - stat.printSummary(testId); - } - - public void doTest(String[] args) { - - String url = args[0]; - try { - int code = invokeServlet(url); - report(code); - } catch (Exception e) { - e.printStackTrace(); - fail(); - } - } - - private int invokeServlet(String url) throws Exception { - log("Invoking url = " + url); - URL u = new URL(url); - HttpURLConnection c1 = (HttpURLConnection)u.openConnection(); - int code = c1.getResponseCode(); - InputStream is = c1.getInputStream(); - BufferedReader input = new BufferedReader (new InputStreamReader(is)); - String line = null; - while ((line = input.readLine()) != null) { - log(line); - if(line.indexOf("So the RESULT OF EJB webservice IS") != -1) - found1 = true; - if(line.indexOf("[WebSvcTest-Hello Appserver Tester !]") != -1) - found2 = true; - } - return code; - } - - private void report(int code) { - if(code != 200) { - log("Incorrect return code: " + code); - fail(); - } - if(!found1) { - fail(); - } - if(!found2) { - fail(); - } - pass(); - } - - private void log(String message) { - System.out.println("[client.TestClient]:: " + message); - } - - private void pass() { - stat.addStatus(testId, stat.PASS); - } - - private void fail() { - stat.addStatus(testId, stat.FAIL); - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/Hello.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/Hello.java deleted file mode 100644 index 524346ae398..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/Hello.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; - -@WebService( -targetNamespace="http://endpoint/ejb") -public interface Hello { - - public String sayHello(String who); -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/HelloEJB.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/HelloEJB.java deleted file mode 100644 index e7bd34f813a..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/endpoint/ejb/HelloEJB.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package endpoint.ejb; - -import jakarta.jws.WebService; -import jakarta.xml.ws.WebServiceRef; -import jakarta.ejb.Stateless; -import jakarta.ejb.SessionContext; -import jakarta.ejb.TransactionAttribute; -import jakarta.ejb.TransactionAttributeType; -import jakarta.annotation.Resource; -import java.sql.*; -import javax.sql.DataSource; - -@WebService(endpointInterface="endpoint.ejb.Hello", targetNamespace="http://endpoint/ejb") -@Stateless -public class HelloEJB implements Hello { - - @Resource private SessionContext ctx; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - @TransactionAttribute(TransactionAttributeType.REQUIRED) - public String sayHello(String who) { - System.out.println("**** EJB Called"); - Connection con=null; - String tableName = "CUSTOMER_rb1"; - String nameEntry = "Vikas"; - String emailEntry= "vikas@sun.com"; - - try { - con = ds.getConnection(); - System.out.println("**** auto commit = " + con.getAutoCommit()); - - updateTable(con, tableName, nameEntry, emailEntry); - readData(con, tableName); - } catch(Exception ex) { - throw new RuntimeException(ex); - } finally { - try { - if(con != null) con.close(); - } catch (SQLException se) {} - } - //ctx.setRollbackOnly(); - return "WebSvcTest-Hello " + who; - } - - private void updateTable(Connection con, String tableName, String name, String email) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } - - private void readData(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = - con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()){ - System.out.println("NAME="+rs.getString(1)+", EMAIL="+rs.getString(2)); - } - } -} diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/sun-web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/sun-web.xml deleted file mode 100644 index e4a87c176e4..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/web.xml b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/web.xml deleted file mode 100644 index 1b11b19206e..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - WebTier for the Calculator Service - CalculatorWAR - - - Endpoint for Calculator Web Service - CalculatorWebService - Calculator - endpoint.Calculator - 0 - - - - Calculator - /webservice/CalculatorService - - - - 54 - - - - diff --git a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/webclient/client/Client.java b/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/webclient/client/Client.java deleted file mode 100644 index 8db897d1c56..00000000000 --- a/appserver/tests/appserv-tests/devtests/webservice/jbi-serviceengine/transactions/jse_only_ejbrollback1/webclient/client/Client.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package client; - -import jakarta.annotation.Resource; -import jakarta.servlet.*; -import jakarta.servlet.http.*; -import javax.naming.InitialContext; -import jakarta.transaction.UserTransaction; -import jakarta.transaction.Status; -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.*; -import javax.sql.DataSource; - -import jakarta.xml.ws.*; -import endpoint.ejb.*; - -public class Client extends HttpServlet { - - @WebServiceRef(name="sun-web.serviceref/HelloEJBService") - HelloEJBService service; - @Resource(mappedName="jdbc/__default") private DataSource ds; - - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - doPost(req, resp); - } - - public void doPost(HttpServletRequest req, HttpServletResponse resp) - throws jakarta.servlet.ServletException { - UserTransaction ut = null; - // Create Table with name CUSTOMER_rb1. This name will be used in the EJB - String tableName = "CUSTOMER_rb1"; - String[] names = {"Vikas", "VikasAwasthi"}; - String[] emails= {"vikas@sun.com", "VikasA@sun.com"}; - try { - Connection con = ds.getConnection(); - createTable(con, tableName); - ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction"); - ut.begin(); - - updateTable(con, tableName, names[1], emails[1]); - System.out.println(" Service is :" + service); - Hello port = service.getHelloEJBPort(); - - String ret = port.sayHello("Appserver Tester !"); - System.out.println("Return value from webservice:"+ret); - System.out.println("**** rollbacking transaction"); - ut.rollback(); - - if(isDataPresent(con, tableName)) { - ret += "FAILED"; - } - - PrintWriter out = resp.getWriter(); - resp.setContentType("text/html"); - out.println(""); - out.println(""); - out.println("TestServlet"); - out.println(""); - out.println(""); - out.println("

"); - out.println("So the RESULT OF EJB webservice IS :"); - out.println("

"); - out.println("[" + ret + "]"); - out.println(""); - out.println(""); - dropTable(con, tableName); - } catch(Exception e) { - e.printStackTrace(); - } - } - - // use this table in the EJB webservice - private void createTable(Connection con, String tableName) throws Exception { - // autocommit is made true so that the table is created immediately - boolean autoCommit = con.getAutoCommit(); - con.setAutoCommit(true); - System.out.println("**** auto commit = " + con.getAutoCommit()); - PreparedStatement pStmt = - con.prepareStatement("CREATE TABLE "+tableName+" (NAME VARCHAR(30) NOT NULL PRIMARY KEY, EMAIL VARCHAR(30))"); - pStmt.executeUpdate(); - con.setAutoCommit(autoCommit); - } - - private void dropTable(Connection con, String tableName) throws Exception { - boolean autoCommit = con.getAutoCommit(); - con.setAutoCommit(true); - PreparedStatement pStmt = con.prepareStatement("DROP TABLE "+tableName); - pStmt.executeUpdate(); - con.setAutoCommit(autoCommit); - } - - // Check whether the EJB webservice has updated the data in the table. - private boolean isDataPresent(Connection con, String tableName) throws Exception { - PreparedStatement pStmt = con.prepareStatement("SELECT NAME, EMAIL FROM "+tableName); - ResultSet rs = pStmt.executeQuery(); - while(rs.next()) { - String db_Name = rs.getString(1); - String db_Email = rs.getString(2); - System.out.println("NAME="+db_Name+", EMAIL="+db_Email); - rs.close(); - return true; - } - return false; - } - - private void updateTable(Connection con, String tableName, String name, String email) - throws Exception { - PreparedStatement pStmt = - con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)"); - pStmt.setString(1, name); - pStmt.setString(2, email); - pStmt.executeUpdate(); - } -} diff --git a/appserver/tests/tck/embedded_ejb_smoke/ejb_lite_basic/src/main/java/com/sun/ts/lib/harness/ServiceEETest.java b/appserver/tests/tck/embedded_ejb_smoke/ejb_lite_basic/src/main/java/com/sun/ts/lib/harness/ServiceEETest.java index 6316612015e..d9a33118be4 100644 --- a/appserver/tests/tck/embedded_ejb_smoke/ejb_lite_basic/src/main/java/com/sun/ts/lib/harness/ServiceEETest.java +++ b/appserver/tests/tck/embedded_ejb_smoke/ejb_lite_basic/src/main/java/com/sun/ts/lib/harness/ServiceEETest.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2023 Contributors to the Eclipse Foundation. * Copyright (c) 2007, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the @@ -30,9 +31,10 @@ import com.sun.ts.tests.common.vehicle.VehicleRunnerFactory; /** - * This abstract class must be extended by all clients of tests of J2EE service apis; for example, JDBC, RMI-IIOP, JavaMail, JMS, - * etc. When a service test is encountered by the JavaTest Client, the instance is passed to a J2EE server component and run from - * that remote location. Using this model to develop tests allows the same test to be run from different locations within the + * This abstract class must be extended by all clients of tests of J2EE service apis; for example, + * JDBC, RMI-IIOP, JavaMail, JMS, etc. When a service test is encountered by the JavaTest Client, + * the instance is passed to a J2EE server component and run from that remote location. Using this + * model to develop tests allows the same test to be run from different locations within the * scope of the J2EE Application Programming Model. * * @author Kyle Grucci @@ -53,24 +55,24 @@ public abstract class ServiceEETest extends EETest { private Object theSharedObject; - private Object theSharedObjectArray[]; + private Object[] theSharedObjectArray; /** - * Returns any additional properties that may need to be set by a subclass of ServiceEETest for use by a specific vehicle. This - * method was created due to a need for clients of the JBIVehicle to set the name of the object to lookup in the rmiregistry. By - * rule, this value should match the id name for the component specified in the JBI installation descriptor. This impl returns an - * empty properties object by default. + * Returns any additional properties that may need to be set by a subclass of ServiceEETest + * for use by a specific vehicle. This impl returns an empty properties object by default. * * @param p user configured properties used by the test - * @return Properties Additional properties that may need to be set by a subclass of ServiceEETest for use by a specific vehicle. + * @return Properties Additional properties that may need to be set by a subclass of ServiceEETest + * for use by a specific vehicle. */ public Properties getVehicleSpecificClientProps(Properties p) { return new Properties(); } /** - * When called within the harness VM, this method passes an instance of itself to the appropriate J2EE server component. When - * called from within that server component, EETest's run method is called and the test is run. + * When called within the harness VM, this method passes an instance of itself to the appropriate + * J2EE server component. When called from within that server component, EETest's run method is + * called and the test is run. * * @param argv an array of arguments that a test may use * @param p user configured properties used by this test @@ -117,7 +119,7 @@ protected Properties getTestPropsFromArgs(String[] argv) { vLeftOverTestArgs = new Vector(); if (TestUtil.harnessDebug) - TestUtil.logHarnessDebug("ServiceEETest: " + argv.length + " args: " + Arrays.asList(argv).toString()); + TestUtil.logHarnessDebug("ServiceEETest: " + argv.length + " args: " + Arrays.asList(argv)); // load a props object if used with -p boolean tFound = false; String argItem = null; @@ -126,8 +128,8 @@ protected Properties getTestPropsFromArgs(String[] argv) { if (argItem.equals("-p") || argItem.equals("-ap")) { ap = initializeProperties(argv[++ii]); // add additional props to "p" - Enumeration e = ap.propertyNames(); - String key = null; + Enumeration e = ap.propertyNames(); + String key; while (e.hasMoreElements()) { key = (String) e.nextElement(); p.put(key, ap.getProperty(key)); @@ -184,12 +186,12 @@ public Status run(String[] argv, PrintWriter log, PrintWriter err) { } else { argv = new String[iSize]; for (int ii = 0; ii < iSize; ii++) { - argv[ii] = (String) vLeftOverTestArgs.elementAt(ii); + argv[ii] = vLeftOverTestArgs.elementAt(ii); } } - if (sTestCase == null) + if (sTestCase == null) { return runAllTestCases(argv, props, log, err); - else { + } else { for (int ii = 0; ii < sVehicles.length; ii++) { props.put("vehicle", sVehicles[ii]); // need to pass these streams to the Local Reporter @@ -207,8 +209,7 @@ public Status run(String[] argv, PrintWriter log, PrintWriter err) { return s; } - // overridden to allow service tests to run in standalone - // mode outside of javatest + // Overridden to allow service tests to run in standalone mode outside of javatest protected Status runAllTestCases(String[] argv, Properties p, PrintStream log, PrintStream err) { if (sVehicles == null) { if (TestUtil.harnessDebug) @@ -234,10 +235,9 @@ private String[] getVehicles(Properties p) { sVal = p.getProperty("service_eetest.vehicles"); } catch (Exception e) { // got an exception looking up the prop, so set defaults - sVal = ""; sVal = "ejb servlet jsp"; } - if (sVal == null || sVal.equals("")) { + if (sVal == null || sVal.isEmpty()) { sVehiclesToUse = "ejb servlet jsp"; if (TestUtil.harnessDebug) TestUtil.logHarnessDebug("getVehicles: " + "Using default - all vehicles"); diff --git a/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/samples/testMBeanRegistry.smp b/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/samples/testMBeanRegistry.smp index dd49699a207..be7aae88351 100755 --- a/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/samples/testMBeanRegistry.smp +++ b/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/samples/testMBeanRegistry.smp @@ -1452,8 +1452,6 @@ MBeanRegistry(132 entries): --- Attributes: AttributeInfo[name=name, description=null, type=java.lang.String] Descriptor[setter=setName getter=getName bean=CBEAN ] - AttributeInfo[name=jbi-enabled, description=null, type=boolean] - Descriptor[setter=setJbiEnabled getter=isJbiEnabled bean=CBEAN ] AttributeInfo[name=max-history-size, description=null, type=java.lang.String] Descriptor[setter=setMaxHistorySize getter=getMaxHistorySize bean=CBEAN ] AttributeInfo[name=monitoring, description=null, type=java.lang.String] @@ -2214,8 +2212,6 @@ MBeanRegistry(132 entries): --- Attributes: AttributeInfo[name=name, description=null, type=java.lang.String] Descriptor[setter=setName getter=getName bean=CBEAN ] - AttributeInfo[name=jbi-enabled, description=null, type=boolean] - Descriptor[setter=setJbiEnabled getter=isJbiEnabled bean=CBEAN ] AttributeInfo[name=max-history-size, description=null, type=java.lang.String] Descriptor[setter=setMaxHistorySize getter=getMaxHistorySize bean=CBEAN ] AttributeInfo[name=monitoring, description=null, type=java.lang.String] @@ -5406,8 +5402,6 @@ MBeanRegistry(132 entries): --- Attributes: AttributeInfo[name=name, description=null, type=java.lang.String] Descriptor[setter=setName getter=getName bean=CBEAN ] - AttributeInfo[name=jbi-enabled, description=null, type=boolean] - Descriptor[setter=setJbiEnabled getter=isJbiEnabled bean=CBEAN ] AttributeInfo[name=max-history-size, description=null, type=java.lang.String] Descriptor[setter=setMaxHistorySize getter=getMaxHistorySize bean=CBEAN ] AttributeInfo[name=monitoring, description=null, type=java.lang.String] diff --git a/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/test.dtd b/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/test.dtd index 1b7e5a75f8d..707fa365da3 100755 --- a/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/test.dtd +++ b/appserver/tests/v2-tests/appserv-tests/devtests/admin/framework/testfiles/test.dtd @@ -1,6 +1,7 @@
- - "JBI Framework LifecycleModule" - - - @@ -62,7 +58,6 @@ - diff --git a/nucleus/common/common-util/src/test/resources/v2domain.xml b/nucleus/common/common-util/src/test/resources/v2domain.xml index b1de80eb3ef..444e5768a48 100644 --- a/nucleus/common/common-util/src/test/resources/v2domain.xml +++ b/nucleus/common/common-util/src/test/resources/v2domain.xml @@ -2,6 +2,7 @@ - - "JBI Framework LifecycleModule" - - @@ -213,7 +210,6 @@ - diff --git a/nucleus/common/common-util/src/test/resources/wrongorder.xml b/nucleus/common/common-util/src/test/resources/wrongorder.xml index 1261ad04550..ce7b2bab90b 100644 --- a/nucleus/common/common-util/src/test/resources/wrongorder.xml +++ b/nucleus/common/common-util/src/test/resources/wrongorder.xml @@ -1,5 +1,6 @@ - - "JBI Framework LifecycleModule" - - - @@ -192,7 +188,6 @@ -