This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 845c1e4f18340884acdd2e717a8f20e321a79355 Author: Robert Lazarski <[email protected]> AuthorDate: Mon Oct 12 08:33:06 2026 -1000 Remove the https, jms and java_first_jaxws samples None of them could be run as documented: the https sample used the Jetty 6 plugin, java_first_jaxws a javax-based Cargo container, and the jms sample had no client. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../src/main/assembly/bin-assembly.xml | 2 - modules/samples/java_first_jaxws/README | 23 -- modules/samples/java_first_jaxws/pom.xml | 163 ---------- .../src/main/demo/hw/server/HelloWorld.java | 31 -- .../src/main/demo/hw/server/HelloWorldImpl.java | 32 -- .../java_first_jaxws/src/webapp/WEB-INF/axis2.xml | 326 ------------------- .../WEB-INF/classes/commons-logging.properties | 31 -- .../src/webapp/WEB-INF/classes/log4j2.xml | 44 --- .../java_first_jaxws/src/webapp/WEB-INF/web.xml | 38 --- modules/samples/pom.xml | 3 - modules/samples/transport/https-sample/README.txt | 58 ---- .../transport/https-sample/httpsClient/pom.xml | 33 -- .../examples/httpsclient/SimpleServiceClient.java | 61 ---- .../transport/https-sample/httpsService/pom.xml | 87 ------ .../axis2/examples/httpsservice/SimpleService.java | 28 -- .../httpsService/src/main/webapp/WEB-INF/axis2.xml | 337 -------------------- .../services/SimpleService/META-INF/services.xml | 27 -- .../httpsService/src/main/webapp/WEB-INF/web.xml | 30 -- modules/samples/transport/https-sample/pom.xml | 58 ---- modules/samples/transport/jms-sample/README.txt | 39 --- .../transport/jms-sample/jmsService/pom.xml | 74 ----- .../axis2/examples/jmsservice/SimpleService.java | 28 -- .../jmsService/src/main/resources/axis2.xml | 347 --------------------- .../services/SimpleService/META-INF/services.xml | 24 -- modules/samples/transport/jms-sample/pom.xml | 57 ---- src/site/markdown/release-notes/2.0.2.md | 7 +- src/site/xdoc/docs/userguide-samples.xml | 3 +- 27 files changed, 6 insertions(+), 1985 deletions(-) diff --git a/modules/distribution/src/main/assembly/bin-assembly.xml b/modules/distribution/src/main/assembly/bin-assembly.xml index 8e1fa44493..bc9a50861c 100755 --- a/modules/distribution/src/main/assembly/bin-assembly.xml +++ b/modules/distribution/src/main/assembly/bin-assembly.xml @@ -128,7 +128,6 @@ <include>jaxws-calculator/**/*</include> <include>jaxws-addressbook/**/*</include> <include>jaxws-samples/**/*</include> - <include>java_first_jaxws/**/*</include> <include>jaxws-interop/**/*</include> <include>jaxws-version/**/*</include> <include>json/**/*</include> @@ -142,7 +141,6 @@ <include>quickstartxmlbeans/**/*</include> <include>servicelifecycle/**/*</include> <include>soapwithattachments/**/*</include> - <include>transport/**/*</include> <include>userguide/**/*</include> <include>version/**/*</include> <include>wsdl/**/*</include> diff --git a/modules/samples/java_first_jaxws/README b/modules/samples/java_first_jaxws/README deleted file mode 100644 index abc5193fe7..0000000000 --- a/modules/samples/java_first_jaxws/README +++ /dev/null @@ -1,23 +0,0 @@ -This example shows how to use Axis2 in a servlet container. You must -have Maven 3.6.0+ and JDK 17 or later installed to build this example. To build type: - -$ mvn package - -To run the sample using a Servlet Engine there are two options. - -The first is to install a Jakarta Servlet 6.0 container such as Tomcat 11. Rename the resultant war as your_web_app.war and drop it into webapps directory under tomcat. -The WSDL file for the service should be viewable at: - -http://yourhost:port/your_web_app/services/HelloWorld.HelloWorldImplPort?wsdl - -The Maven project also configures the Cargo plugin (mvn cargo:start), but that configuration -predates Jakarta EE: it uses cargo-maven2-plugin 1.9.0 with its default, javax-based Jetty -container, which cannot run this sample. Use a Jakarta Servlet 6.0 container as above. - -To run the sample under axis2server: - -Please copy target/java_first_jaxws-<version>-classes.jar into <AXIS2_HOME>/repository/servicejars (Please create the directory if it does not exist). Then start the axis2 server. -The WSDL file for the service should be viewable at: - -http://localhost:8080/axis2/services/HelloWorld.HelloWorldImplPort?wsdl - diff --git a/modules/samples/java_first_jaxws/pom.xml b/modules/samples/java_first_jaxws/pom.xml deleted file mode 100644 index 55c703485c..0000000000 --- a/modules/samples/java_first_jaxws/pom.xml +++ /dev/null @@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>samples</artifactId> - <version>2.0.2-SNAPSHOT</version> - </parent> - - <artifactId>java_first_jaxws</artifactId> - <packaging>war</packaging> - - <name>JAXWS - Starting from Java Example</name> - <inceptionYear>2004</inceptionYear> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> - - <dependencies> - <dependency> - <groupId>jakarta.servlet</groupId> - <artifactId>jakarta.servlet-api</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-kernel</artifactId> - <version>2.0.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-jaxws</artifactId> - <version>2.0.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-codegen</artifactId> - <version>2.0.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-adb</artifactId> - <version>2.0.2-SNAPSHOT</version> - </dependency> - <dependency> - <groupId>com.sun.xml.ws</groupId> - <artifactId>jaxws-rt</artifactId> - <version>4.0.5</version> - <exclusions> - <exclusion> - <groupId>javax.xml.ws</groupId> - <artifactId>jaxws-api</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.xml.bind</groupId> - <artifactId>jaxb-impl</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.xml.messaging.saaj</groupId> - <artifactId>saaj-impl</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.xml.stream.buffer</groupId> - <artifactId>streambuffer</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.xml.stream</groupId> - <artifactId>sjsxp</artifactId> - </exclusion> - <exclusion> - <groupId>org.jvnet.staxex</groupId> - <artifactId>stax-ex</artifactId> - </exclusion> - <exclusion> - <groupId>com.sun.org.apache.xml.internal</groupId> - <artifactId>resolver</artifactId> - </exclusion> - <exclusion> - <groupId>org.jvnet</groupId> - <artifactId>mimepull</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - - <build> - <sourceDirectory>src/main</sourceDirectory> - <testSourceDirectory>src/test</testSourceDirectory> - <resources> - <resource> - <directory>src/main</directory> - <includes> - <include>**/*.xml</include> - </includes> - </resource> - </resources> - <testResources> - <testResource> - <directory>src/test</directory> - <includes> - <include>**/*.xml</include> - <include>**/*.properties</include> - <include>**/*.wsdl</include> - </includes> - </testResource> - </testResources> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-war-plugin</artifactId> - <version>3.5.1</version> - <configuration> - <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory> - </configuration> - </plugin> - <plugin><!-- Also build the JAR during the package phase. The JAR is required - when deploying on axis2server. --> - <artifactId>maven-jar-plugin</artifactId> - <executions> - <execution> - <goals> - <goal>jar</goal> - </goals> - <phase>package</phase> - <configuration> - <classifier>classes</classifier> - </configuration> - </execution> - </executions> - </plugin> - <plugin><!-- This allows to run the sample on an embedded servlet container - using the following command: mvn cargo:start --> - <groupId>org.codehaus.cargo</groupId> - <artifactId>cargo-maven2-plugin</artifactId> - <version>1.9.0</version> - </plugin> - </plugins> - </build> -</project> diff --git a/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorld.java b/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorld.java deleted file mode 100644 index 3ee4076145..0000000000 --- a/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorld.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package demo.hw.server; - -import java.util.Map; - -import jakarta.jws.WebService; -import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -@WebService -public interface HelloWorld { - - String sayHi(String text); -} -// END SNIPPET: service diff --git a/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorldImpl.java b/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorldImpl.java deleted file mode 100644 index a5379175cb..0000000000 --- a/modules/samples/java_first_jaxws/src/main/demo/hw/server/HelloWorldImpl.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package demo.hw.server; - -import java.util.LinkedHashMap; -import java.util.Map; - -import jakarta.jws.WebService; - -@WebService(endpointInterface = "demo.hw.server.HelloWorld", - serviceName = "HelloWorld") -public class HelloWorldImpl implements HelloWorld { - public String sayHi(String text) { - return "Hello " + text; - } -} diff --git a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/axis2.xml b/modules/samples/java_first_jaxws/src/webapp/WEB-INF/axis2.xml deleted file mode 100644 index e4b8900d3c..0000000000 --- a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/axis2.xml +++ /dev/null @@ -1,326 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<axisconfig name="AxisJava2.0"> - <!-- ================================================= --> - <!-- Parameters --> - <!-- ================================================= --> - <parameter name="hotdeployment">true</parameter> - <parameter name="hotupdate">false</parameter> - <parameter name="enableMTOM">false</parameter> - <parameter name="enableSwA">false</parameter> - - <!--Uncomment if you want to enable file caching for attachments --> - <!--parameter name="cacheAttachments">true</parameter> - <parameter name="attachmentDIR"></parameter> - <parameter name="sizeThreshold">4000</parameter--> - - <!--Uncomment if you want to plugin your own attachments lifecycle implementation --> - <!--<attachmentsLifecycleManager class="org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl"/>--> - - - <!--Uncomment if you want to enable the reduction of the in-memory cache of WSDL definitions --> - <!--In some server environments, the available memory heap is limited and can fill up under load --> - <!--Since in-memory copies of WSDL definitions can be large, some steps can be taken--> - <!--to reduce the memory needed for the cached WSDL definitions. --> - <!--parameter name="reduceWSDLMemoryCache">true</parameter--> - - <!--This will give out the timout of the configuration contexts, in milliseconds--> - <parameter name="ConfigContextTimeoutInterval">30000</parameter> - - <!--During a fault, stack trace can be sent with the fault message. The following flag will control --> - <!--that behavior.--> - <parameter name="sendStacktraceDetailsWithFaults">false</parameter> - - <!--If there aren't any information available to find out the fault reason, we set the message of the exception--> - <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be --> - <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag--> - <!--is set, then Axis2 tries to get the first exception and set its message as the faultreason/Reason.--> - <parameter name="DrillDownToRootCauseForFaultReason">false</parameter> - - <parameter name="userName"></parameter> - <parameter name="password"></parameter> - - <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.--> - <!--ServicesDirectory only works on the following cases--> - <!---File based configurator and in that case the value should be a file URL (http:// not allowed)--> - <!---When creating URL Based configurator with URL “file://” --> - <!--- War based configurator with expanded case , --> - - <!--All the other scenarios it will be ignored.--> - <!--<parameter name="ServicesDirectory">service</parameter>--> - <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path--> - <!--<parameter name="ModulesDirectory">modules</parameter>--> - - - - <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context--> - <!--root which can configured using the following contextRoot parameter--> - <!--<parameter name="contextRoot">axis2</parameter>--> - - <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints--> - <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this --> - <!--context path to proper Axis2 servlets--> - <!--<parameter name="servicePath">services</parameter>--> - <!--<parameter name="restPath">rest</parameter>--> - - <!-- Following parameter will completely disable REST handling in Axis2--> - <parameter name="disableREST" locked="true">false</parameter> - - <!-- Following parameter will suppress generation of SOAP 1.2 bindings in auto-generated WSDL files --> - <parameter name="disableSOAP12" locked="true">false</parameter> - - <!--POJO deployer , this will alow users to drop .class file and make that into a service--> - <deployer extension=".class" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/> - <deployer extension=".jar" directory="pojo" class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/> - <!--<deployer extension=".jsa" directory="rmiservices" class="org.apache.axis2.rmi.deploy.RMIServiceDeployer"/>--> - - - <!-- Following parameter will set the host name for the epr--> - <!--<parameter name="hostname" locked="true">myhost.com</parameter>--> - - <!-- If you have a front end host which exposes this webservice using a different public URL --> - <!-- use this parameter to override autodetected url --> - <!--<parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>--> - - - <!-- The way of adding listener to the system--> - <!-- <listener class="org.apache.axis2.ObserverIMPL">--> - <!-- <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>--> - <!-- </listener>--> - - <!-- Uncomment if JAX-WS 2.1 support is needed. --> - <!-- - <threadContextMigrators> - <threadContextMigrator listId="JAXWS-ThreadContextMigrator-List" class="org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator"/> - </threadContextMigrators> - --> - - <!-- ================================================= --> - <!-- Message Receivers --> - <!-- ================================================= --> - <!--This is the deafult MessageReceiver for the system , if you want to have MessageReceivers for --> - <!--all the other MEP implement it and add the correct entry to here , so that you can refer from--> - <!--any operation --> - <!--Note : You can ovrride this for a particular service by adding the same element with your requirement--> - <messageReceivers> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - </messageReceivers> - - <!-- ================================================= --> - <!-- Message Formatter --> - <!-- ================================================= --> - <!--Following content type to message formatter mapping can be used to implement support for different message --> - <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageFormatters> - <messageFormatter contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.kernel.http.XFormURLEncodedFormatter"/> - <messageFormatter contentType="multipart/form-data" - class="org.apache.axis2.kernel.http.MultipartFormDataFormatter"/> - <messageFormatter contentType="application/xml" - class="org.apache.axis2.kernel.http.ApplicationXMLFormatter"/> - <messageFormatter contentType="text/xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - <messageFormatter contentType="application/soap+xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - </messageFormatters> - - <!-- ================================================= --> - <!-- Message Builders --> - <!-- ================================================= --> - <!--Following content type to builder mapping can be used to implement support for different message --> - <!--formats in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageBuilders> - <messageBuilder contentType="application/xml" - class="org.apache.axis2.builder.ApplicationXMLBuilder"/> - <messageBuilder contentType="application/xml" - class="org.apache.axis2.builder.ApplicationXMLBuilder"/> - <messageBuilder contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.builder.XFormURLEncodedBuilder"/> - <messageBuilder contentType="multipart/form-data" - class="org.apache.axis2.builder.MultipartFormDataBuilder"/> - </messageBuilders> - - <!-- ================================================= --> - <!-- Transport Ins --> - <!-- ================================================= --> - <transportReceiver name="http" - class="org.apache.axis2.transport.http.AxisServletListener"/> - - <!--Uncomment if you want to have TCP transport support--> - <!--transportReceiver name="tcp" - class="org.apache.axis2.transport.tcp.TCPServer"> - <parameter name="port">6060</parameter-->> - <!--If you want to give your own host address for EPR generation--> - <!--uncomment the following paramter , and set it as you required.--> - <!--<parameter name="hostname">tcp://myApp.com/ws</parameter>--> - <!-- /transportReceiver --> - - <!-- ================================================= --> - <!-- Transport Outs --> - <!-- ================================================= --> - - <!--Uncomment if you want to have TCP transport support--> - <!-- - <transportSender name="tcp" - class="org.apache.axis2.transport.tcp.TCPTransportSender"/> - --> - <!-- transportSender name="local" - class="org.apache.axis2.transport.local.LocalTransportSender"/ --> - <transportSender name="http" - class="org.apache.axis2.transport.http.impl.httpclient5.HTTPClient5TransportSender"> - <parameter name="PROTOCOL">HTTP/1.1</parameter> - <parameter name="Transfer-Encoding">chunked</parameter> - - <!-- If following is set to 'true', optional action part of the Content-Type will not be added to the SOAP 1.2 messages --> - <!-- <parameter name="OmitSOAP12Action">true</parameter> --> - </transportSender> - - <transportSender name="https" - class="org.apache.axis2.transport.http.impl.httpclient5.HTTPClient5TransportSender"> - <parameter name="PROTOCOL">HTTP/1.1</parameter> - <parameter name="Transfer-Encoding">chunked</parameter> - </transportSender> - <transportSender name="java" - class="org.apache.axis2.transport.java.JavaTransportSender"/> - - <!-- ================================================= --> - <!-- Global Modules --> - <!-- ================================================= --> - <!-- Comment this to disable Addressing --> - <!--<module ref="addressing"/>--> - - <!--Configuring module , providing parameters for modules whether they refer or not--> - <!--<moduleConfig name="addressing">--> - <!--<parameter name="addressingPara">N/A</parameter>--> - <!--</moduleConfig>--> - - <!-- ================================================= --> - <!-- Clustering --> - <!-- ================================================= --> - <!-- Configure and uncomment following for preparing Axis2 to a clustered environment --> - <!-- - <cluster class="org.apache.axis2.cluster.tribes.TribesClusterManager"> - <parameter name="param1">value1</parameter> - <parameter name="domain">apache.axis2.domain</parameter> - <parameter name="synchronizeAll">true</parameter> - <parameter name="maxRetries">10</parameter> - <configurationManager class="org.apache.axis2.cluster.configuration.TribesConfigurationManager"> - <listener class="org.apache.axis2.cluster.configuration.DefaultConfigurationManagerListener"/> - </configurationManager> - <contextManager class="org.apache.axis2.cluster.context.TribesContextManager"> - <listener class="org.apache.axis2.cluster.context.DefaultContextManagerListener"/> - </contextManager> - </cluster> - --> - - <!-- ================================================= --> - <!-- Phases --> - <!-- ================================================= --> - <phaseOrder type="InFlow"> - <!-- System predefined phases --> - <phase name="Transport"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"> - <order phase="Transport"/> - </handler> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"> - <order phase="Transport"/> - </handler> - </phase> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - </phase> - <phase name="RMPhase"/> - <!-- System predefined phases --> - <!-- After Postdispatch phase module author or service author can add any phase he want --> - <phase name="OperationInPhase"/> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutPhase"/> - <!--system predefined phase--> - <!--these phase will run irrespective of the service--> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> - <phaseOrder type="InFaultFlow"> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - </phase> - <phase name="RMPhase"/> - <!-- user can add his own phases to this area --> - <phase name="OperationInFaultPhase"/> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFaultFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutFaultPhase"/> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> -</axisconfig> - diff --git a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/commons-logging.properties b/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/commons-logging.properties deleted file mode 100644 index 09fdd0ad91..0000000000 --- a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/commons-logging.properties +++ /dev/null @@ -1,31 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# - - -# This is the logging properties that goes to the war, there are two logging conf kept at the -# svn, one for developement (one at src/test-resources) and other for producation - -# Uncomment the next line to disable all logging. -#org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog - -# Uncomment the next line to enable the simple log based logging -#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog - -# Uncomment the next line to enable log4j based logging -org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger diff --git a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/log4j2.xml b/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/log4j2.xml deleted file mode 100644 index d2e94acaaf..0000000000 --- a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/classes/log4j2.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Configuration status="debug" name="axis2" packages=""> - <Appenders> - <Console name="Console" target="SYSTEM_OUT"> - <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> - </Console> - <RollingFile name="RollingFile" append="true" fileName="axis2.log" filePattern="axis2-%i.log.gz"> - <PatternLayout> - <Pattern>%d %p %c{1.} [%t] %m%n</Pattern> - </PatternLayout> - <Policies> - <OnStartupTriggeringPolicy/> - <SizeBasedTriggeringPolicy size="20 MB"/> - </Policies> - <DefaultRolloverStrategy max="10"> - <Delete basePath="${baseDir}" > - <IfFileName glob="*.log.*"> - <IfAny> - <IfLastModified age="5d" />- - </IfAny> - </IfFileName> - </Delete> - </DefaultRolloverStrategy> - </RollingFile> - </Appenders> - <Loggers> - <Logger name="org.apache" level="warn" additivity="false" > - <AppenderRef ref="RollingFile"/> - <AppenderRef ref="Console"/> - </Logger> - <Logger name="org.apache.axis2" level="debug" additivity="false" > - <AppenderRef ref="RollingFile"/> - <AppenderRef ref="Console"/> - </Logger> - <Logger name="org.springframework" level="warn" additivity="false" > - <AppenderRef ref="RollingFile"/> - <AppenderRef ref="Console"/> - </Logger> - <Root level="debug"> - <AppenderRef ref="Console"/> - <AppenderRef ref="RollingFile"/> - </Root> - </Loggers> -</Configuration> diff --git a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/web.xml b/modules/samples/java_first_jaxws/src/webapp/WEB-INF/web.xml deleted file mode 100644 index 8eb92f3f66..0000000000 --- a/modules/samples/java_first_jaxws/src/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> -<web-app - xmlns="https://jakarta.ee/xml/ns/jakartaee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd" - version="6.0"> - - <servlet> - <servlet-name>AxisServlet</servlet-name> - <display-name>Apache-Axis Servlet</display-name> - <servlet-class> - org.apache.axis2.transport.http.AxisServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> - - <servlet-mapping> - <servlet-name>AxisServlet</servlet-name> - <url-pattern>/services/*</url-pattern> - </servlet-mapping> -</web-app> diff --git a/modules/samples/pom.xml b/modules/samples/pom.xml index f6ff969496..98a2f44e00 100644 --- a/modules/samples/pom.xml +++ b/modules/samples/pom.xml @@ -35,14 +35,11 @@ <name>Samples parent POM</name> <modules> - <module>java_first_jaxws</module> <module>jaxws-addressbook</module> <module>jaxws-calculator</module> <module>jaxws-interop</module> <module>jaxws-samples</module> <module>jaxws-version</module> - <module>transport/https-sample</module> - <module>transport/jms-sample</module> </modules> <scm> diff --git a/modules/samples/transport/https-sample/README.txt b/modules/samples/transport/https-sample/README.txt deleted file mode 100644 index e78abc7f44..0000000000 --- a/modules/samples/transport/https-sample/README.txt +++ /dev/null @@ -1,58 +0,0 @@ -Sample: HTTPS Sample -=============== - -Introduction -============ - -This sample demonstrate use of HTTPS transport in both server and client sides. Jetty Maven plug-in used as -the web server and keytool-maven-plugin is used to generate secure key for the sample further same generated -key is used in client side too. This sample does not try to introduce secure key management best practices, -but in real world scenarios it's recommended to follow standard key management practices. - -NOTE: httpsService still uses the old org.mortbay maven-jetty-plugin 6.1.26 (Jetty 6, javax -Servlet 2.5), which cannot run the Jakarta-based Axis2 2.x webapp, so "mvn jetty:run" below -does not currently work. Until the sample moves to a Jakarta EE 10 container (for example -jetty-ee10-maven-plugin), deploy the built war to a Jakarta Servlet 6.0 container such as -Tomcat 11 with an HTTPS connector on port 8443. - - -Pre-Requisites -============== - -Apache Maven 3.6.0+ and JDK 17 or later - - - -Running the Sample Service -========================= - -1.) In a command line move to "modules/samples/transport/https-sample/httpsService" directory and run " mvn clean jetty:run" - -2.) You should able to see following message on console. - - "XXXX-XX-XX XX:XX:XX. XXX:INFO::Started [email protected]:8443" - -3.) Try to access WSDL file through the following URL, in some browsers you have to force to accepts the server certificate. - - https://localhost:8443/services/SimpleService?wsdl - - -Running the Sample Client -========================= - -1.) In a another command window move to this directory "modules/samples/transport/https-sample/httpsClient". - -2.) Run following command. - - "mvn package exec:java -Dexec.mainClass="org.apache.axis2.examples.httpsclient.SimpleServiceClient" -Dexec.classpathScope=runtime" - - -3.) You should able to see the response as follows. - -<ns:helloServiceResponse xmlns:ns="http://httpsservice.examples.axis2.apache.org"><ns:return>Hello World </ns:return></ns:helloServiceResponse> - - - -Help -==== -Please contact java-user list ([email protected]) if you have any trouble running the sample. diff --git a/modules/samples/transport/https-sample/httpsClient/pom.xml b/modules/samples/transport/https-sample/httpsClient/pom.xml deleted file mode 100644 index 5a90187c6e..0000000000 --- a/modules/samples/transport/https-sample/httpsClient/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>https-sample</artifactId> - <version>2.0.2-SNAPSHOT</version> - </parent> - - <groupId>org.apache.axis2.examples</groupId> - <artifactId>httpsClient</artifactId> - <version>2.0.2-SNAPSHOT</version> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> -</project> diff --git a/modules/samples/transport/https-sample/httpsClient/src/main/java/org/apache/axis2/examples/httpsclient/SimpleServiceClient.java b/modules/samples/transport/https-sample/httpsClient/src/main/java/org/apache/axis2/examples/httpsclient/SimpleServiceClient.java deleted file mode 100644 index 38894799f9..0000000000 --- a/modules/samples/transport/https-sample/httpsClient/src/main/java/org/apache/axis2/examples/httpsclient/SimpleServiceClient.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.axis2.examples.httpsclient; - -import javax.xml.stream.XMLStreamException; - -import org.apache.axiom.om.OMAbstractFactory; -import org.apache.axiom.om.OMElement; -import org.apache.axiom.om.OMFactory; -import org.apache.axiom.om.OMNamespace; -import org.apache.axis2.AxisFault; -import org.apache.axis2.addressing.EndpointReference; -import org.apache.axis2.client.Options; -import org.apache.axis2.client.ServiceClient; - -public class SimpleServiceClient { - - public static void main(String[] ars) throws AxisFault, XMLStreamException { - // Client side keystore location, here we use same keystore - System.setProperty("javax.net.ssl.trustStore", "../httpsService/target/jetty-ssl.keystore"); - System.setProperty("javax.net.ssl.trustStorePassword", "axis2key"); - String epr = "https://localhost:8443/services/SimpleService/"; - - Options options = new Options(); - options.setTo(new EndpointReference(epr)); - ServiceClient sender = new ServiceClient(); - sender.setOptions(options); - OMElement ret = sender.sendReceive(creatMsg()); - ret.serialize(System.out); - - } - - public static OMElement creatMsg() { - OMFactory fac = OMAbstractFactory.getOMFactory(); - OMNamespace omNs = fac.createOMNamespace("http://httpsservice.examples.axis2.apache.org", - "ns1"); - OMElement method = fac.createOMElement("helloService", omNs); - OMElement value = fac.createOMElement("msg", omNs); - value.setText("World "); - method.addChild(value); - return method; - } - -} diff --git a/modules/samples/transport/https-sample/httpsService/pom.xml b/modules/samples/transport/https-sample/httpsService/pom.xml deleted file mode 100644 index 97e69f22a1..0000000000 --- a/modules/samples/transport/https-sample/httpsService/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>https-sample</artifactId> - <version>2.0.2-SNAPSHOT</version> - </parent> - - <groupId>org.apache.axis2.examples</groupId> - <artifactId>httpsService</artifactId> - <version>2.0.2-SNAPSHOT</version> - <packaging>war</packaging> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> - - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>keytool-maven-plugin</artifactId> - <version>2.0.2</version> - <executions> - <execution> - <phase>generate-resources</phase> - <id>clean</id> - <goals> - <goal>clean</goal> - </goals> - </execution> - <execution> - <phase>generate-resources</phase> - <id>genkey</id> - <goals> - <goal>generateKeyPair</goal> - </goals> - </execution> - </executions> - <configuration> - <keystore>${project.build.directory}/jetty-ssl.keystore</keystore> - <dname>cn=localhost</dname> - <keypass>axis2key</keypass> - <storepass>axis2key</storepass> - <alias>axis2key</alias> - <keyalg>RSA</keyalg> - </configuration> - </plugin> - <plugin> - <groupId>org.mortbay.jetty</groupId> - <artifactId>maven-jetty-plugin</artifactId> - <version>6.1.26</version> - <configuration> - <webAppConfig> - <contextPath>/</contextPath> - </webAppConfig> - <connectors> - <connector implementation="org.mortbay.jetty.security.SslSocketConnector"> - <port>8443</port> - <maxIdleTime>60000</maxIdleTime> - <keystore>${project.build.directory}/jetty-ssl.keystore</keystore> - <password>axis2key</password> - <keyPassword>axis2key</keyPassword> - </connector> - </connectors> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/modules/samples/transport/https-sample/httpsService/src/main/java/org/apache/axis2/examples/httpsservice/SimpleService.java b/modules/samples/transport/https-sample/httpsService/src/main/java/org/apache/axis2/examples/httpsservice/SimpleService.java deleted file mode 100644 index e6cce09ed8..0000000000 --- a/modules/samples/transport/https-sample/httpsService/src/main/java/org/apache/axis2/examples/httpsservice/SimpleService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.axis2.examples.httpsservice; - -public class SimpleService { - - public String helloService(String msg) { - return "Hello " + msg; - } - -} diff --git a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/axis2.xml b/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/axis2.xml deleted file mode 100644 index 0acddf4a23..0000000000 --- a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/axis2.xml +++ /dev/null @@ -1,337 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<axisconfig name="AxisJava2.0"> - <!-- ================================================= --> - <!-- Parameters --> - <!-- ================================================= --> - <parameter name="hotdeployment">true</parameter> - <parameter name="hotupdate">false</parameter> - <parameter name="enableMTOM">false</parameter> - <parameter name="enableSwA">false</parameter> - - <!--Uncomment if you want to enable file caching for attachments --> - <!--parameter name="cacheAttachments">true</parameter> - <parameter name="attachmentDIR"></parameter> - <parameter name="sizeThreshold">4000</parameter--> - - <parameter name="EnableChildFirstClassLoading">false</parameter> - - <!-- - The exposeServiceMetadata parameter decides whether the metadata (WSDL, schema, policy) of - the services deployed on Axis2 should be visible when ?wsdl, ?wsdl2, ?xsd, ?policy requests - are received. - This parameter can be defined in the axi2.xml file, in which case this will be applicable - globally, or in the services.xml files, in which case, it will be applicable to the - Service groups and/or services, depending on the level at which the parameter is declared. - This value of this parameter defaults to true. - --> - <parameter name="exposeServiceMetadata">true</parameter> - - - <!--Uncomment if you want to plugin your own attachments lifecycle implementation --> - <!--<attachmentsLifecycleManager class="org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl"/>--> - - - <!--Uncomment if you want to enable the reduction of the in-memory cache of WSDL definitions --> - <!--In some server environments, the available memory heap is limited and can fill up under load --> - <!--Since in-memory copies of WSDL definitions can be large, some steps can be taken--> - <!--to reduce the memory needed for the cached WSDL definitions. --> - <!--parameter name="reduceWSDLMemoryCache">true</parameter--> - - <!--This will give out the timout of the configuration contexts, in milliseconds--> - <parameter name="ConfigContextTimeoutInterval">30000</parameter> - - <!--During a fault, stack trace can be sent with the fault message. The following flag will control --> - <!--that behavior.--> - <parameter name="sendStacktraceDetailsWithFaults">false</parameter> - - <!--If there aren't any information available to find out the fault reason, we set the message of the exception--> - <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be --> - <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag--> - <!--is set, then Axis2 tries to get the first exception and set its message as the faultreason/Reason.--> - <parameter name="DrillDownToRootCauseForFaultReason">false</parameter> - - <parameter name="userName"></parameter> - <parameter name="password"></parameter> - - <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.--> - <!--ServicesDirectory only works on the following cases--> - <!---File based configurator and in that case the value should be a file URL (http:// not allowed)--> - <!---When creating URL Based configurator with URL file:// --> - <!--- War based configurator with expanded case , --> - - <!--All the other scenarios it will be ignored.--> - <!--<parameter name="ServicesDirectory">service</parameter>--> - <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path--> - <!--<parameter name="ModulesDirectory">modules</parameter>--> - - - <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context--> - <!--root which can configured using the following contextRoot parameter--> - <!--<parameter name="contextRoot">axis2</parameter>--> - - <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints--> - <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this --> - <!--context path to proper Axis2 servlets--> - <!--<parameter name="servicePath">services</parameter>--> - <!--<parameter name="restPath">rest</parameter>--> - - <!-- Following parameter will completely disable REST handling in Axis2--> - <parameter name="disableREST" locked="false">false</parameter> - - <!-- Following parameter will suppress generation of SOAP 1.2 bindings in auto-generated WSDL files --> - <parameter name="disableSOAP12" locked="true">false</parameter> - - <!-- ================================================= --> - <!-- Deployers --> - <!-- ================================================= --> - - <!--Service deployer , this will alow users to deploy AAR or exploded AAR as axis2 services--> - <deployer extension=".aar" directory="services" class="org.apache.axis2.deployment.ServiceDeployer"> - <serviceBuilderExtension name ="jwsbuilderExt" class="org.apache.axis2.jaxws.framework.JAXWSServiceBuilderExtension"/> - <serviceBuilderExtension name ="wsdlbuilderExt" class="org.apache.axis2.deployment.WSDLServiceBuilderExtension"/> - </deployer> - - <!--CORBA deployer , this will alow users to invoke remote CORBA services through Axis2--> - <!--<deployer extension=".xml" directory="corba" class="org.apache.axis2.corba.deployer.CorbaDeployer"/>--> - - <!--<deployer extension=".jsa" directory="rmiservices" class="org.apache.axis2.rmi.deploy.RMIServiceDeployer"/>--> - - - <!-- Following parameter will set the host name for the epr--> - <!--<parameter name="hostname" locked="true">myhost.com</parameter>--> - - <!-- If you have a front end host which exposes this webservice using a different public URL --> - <!-- use this parameter to override autodetected url --> - <!--<parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>--> - - <!--By default, JAXWS services are created by reading annotations. WSDL and schema are generated--> - <!--using a separate WSDL generator only when ?wsdl is called. Therefore, even if you engage--> - <!--policies etc.. to AxisService, it doesn't appear in the WSDL. By setting the following property--> - <!--to true, you can create the AxisService using the generated WSDL and remove the need for a--> - <!--WSDL generator. When ?wsdl is called, WSDL is generated in the normal way.--> - <parameter name="useGeneratedWSDLinJAXWS">false</parameter> - - <!-- The way of adding listener to the system--> - <!-- <listener class="org.apache.axis2.ObserverIMPL">--> - <!-- <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>--> - <!-- </listener>--> - - <threadContextMigrators> - <threadContextMigrator listId="JAXWS-ThreadContextMigrator-List" - class="org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator"/> - </threadContextMigrators> - - <!-- ================================================= --> - <!-- Message Receivers --> - <!-- ================================================= --> - <!--This is the default MessageReceiver for the system , if you want to have MessageReceivers for --> - <!--all the other MEP implement it and add the correct entry to here , so that you can refer from--> - <!--any operation --> - <!--Note : You can override this for a particular service by adding the same element with your requirement--> - <messageReceivers> - <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - </messageReceivers> - - <!-- ================================================= --> - <!-- Message Formatter --> - <!-- ================================================= --> - <!--Following content type to message formatter mapping can be used to implement support for different message --> - <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageFormatters> - <messageFormatter contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.kernel.http.XFormURLEncodedFormatter"/> - <messageFormatter contentType="multipart/form-data" - class="org.apache.axis2.kernel.http.MultipartFormDataFormatter"/> - <messageFormatter contentType="application/xml" - class="org.apache.axis2.kernel.http.ApplicationXMLFormatter"/> - <messageFormatter contentType="text/xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - <messageFormatter contentType="application/soap+xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - </messageFormatters> - - <!-- ================================================= --> - <!-- Message Builders --> - <!-- ================================================= --> - <!--Following content type to builder mapping can be used to implement support for different message --> - <!--formats in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageBuilders> - <messageBuilder contentType="application/xml" - class="org.apache.axis2.builder.ApplicationXMLBuilder"/> - <messageBuilder contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.builder.XFormURLEncodedBuilder"/> - <messageBuilder contentType="multipart/form-data" - class="org.apache.axis2.builder.MultipartFormDataBuilder"/> - </messageBuilders> - - <!-- ================================================= --> - <!-- Transport Ins --> - <!-- ================================================= --> - - <transportReceiver name="http" - class="org.apache.axis2.transport.http.AxisServletListener"> - <parameter name="port">8080</parameter> - </transportReceiver> - - <transportReceiver name="https" - class="org.apache.axis2.transport.http.AxisServletListener"> - <parameter name="port">8443</parameter> - </transportReceiver> - - <!-- ================================================= --> - <!-- Transport Outs --> - <!-- ================================================= --> - - <transportSender name="http" - class="org.apache.axis2.transport.http.impl.httpclient5.HTTPClient5TransportSender"> - <parameter name="PROTOCOL">HTTP/1.1</parameter> - <parameter name="Transfer-Encoding">chunked</parameter> - - <!-- If following is set to 'true', optional action part of the Content-Type will not be added to the SOAP 1.2 messages --> - <!-- <parameter name="OmitSOAP12Action">true</parameter> --> - </transportSender> - - <transportSender name="https" - class="org.apache.axis2.transport.http.impl.httpclient5.HTTPClient5TransportSender"> - <parameter name="PROTOCOL">HTTP/1.1</parameter> - <parameter name="Transfer-Encoding">chunked</parameter> - </transportSender> - - <!-- Please enable this if you need the java transport --> - <!-- <transportSender name="java" - class="org.apache.axis2.transport.java.JavaTransportSender"/> --> - - <!-- ================================================= --> - <!-- Global Modules --> - <!-- ================================================= --> - <!-- Comment this to disable Addressing --> - - - - - <!--Configuring module , providing parameters for modules whether they refer or not--> - <!--<moduleConfig name="addressing">--> - <!--<parameter name="addressingPara">N/A</parameter>--> - <!--</moduleConfig>--> - - - <!-- ================================================= --> - <!-- Phases --> - <!-- ================================================= --> - <phaseOrder type="InFlow"> - <!-- System predefined phases --> - <phase name="Transport"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"> - <order phase="Transport"/> - </handler> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"> - <order phase="Transport"/> - </handler> - </phase> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - - </phase> - <phase name="RMPhase"/> - <!-- System predefined phases --> - <!-- After Postdispatch phase module author or service author can add any phase he want --> - <phase name="OperationInPhase"> - </phase> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutPhase"/> - <!--system predefined phase--> - <!--these phase will run irrespective of the service--> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> - <phaseOrder type="InFaultFlow"> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - </phase> - <phase name="RMPhase"/> - <!-- user can add his own phases to this area --> - <phase name="OperationInFaultPhase"/> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFaultFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutFaultPhase"/> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> -</axisconfig> - diff --git a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/services/SimpleService/META-INF/services.xml b/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/services/SimpleService/META-INF/services.xml deleted file mode 100644 index 075d24ecba..0000000000 --- a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/services/SimpleService/META-INF/services.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<serviceGroup> - <service name="SimpleService"> - <parameter name="ServiceClass">org.apache.axis2.examples.httpsservice.SimpleService - </parameter> - <operation name="helloService"> - <messageReceiver - class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> - </operation> - <transports> - <transport>https</transport> - </transports> - </service> -</serviceGroup> \ No newline at end of file diff --git a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/web.xml b/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 2cd6218036..0000000000 --- a/modules/samples/transport/https-sample/httpsService/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<web-app - xmlns="https://jakarta.ee/xml/ns/jakartaee" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd" - version="6.0"> - - <servlet> - <servlet-name>AxisServlet</servlet-name> - <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> - <servlet-mapping> - <servlet-name>AxisServlet</servlet-name> - <url-pattern>/services/*</url-pattern> - </servlet-mapping> -</web-app> diff --git a/modules/samples/transport/https-sample/pom.xml b/modules/samples/transport/https-sample/pom.xml deleted file mode 100644 index 906c2aa2a3..0000000000 --- a/modules/samples/transport/https-sample/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>samples</artifactId> - <version>2.0.2-SNAPSHOT</version> - <relativePath>../../pom.xml</relativePath> - </parent> - - <artifactId>https-sample</artifactId> - <packaging>pom</packaging> - - <name>Apache Axis2 Transport-HTTPS sample</name> - - <modules> - <module>httpsService</module> - <module>httpsClient</module> - </modules> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> - - <dependencies> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-adb</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-transport-http</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-transport-local</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> -</project> diff --git a/modules/samples/transport/jms-sample/README.txt b/modules/samples/transport/jms-sample/README.txt deleted file mode 100644 index a4f8fe8209..0000000000 --- a/modules/samples/transport/jms-sample/README.txt +++ /dev/null @@ -1,39 +0,0 @@ -Sample: JMS Sample -=============== - -Introduction -============ - -This sample demonstrate use of JMS transport in both server and client sides. Axis2 Simple Server Maven plug-in used as -the web server and maven-activemq-plugin used as the JMS broker. - - -Pre-Requisites -============== - -Apache Maven 3.6.0+ and JDK 17 or later - - - -Running the Sample Service -========================= - -1.) In a command line move to "modules/samples/transport/jms-sample/jmsService" directory and run " mvn clean package activemq:run axis2:run" - - - - -Running the Sample Client -========================= - -This sample has no client module. The service listens on the JMS queue "SimpleService" -of the ActiveMQ broker at tcp://localhost:61616. Any JMS client can send it a SOAP -message, or an Axis2 ServiceClient configured with the JMS transport sender (see -jmsService/src/main/resources/axis2.xml) can use an endpoint such as: - - jms:/SimpleService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616 - - -Help -==== -Please contact java-user list ([email protected]) if you have any trouble running the sample. diff --git a/modules/samples/transport/jms-sample/jmsService/pom.xml b/modules/samples/transport/jms-sample/jmsService/pom.xml deleted file mode 100644 index d74311388b..0000000000 --- a/modules/samples/transport/jms-sample/jmsService/pom.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>jms-sample</artifactId> - <version>2.0.2-SNAPSHOT</version> - </parent> - - <groupId>org.apache.axis2.examples</groupId> - <artifactId>jmsService</artifactId> - <version>2.0.2-SNAPSHOT</version> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> - - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq.tooling</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <version>${activemq.version}</version> - <configuration> - <fork>true</fork> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.axis2</groupId> - <artifactId>simple-server-maven-plugin</artifactId> - <version>${project.version}</version> - <dependencies> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-transport-jms</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-broker</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>commons-io</groupId> - <artifactId>commons-io</artifactId> - <version>2.22.0</version> - </dependency> - </dependencies> - </plugin> - - <plugin> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-aar-maven-plugin</artifactId> - <version>${project.version}</version> - <configuration> - <servicesXmlFile>src/main/resources/services/SimpleService/META-INF/services.xml</servicesXmlFile> - </configuration> - <executions> - <execution> - <id>generates aar</id> - <phase>package</phase> - <goals> - <goal>aar</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> -</project> diff --git a/modules/samples/transport/jms-sample/jmsService/src/main/java/org/apache/axis2/examples/jmsservice/SimpleService.java b/modules/samples/transport/jms-sample/jmsService/src/main/java/org/apache/axis2/examples/jmsservice/SimpleService.java deleted file mode 100644 index 678c0823e8..0000000000 --- a/modules/samples/transport/jms-sample/jmsService/src/main/java/org/apache/axis2/examples/jmsservice/SimpleService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.axis2.examples.jmsservice; - -public class SimpleService { - - public String helloService(String msg) { - return "Hello " + msg; - } - -} diff --git a/modules/samples/transport/jms-sample/jmsService/src/main/resources/axis2.xml b/modules/samples/transport/jms-sample/jmsService/src/main/resources/axis2.xml deleted file mode 100644 index 2044c6c238..0000000000 --- a/modules/samples/transport/jms-sample/jmsService/src/main/resources/axis2.xml +++ /dev/null @@ -1,347 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<axisconfig name="AxisJava2.0"> - <!-- ================================================= --> - <!-- Parameters --> - <!-- ================================================= --> - <parameter name="hotdeployment">true</parameter> - <parameter name="hotupdate">false</parameter> - <parameter name="enableMTOM">false</parameter> - <parameter name="enableSwA">false</parameter> - - <!--Uncomment if you want to enable file caching for attachments --> - <!--parameter name="cacheAttachments">true</parameter> - <parameter name="attachmentDIR"></parameter> - <parameter name="sizeThreshold">4000</parameter--> - - <parameter name="EnableChildFirstClassLoading">false</parameter> - - <!-- - The exposeServiceMetadata parameter decides whether the metadata (WSDL, schema, policy) of - the services deployed on Axis2 should be visible when ?wsdl, ?wsdl2, ?xsd, ?policy requests - are received. - This parameter can be defined in the axi2.xml file, in which case this will be applicable - globally, or in the services.xml files, in which case, it will be applicable to the - Service groups and/or services, depending on the level at which the parameter is declared. - This value of this parameter defaults to true. - --> - <parameter name="exposeServiceMetadata">true</parameter> - - - <!--Uncomment if you want to plugin your own attachments lifecycle implementation --> - <!--<attachmentsLifecycleManager class="org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl"/>--> - - - <!--Uncomment if you want to enable the reduction of the in-memory cache of WSDL definitions --> - <!--In some server environments, the available memory heap is limited and can fill up under load --> - <!--Since in-memory copies of WSDL definitions can be large, some steps can be taken--> - <!--to reduce the memory needed for the cached WSDL definitions. --> - <!--parameter name="reduceWSDLMemoryCache">true</parameter--> - - <!--This will give out the timout of the configuration contexts, in milliseconds--> - <parameter name="ConfigContextTimeoutInterval">30000</parameter> - - <!--During a fault, stack trace can be sent with the fault message. The following flag will control --> - <!--that behavior.--> - <parameter name="sendStacktraceDetailsWithFaults">false</parameter> - - <!--If there aren't any information available to find out the fault reason, we set the message of the exception--> - <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be --> - <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag--> - <!--is set, then Axis2 tries to get the first exception and set its message as the faultreason/Reason.--> - <parameter name="DrillDownToRootCauseForFaultReason">false</parameter> - - <parameter name="userName"></parameter> - <parameter name="password"></parameter> - - <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.--> - <!--ServicesDirectory only works on the following cases--> - <!---File based configurator and in that case the value should be a file URL (http:// not allowed)--> - <!---When creating URL Based configurator with URL file:// --> - <!--- War based configurator with expanded case , --> - - <!--All the other scenarios it will be ignored.--> - <!--<parameter name="ServicesDirectory">service</parameter>--> - <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path--> - <!--<parameter name="ModulesDirectory">modules</parameter>--> - - - <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context--> - <!--root which can configured using the following contextRoot parameter--> - <!--<parameter name="contextRoot">axis2</parameter>--> - - <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguiush those endpoints--> - <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this --> - <!--context path to proper Axis2 servlets--> - <!--<parameter name="servicePath">services</parameter>--> - <!--<parameter name="restPath">rest</parameter>--> - - <!-- Following parameter will completely disable REST handling in Axis2--> - <parameter name="disableREST" locked="false">false</parameter> - - <!-- Following parameter will suppress generation of SOAP 1.2 bindings in auto-generated WSDL files --> - <parameter name="disableSOAP12" locked="true">false</parameter> - - <!-- ================================================= --> - <!-- Deployers --> - <!-- ================================================= --> - - <!--Service deployer , this will alow users to deploy AAR or exploded AAR as axis2 services--> - <deployer extension=".aar" directory="services" class="org.apache.axis2.deployment.ServiceDeployer"> - <serviceBuilderExtension name ="jwsbuilderExt" class="org.apache.axis2.jaxws.framework.JAXWSServiceBuilderExtension"/> - <serviceBuilderExtension name ="wsdlbuilderExt" class="org.apache.axis2.deployment.WSDLServiceBuilderExtension"/> - </deployer> - - - <!--CORBA deployer , this will alow users to invoke remote CORBA services through Axis2--> - <!--<deployer extension=".xml" directory="corba" class="org.apache.axis2.corba.deployer.CorbaDeployer"/>--> - - <!--<deployer extension=".jsa" directory="rmiservices" class="org.apache.axis2.rmi.deploy.RMIServiceDeployer"/>--> - - - <!-- Following parameter will set the host name for the epr--> - <!--<parameter name="hostname" locked="true">myhost.com</parameter>--> - - <!-- If you have a front end host which exposes this webservice using a different public URL --> - <!-- use this parameter to override autodetected url --> - <!--<parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>--> - - <!--By default, JAXWS services are created by reading annotations. WSDL and schema are generated--> - <!--using a separate WSDL generator only when ?wsdl is called. Therefore, even if you engage--> - <!--policies etc.. to AxisService, it doesn't appear in the WSDL. By setting the following property--> - <!--to true, you can create the AxisService using the generated WSDL and remove the need for a--> - <!--WSDL generator. When ?wsdl is called, WSDL is generated in the normal way.--> - <parameter name="useGeneratedWSDLinJAXWS">false</parameter> - - <!-- The way of adding listener to the system--> - <!-- <listener class="org.apache.axis2.ObserverIMPL">--> - <!-- <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>--> - <!-- </listener>--> - - <threadContextMigrators> - <threadContextMigrator listId="JAXWS-ThreadContextMigrator-List" - class="org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator"/> - </threadContextMigrators> - - <!-- ================================================= --> - <!-- Message Receivers --> - <!-- ================================================= --> - <!--This is the default MessageReceiver for the system , if you want to have MessageReceivers for --> - <!--all the other MEP implement it and add the correct entry to here , so that you can refer from--> - <!--any operation --> - <!--Note : You can override this for a particular service by adding the same element with your requirement--> - <messageReceivers> - <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" - class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/> - <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" - class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/> - </messageReceivers> - - <!-- ================================================= --> - <!-- Message Formatter --> - <!-- ================================================= --> - <!--Following content type to message formatter mapping can be used to implement support for different message --> - <!--format serialization in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageFormatters> - <messageFormatter contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.kernel.http.XFormURLEncodedFormatter"/> - <messageFormatter contentType="multipart/form-data" - class="org.apache.axis2.kernel.http.MultipartFormDataFormatter"/> - <messageFormatter contentType="application/xml" - class="org.apache.axis2.kernel.http.ApplicationXMLFormatter"/> - <messageFormatter contentType="text/xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - <messageFormatter contentType="application/soap+xml" - class="org.apache.axis2.kernel.http.SOAPMessageFormatter"/> - </messageFormatters> - - <!-- ================================================= --> - <!-- Message Builders --> - <!-- ================================================= --> - <!--Following content type to builder mapping can be used to implement support for different message --> - <!--formats in Axis2. These message formats are expected to be resolved based on the content type. --> - <messageBuilders> - <messageBuilder contentType="application/xml" - class="org.apache.axis2.builder.ApplicationXMLBuilder"/> - <messageBuilder contentType="application/x-www-form-urlencoded" - class="org.apache.axis2.builder.XFormURLEncodedBuilder"/> - <messageBuilder contentType="multipart/form-data" - class="org.apache.axis2.builder.MultipartFormDataBuilder"/> - </messageBuilders> - - <!-- ================================================= --> - <!-- Transport Ins --> - <!-- ================================================= --> - - <transportReceiver name="http" - class="org.apache.axis2.transport.http.SimpleHTTPServer"> - <parameter name="port">8080</parameter> - </transportReceiver> - - <transportReceiver name="jms" - class="org.apache.axis2.transport.jms.JMSListener"> - <parameter name="default" locked="false"> - <parameter name="java.naming.factory.initial" - locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter> - <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter> - <parameter name="transport.jms.ConnectionFactoryJNDIName" - locked="false">QueueConnectionFactory</parameter> - </parameter> - </transportReceiver> - - <!-- ================================================= --> - <!-- Transport Outs --> - <!-- ================================================= --> - - <transportSender name="http" - class="org.apache.axis2.transport.http.impl.httpclient5.HTTPClient5TransportSender"> - <parameter name="PROTOCOL">HTTP/1.1</parameter> - <parameter name="Transfer-Encoding">chunked</parameter> - </transportSender> - - - <transportSender name="jms" - class="org.apache.axis2.transport.jms.JMSSender"> - <parameter name="default" locked="false"> - <parameter name="java.naming.factory.initial" - locked="false">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter> - <parameter name="java.naming.provider.url" locked="false">tcp://localhost:61616</parameter> - <parameter name="transport.jms.ConnectionFactoryJNDIName" - locked="false">QueueConnectionFactory</parameter> - </parameter> - </transportSender> - - <!-- Please enable this if you need the java transport --> - <!-- <transportSender name="java" - class="org.apache.axis2.transport.java.JavaTransportSender"/> --> - - <!-- ================================================= --> - <!-- Global Modules --> - <!-- ================================================= --> - <!-- Comment this to disable Addressing --> - - - - - <!--Configuring module , providing parameters for modules whether they refer or not--> - <!--<moduleConfig name="addressing">--> - <!--<parameter name="addressingPara">N/A</parameter>--> - <!--</moduleConfig>--> - - - <!-- ================================================= --> - <!-- Phases --> - <!-- ================================================= --> - <phaseOrder type="InFlow"> - <!-- System predefined phases --> - <phase name="Transport"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"> - <order phase="Transport"/> - </handler> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"> - <order phase="Transport"/> - </handler> - </phase> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - - </phase> - <phase name="RMPhase"/> - <!-- System predefined phases --> - <!-- After Postdispatch phase module author or service author can add any phase he want --> - <phase name="OperationInPhase"> - </phase> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutPhase"/> - <!--system predefined phase--> - <!--these phase will run irrespective of the service--> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> - <phaseOrder type="InFaultFlow"> - <phase name="Addressing"> - <handler name="AddressingBasedDispatcher" - class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"> - <order phase="Addressing"/> - </handler> - </phase> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"> - <handler name="RequestURIBasedDispatcher" - class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/> - <handler name="SOAPActionBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/> - <handler name="RequestURIOperationDispatcher" - class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/> - <handler name="SOAPMessageBodyBasedDispatcher" - class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/> - <handler name="HTTPLocationBasedDispatcher" - class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/> - </phase> - <phase name="RMPhase"/> - <!-- user can add his own phases to this area --> - <phase name="OperationInFaultPhase"/> - <phase name="soapmonitorPhase"/> - </phaseOrder> - <phaseOrder type="OutFaultFlow"> - <!-- user can add his own phases to this area --> - <phase name="soapmonitorPhase"/> - <phase name="OperationOutFaultPhase"/> - <phase name="RMPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> -</axisconfig> - diff --git a/modules/samples/transport/jms-sample/jmsService/src/main/resources/services/SimpleService/META-INF/services.xml b/modules/samples/transport/jms-sample/jmsService/src/main/resources/services/SimpleService/META-INF/services.xml deleted file mode 100644 index fa374bb3e7..0000000000 --- a/modules/samples/transport/jms-sample/jmsService/src/main/resources/services/SimpleService/META-INF/services.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<serviceGroup> - <service name="SimpleService"> - <parameter name="ServiceClass">org.apache.axis2.examples.jmsservice.SimpleService - </parameter> - <operation name="helloService"> - <messageReceiver - class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> - </operation> - </service> -</serviceGroup> \ No newline at end of file diff --git a/modules/samples/transport/jms-sample/pom.xml b/modules/samples/transport/jms-sample/pom.xml deleted file mode 100644 index f1b6e83a99..0000000000 --- a/modules/samples/transport/jms-sample/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more - contributor license agreements. See the NOTICE file ~ distributed with this - work for additional information ~ regarding copyright ownership. The ASF - licenses this file ~ to you under the Apache License, Version 2.0 (the ~ - "License"); you may not use this file except in compliance ~ with the License. - You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ ~ Unless required by applicable law or agreed to in writing, ~ software - distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the - License for the ~ specific language governing permissions and limitations - ~ under the License. --> - -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.axis2.examples</groupId> - <artifactId>samples</artifactId> - <version>2.0.2-SNAPSHOT</version> - <relativePath>../../pom.xml</relativePath> - </parent> - - <artifactId>jms-sample</artifactId> - <packaging>pom</packaging> - - <name>Apache Axis2 Transport-JMS sample</name> - - <modules> - <module>jmsService</module> - </modules> - - <scm> - <connection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</connection> - <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git</developerConnection> - <url>https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary</url> - <tag>HEAD</tag> - </scm> - - <dependencies> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-adb</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-transport-http</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.axis2</groupId> - <artifactId>axis2-transport-local</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> -</project> diff --git a/src/site/markdown/release-notes/2.0.2.md b/src/site/markdown/release-notes/2.0.2.md index 209c45a427..6694797638 100644 --- a/src/site/markdown/release-notes/2.0.2.md +++ b/src/site/markdown/release-notes/2.0.2.md @@ -117,11 +117,14 @@ service that had metadata exposure turned off, they no longer will. still be constructed from a WSDL URL; `modules/samples/jaxws-addressbook` covers the JAX-WS Dispatch client. -- **Five more unrunnable samples are removed.** `yahoojsonsearch` and `yahoorestsearch` +- **More unrunnable samples are removed.** `yahoojsonsearch` and `yahoorestsearch` called Yahoo search APIs that were shut down in 2011, and `googlespellcheck` called a Google SOAP API retired in 2009; the two Yahoo samples were still in the binary distribution. `jaxws-dynamic` was shipped with no build file and an empty README, and - `book` depended on 1.8.0 snapshots and was never built. + `book` depended on 1.8.0 snapshots and was never built. Three Maven samples whose + run instructions could not work are removed as well: `transport/https-sample` ran + on the Jetty 6 plugin, which cannot host a Jakarta webapp; `java_first_jaxws` was + set up for a javax-based Cargo container; and `transport/jms-sample` had no client. - **The ant-built samples in the binary distribution build again.** Since 2.0.1 the binary distribution has placed samples under `modules/samples/`, but most sample diff --git a/src/site/xdoc/docs/userguide-samples.xml b/src/site/xdoc/docs/userguide-samples.xml index a44e4ea2e7..05a7a46a3c 100644 --- a/src/site/xdoc/docs/userguide-samples.xml +++ b/src/site/xdoc/docs/userguide-samples.xml @@ -201,13 +201,12 @@ service.</p> described in the <a href="json_support_gson.html">JSON support documentation</a>.</p> <p><strong>jaxws-addressbook, jaxws-calculator, jaxws-interop, -jaxws-samples, jaxws-version, java_first_jaxws</strong>: JAX-WS samples, +jaxws-samples, jaxws-version</strong>: JAX-WS samples, covering JAXB-based services, code-first and WSDL-first development and deployment in a servlet container.</p> <p><strong>swagger-server</strong>: A REST service documented with OpenAPI; see the <a href="openapi-rest-userguide.html">OpenAPI REST Services Guide</a>.</p> -<p><strong>transport</strong>: HTTPS and JMS transport samples.</p> <p><strong>See Next Section</strong> - <a href= "userguide-forfurtherstudy.html">For Further Study</a></p> </body>
