[axis-axis2-java-core] branch master updated: AXIS2-6006, json-springboot-userguide completed
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 The following commit(s) were added to refs/heads/master by this push: new 2d93b3d AXIS2-6006, json-springboot-userguide completed 2d93b3d is described below commit 2d93b3da68efd0439e5aac16970442d0a682e165 Author: Robert Lazarski AuthorDate: Wed Jul 28 04:19:33 2021 -1000 AXIS2-6006, json-springboot-userguide completed --- src/site/xdoc/docs/json-springboot-userguide.html | 225 -- 1 file changed, 225 deletions(-) diff --git a/src/site/xdoc/docs/json-springboot-userguide.html b/src/site/xdoc/docs/json-springboot-userguide.html deleted file mode 100644 index 527aa2b..000 --- a/src/site/xdoc/docs/json-springboot-userguide.html +++ /dev/null @@ -1,225 +0,0 @@ - - -http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> - - - - Apache Axis2 JSON and REST with Spring Boot User's Guide - - - - - -Apache Axis2 JSON and REST with Spring Boot User's Guide - -This guide will help you get started with Axis2 and JSON via REST, using -Spring Security with Spring Boot! It gives a detailed description on how to write -JSON based REST Web services and also Web service clients via JSON and Curl, how to -write a custom login, and how to use them in a token based Web service that also helps -prevent cross site scripting (XSS). - - - -Introduction - -This user guide is written based on the Axis2 Standard Binary -Distribution. The Standard Binary Distribution can be directly downloaded or built using -the Source Distribution. If -you choose the latter, then the Installation -Guide will instruct you on how to build Axis2 Standard Binary -Distribution using the source. - -The source code for this guide provides a pom.xml for an entire demo application built by maven. - - -Please note that Axis2 is an open-source effort. If you feel the code -could use some new features or fixes, please get involved and lend us a hand! -The Axis developer community welcomes your participation. - -Let us know what you think! Send your feedback to "mailto:java-u...@axis.apache.org?subject=[Axis2]";>java-u...@axis.apache.org". -(Subscription details are available on the Axis2 site.) Kindly -prefix the subject of the mail with [Axis2]. - -Getting Started - -This user guide explains how to write and deploy a -new JSON and REST based Web Service using Axis2, and how to write a Web Service client -using JSON with Curl. - - -All the sample code mentioned in this guide is located in -the "samples/userguide/src/springbootdemo" directory of Axis2 standard binary -distribution. - -This quide supplies a pom.xml for building an exploded WAR with Spring Boot - -however this WAR does not have an embedded web server such as Tomcat. - - -The testing was carried out on Wildfly, by installing the WAR in its app server. - -Please deploy the result of the maven build via 'mvn clean install', axis2-json-api.war, into your servlet container and ensure that it installs without any errors. - -Creating a New Web Service - - -Areas out of scope for this guide are JWT and JWE for token generation and validation, -since they require elliptic curve cryptography. A sample token that is not meant for -production is generated in this demo - with the intent that the following standards -should be used in its place. This demo merely shows a place to implement these -standards. - - -https://datatracker.ietf.org/doc/html/rfc7519 -https://datatracker.ietf.org/doc/html/rfc7516 - - -Tip: com.nimbusds is recommended as an open-source Java implementation of these -standards, for both token generation and validation. - - -DB operations are also out of scope. There is a minimal DAO layer for authentication. -Very limited credential validation is done. - - -The NoOpPasswordEncoder Spring class included in this guide is meant for demos -and testing only. Do not use this code as is in production. - - -This guide provides two JSON based web services, LoginService and TestwsService. - - -The login, if successful, will return a simple token not meant for anything beyond demos. -The intent of this guide is to show a place that the JWT and JWE standards can be -implemented. - - -Axis2 JSON support is via POJO Objects. LoginRequest and LoginResponse are coded in the LoginService as the names would indicate. - - -Also provided is a test service, TestwsService. It includes two POJO Objects as would -be expected, TestwsRequest and TestwsResponse. This service attempts to return -a String with some Javascript, that is HTML encoded by Axis2 and thereby -eliminating the possibility of a Javascript engine executing the response i.e. a -reflected XSS attack. - - -Concerning Spring Security and Spring Boot, the Axis2Application class that -extends SpringBootServletInitializer as typically done utilizes -List as a binary choice; A login url wi
[axis-axis2-java-core] branch master updated: AXIS2-6007 update copyrights from 1999-2006
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 The following commit(s) were added to refs/heads/master by this push: new af8de5b AXIS2-6007 update copyrights from 1999-2006 af8de5b is described below commit af8de5baf7a3403de1637a519493747350fc92c7 Author: Robert Lazarski AuthorDate: Wed Jul 28 04:53:17 2021 -1000 AXIS2-6007 update copyrights from 1999-2006 --- modules/webapp/src/main/webapp/WEB-INF/include/footer.inc| 2 +- modules/webapp/src/main/webapp/axis2-web/Error/GenError.html | 2 +- modules/webapp/src/main/webapp/axis2-web/Error/error404.jsp | 2 +- modules/webapp/src/main/webapp/axis2-web/Error/error500.jsp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/webapp/src/main/webapp/WEB-INF/include/footer.inc b/modules/webapp/src/main/webapp/WEB-INF/include/footer.inc index da9e51d..de42cb3 100644 --- a/modules/webapp/src/main/webapp/WEB-INF/include/footer.inc +++ b/modules/webapp/src/main/webapp/WEB-INF/include/footer.inc @@ -31,7 +31,7 @@ - Copyright © 1999-2006, The Apache Software FoundationLicensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0. + Copyright © 1999-2021, The Apache Software FoundationLicensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0. diff --git a/modules/webapp/src/main/webapp/axis2-web/Error/GenError.html b/modules/webapp/src/main/webapp/axis2-web/Error/GenError.html index 748fbb2..de5355d 100644 --- a/modules/webapp/src/main/webapp/axis2-web/Error/GenError.html +++ b/modules/webapp/src/main/webapp/axis2-web/Error/GenError.html @@ -41,4 +41,4 @@ - \ No newline at end of file + diff --git a/modules/webapp/src/main/webapp/axis2-web/Error/error404.jsp b/modules/webapp/src/main/webapp/axis2-web/Error/error404.jsp index b57fc76..c64576b 100644 --- a/modules/webapp/src/main/webapp/axis2-web/Error/error404.jsp +++ b/modules/webapp/src/main/webapp/axis2-web/Error/error404.jsp @@ -51,7 +51,7 @@ -Copyright © 1999-2006, The Apache Software FoundationLicensed under the Copyright © 1999-2021, The Apache Software FoundationLicensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0. diff --git a/modules/webapp/src/main/webapp/axis2-web/Error/error500.jsp b/modules/webapp/src/main/webapp/axis2-web/Error/error500.jsp index 696c95f..886f55d 100644 --- a/modules/webapp/src/main/webapp/axis2-web/Error/error500.jsp +++ b/modules/webapp/src/main/webapp/axis2-web/Error/error500.jsp @@ -52,7 +52,7 @@ -Copyright © 1999-2006, The Apache Software FoundationLicensed under the Copyright © 1999-2021, The Apache Software FoundationLicensed under the http://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 2.0.
[axis-axis2-java-core] 01/01: Merge pull request #194 from apache/dependabot/maven/slf4j.version-1.7.32
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 5d1ea2432c8aac36e1b6068c7bcbbff981323566 Merge: af8de5b b104c47 Author: robertlazarski <58150512+robertlazar...@users.noreply.github.com> AuthorDate: Wed Jul 28 04:56:04 2021 -1000 Merge pull request #194 from apache/dependabot/maven/slf4j.version-1.7.32 Bump slf4j.version from 1.7.31 to 1.7.32 pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[axis-axis2-java-core] branch master updated (af8de5b -> 5d1ea24)
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git. from af8de5b AXIS2-6007 update copyrights from 1999-2006 add b104c47 Bump slf4j.version from 1.7.31 to 1.7.32 new 5d1ea24 Merge pull request #194 from apache/dependabot/maven/slf4j.version-1.7.32 The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[axis-axis2-java-core] branch master updated: re-add json-springboot-userguide.xml that got dropped somehow
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 The following commit(s) were added to refs/heads/master by this push: new 6d030a7 re-add json-springboot-userguide.xml that got dropped somehow 6d030a7 is described below commit 6d030a7fbe648c5dd5c0922a62ea0e6a8067 Author: Robert Lazarski AuthorDate: Wed Jul 28 13:13:35 2021 -0400 re-add json-springboot-userguide.xml that got dropped somehow --- src/site/xdoc/docs/json-springboot-userguide.xml | 228 +++ 1 file changed, 228 insertions(+) diff --git a/src/site/xdoc/docs/json-springboot-userguide.xml b/src/site/xdoc/docs/json-springboot-userguide.xml new file mode 100644 index 000..4c43144 --- /dev/null +++ b/src/site/xdoc/docs/json-springboot-userguide.xml @@ -0,0 +1,228 @@ + + +http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> + + + + Apache Axis2 JSON and REST with Spring Boot User's Guide + + + + + +Apache Axis2 JSON and REST with Spring Boot User's Guide + +This guide will help you get started with Axis2 and JSON via REST, using +Spring Security with Spring Boot! It gives a detailed description on how to write +JSON based REST Web services and also Web service clients via JSON and Curl, how to +write a custom login, and how to use them in a token based Web service that also helps +prevent cross site scripting (XSS). + + + +Introduction + +This user guide is written based on the Axis2 Standard Binary +Distribution. The Standard Binary Distribution can be directly downloaded or built using +the Source Distribution. If +you choose the latter, then the Installation +Guide will instruct you on how to build Axis2 Standard Binary +Distribution using the source. + +The source code for this guide provides a pom.xml for an entire demo application built by maven. + + +Please note that Axis2 is an open-source effort. If you feel the code +could use some new features or fixes, please get involved and lend us a hand! +The Axis developer community welcomes your participation. + +Let us know what you think! Send your feedback to "mailto:java-u...@axis.apache.org?subject=[Axis2]";>java-u...@axis.apache.org". +(Subscription details are available on the Axis2 site.) Kindly +prefix the subject of the mail with [Axis2]. + +Getting Started + +This user guide explains how to write and deploy a +new JSON and REST based Web Service using Axis2, and how to write a Web Service client +using JSON with Curl. + + +All the sample code mentioned in this guide is located in +the "samples/userguide/src/springbootdemo" directory of Axis2 standard binary +distribution. + +This quide supplies a pom.xml for building an exploded WAR with Spring Boot - +however this WAR does not have an embedded web server such as Tomcat. + + +The testing was carried out on Wildfly, by installing the WAR in its app server. + +Please deploy the result of the maven build via 'mvn clean install', axis2-json-api.war, into your servlet container and ensure that it installs without any errors. + +Creating a New Web Service + + +Areas out of scope for this guide are JWT and JWE for token generation and validation, +since they require elliptic curve cryptography. A sample token that is not meant for +production is generated in this demo - with the intent that the following standards +should be used in its place. This demo merely shows a place to implement these +standards. + + +https://datatracker.ietf.org/doc/html/rfc7519 +https://datatracker.ietf.org/doc/html/rfc7516 + + +Tip: com.nimbusds is recommended as an open-source Java implementation of these +standards, for both token generation and validation. + + +DB operations are also out of scope. There is a minimal DAO layer for authentication. +Very limited credential validation is done. + + +The NoOpPasswordEncoder Spring class included in this guide is meant for demos +and testing only. Do not use this code as is in production. + + +This guide provides two JSON based web services, LoginService and TestwsService. + + +The login, if successful, will return a simple token not meant for anything beyond demos. +The intent of this guide is to show a place that the JWT and JWE standards can be +implemented. + + +Axis2 JSON support is via POJO Objects. LoginRequest and LoginResponse are coded in the LoginService as the names would indicate. + + +Also provided is a test service, TestwsService. It includes two POJO Objects as would +be expected, TestwsRequest and TestwsResponse. This service attempts to return +a String with some Javascript, that is HTML encoded by Axis2 and thereby +eliminating the possibility of a Javascript engine executing the response i.e. a +reflected XSS attack. + + +Concerning Spring Security and Spring Boot, the Axis2Application class that +extends SpringBootServletInitializer as typically done utilizes +List as a binary
[axis-axis2-java-core] branch master updated: more doc updates
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 The following commit(s) were added to refs/heads/master by this push: new 8d5a5b5 more doc updates 8d5a5b5 is described below commit 8d5a5b528c7cbf9542435e3ed7d95ce12036b2f2 Author: Robert Lazarski AuthorDate: Wed Jul 28 07:46:26 2021 -1000 more doc updates --- src/site/xdoc/docs/json-springboot-userguide.xml | 16 +++- src/site/xdoc/docs/json_support.xml | 8 src/site/xdoc/docs/json_support_gson.xml | 10 +- src/site/xdoc/docs/toc.xml | 1 + 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/site/xdoc/docs/json-springboot-userguide.xml b/src/site/xdoc/docs/json-springboot-userguide.xml index 4c43144..ae42d03 100644 --- a/src/site/xdoc/docs/json-springboot-userguide.xml +++ b/src/site/xdoc/docs/json-springboot-userguide.xml @@ -36,6 +36,10 @@ JSON based REST Web services and also Web service clients via JSON and Curl, how write a custom login, and how to use them in a token based Web service that also helps prevent cross site scripting (XSS). +More docs concerning Axis2 and JSON can be found in the Pure JSON Support and JSON User Guide + Introduction @@ -48,7 +52,7 @@ you choose the latter, then the Installation Guide will instruct you on how to build Axis2 Standard Binary Distribution using the source. -The source code for this guide provides a pom.xml for an entire demo application built by maven. +The source code for this guide provides a pom.xml for an entire demo WAR application built by maven. Please note that Axis2 is an open-source effort. If you feel the code @@ -91,6 +95,8 @@ standards. https://datatracker.ietf.org/doc/html/rfc7519 + + https://datatracker.ietf.org/doc/html/rfc7516 @@ -126,7 +132,7 @@ reflected XSS attack. Concerning Spring Security and Spring Boot, the Axis2Application class that extends SpringBootServletInitializer as typically done utilizes -List as a binary choice; A login url will match, otherwise invoke +List of SecurityFilterChain as a binary choice; A login url will match, otherwise invoke JWTAuthenticationFilter. All URL's to other services besides the login, will proceed after JWTAuthenticationFilter verifies the token. @@ -155,7 +161,7 @@ services.xml file:- @@ -209,7 +215,7 @@ Invoking the client for a Test Service that validates a sample token can be done follows: -curl -v -H "Authorization: Bearer I2SpAHWrU5gYbGNwNNKg" -H "Content-Type: application/json" -X POST --data @/root/test.dat http://localhost:8080/axis2-json-api/services/testws' + curl -v -H "Authorization: Bearer I2SpAHWrU5gYbGNwNNKg" -H "Content-Type: application/json" -X POST --data @/home/myuser/test.dat http://localhost:8080/axis2-json-api/services/testws' Where the contents of /home/myuser/test.dat are below. arg0 is the var name @@ -219,7 +225,7 @@ and is used by Axis2 as part of the reflection based code: {"doTestws":[{"arg0":{"messagein":hello}}]} -Response, HTML encoded to prevent XSS. For the escaped results see ./src/site/xdoc/docs/json-springboot-userguide.xml. +Response, HTML encoded to prevent XSS. For the results with encoding see ./src/site/xdoc/docs/json-springboot-userguide.xml. {"response":{"messageout":" \">","status":"OK"}} diff --git a/src/site/xdoc/docs/json_support.xml b/src/site/xdoc/docs/json_support.xml index 0a2e297..a21fc39 100644 --- a/src/site/xdoc/docs/json_support.xml +++ b/src/site/xdoc/docs/json_support.xml @@ -26,6 +26,14 @@ JSON Support in Axis2 + Update: This documentation represents early forms of JSON + conventions, Badgerfish and Mapped. GSON support was added a few + years later. Moshi support is now included as an alternative to + GSON. For users of JSON seeking modern features, see JSON Support Guide.. For users of + JSON and Spring Boot, see the sample application in the JSON and Spring Boot User's Guide. + This document explains the JSON support implementation in Axis2. It includes an introduction to JSON, an outline as to why JSON support is useful to Axis2 and how it should be used. This document diff --git a/src/site/xdoc/docs/json_support_gson.xml b/src/site/xdoc/docs/json_support_gson.xml index 4982f6a..1962da2 100644 --- a/src/site/xdoc/docs/json_support_gson.xml +++ b/src/site/xdoc/docs/json_support_gson.xml @@ -26,6 +26,14 @@ New JSON support in Apache Axis2 + Update: Moshi support is now included assetMyVar
[axis-axis2-java-core] branch master updated: more doc updates
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 The following commit(s) were added to refs/heads/master by this push: new 70f6528 more doc updates 70f6528 is described below commit 70f6528886728af60e05c44b408a685c260789b2 Author: Robert Lazarski AuthorDate: Wed Jul 28 08:40:38 2021 -1000 more doc updates --- src/site/xdoc/docs/WS_policy.xml | 2 +- src/site/xdoc/docs/builder-formatter.xml | 2 +- src/site/xdoc/docs/modules.xml | 6 +++--- src/site/xdoc/docs/userguide-samples.xml | 2 ++ src/site/xdoc/docs/userguide.xml | 16 5 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/site/xdoc/docs/WS_policy.xml b/src/site/xdoc/docs/WS_policy.xml index 382de99..d4b31f3 100644 --- a/src/site/xdoc/docs/WS_policy.xml +++ b/src/site/xdoc/docs/WS_policy.xml @@ -179,7 +179,7 @@ you send us in this regard. Keep on contributing! Sanka Samaranayake, March 2006. http://wso2.org/library/23";>Web services Policy - Why, What & How http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules/neethi/";>WS-commons/policy SVN +"https://github.com/apache/ws-neethi";>WS-commons/policy GitHub http://specs.xmlsoap.org/ws/2004/09/policy/ws-policy.pdf";>Web Services Policy Framework (WS-Policy) diff --git a/src/site/xdoc/docs/builder-formatter.xml b/src/site/xdoc/docs/builder-formatter.xml index a284a7e..ff4debc 100644 --- a/src/site/xdoc/docs/builder-formatter.xml +++ b/src/site/xdoc/docs/builder-formatter.xml @@ -56,7 +56,7 @@ Kindly prefix subject with [Axis2]. Step1 : MessageBuilder implementation - + diff --git a/src/site/xdoc/docs/modules.xml b/src/site/xdoc/docs/modules.xml index ea7f872..3d80244 100644 --- a/src/site/xdoc/docs/modules.xml +++ b/src/site/xdoc/docs/modules.xml @@ -102,7 +102,7 @@ align="bottom" border="0" id="Graphic5" /> Step1 : LoggingModule Class LoggingModule is the implementation class of the Axis2 module. Axis2 modules should implement the "http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/modules/Module.java?rev=396785&view=log";>org.apache.axis2.modules.Module" +"https://github.com/apache/axis-axis2-java-core/blob/master/modules/kernel/src/org/apache/axis2/modules/Module.java";>org.apache.axis2.modules.Module" interface with the following methods. public void init(ConfigurationContext configContext, AxisModule module) throws AxisFault;//Initialize the module @@ -125,9 +125,9 @@ various SOAP header processing at different phases. (See the Architecture Guide for more information on phases). To write a handler one should implement http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/engine/Handler.java?rev=357187&view=log";> +"https://github.com/apache/axis-axis2-java-core/blob/master/modules/kernel/src/org/apache/axis2/engine/Handler.java";> org.apache.axis2.engine.Handler. But for convenience, http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/handlers/AbstractHandler.java?rev=396788&view=log";> +"https://github.com/apache/axis-axis2-java-core/blob/master/modules/kernel/src/org/apache/axis2/handlers/AbstractHandler.java";> org.apache.axis2.handlers.AbstractHandler provides an abstract implementation of the Handler interface. For the logging module, we will write a handler with the diff --git a/src/site/xdoc/docs/userguide-samples.xml b/src/site/xdoc/docs/userguide-samples.xml index 3b2bd3c..ae6b04e 100644 --- a/src/site/xdoc/docs/userguide-samples.xml +++ b/src/site/xdoc/docs/userguide-samples.xml @@ -41,6 +41,8 @@ and capabilities. These services are listed in this section. hood? How Axis2 handles SOAP messages +How Axis2 handles JSON +messages Axis2 distributions The Axis2 Standard Binary diff --git a/src/site/xdoc/docs/userguide.xml b/src/site/xdoc/docs/userguide.xml index c9a130c..ca543a8 100644 --- a/src/site/xdoc/docs/userguide.xml +++ b/src/site/xdoc/docs/userguide.xml @@ -54,6 +54,8 @@ Axis2? hood? How Axis2 handles SOAP messages +How Axis2 handles JSON +messages Axis2 Distributions The Axis2 Standard Binary @@ -202,6 +204,20 @@ and handlers. Axis2 system. These modules, such as Rampart, which provides an implementation of WS-Security, are the main extensibility mechanisms in Axis2. + +How Axis2 Handles JSON Messages +Axis2 with REST provides GSON or the newer Moshi library as the JSON parser. +With the proper axis2.xml configuration, this support is triggered by the HTTP header +"Content-Type: application/json". +More docs concerning Axis2 and JSON can be found in the Pure JSON Support and JSON User Guide. + + +For users of JSON and Spring Boot - or anyone interesed in a complete JSON example that +includes Spring Security - see the sample application in the JSON and Spring Boot Us
[axis-axis2-java-core] branch master updated: more doc updates
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 The following commit(s) were added to refs/heads/master by this push: new 3b266e0 more doc updates 3b266e0 is described below commit 3b266e041cf27f024a6316f7e966f916d6a68a83 Author: Robert Lazarski AuthorDate: Wed Jul 28 09:41:16 2021 -1000 more doc updates --- src/site/xdoc/docs/userguide-samples.xml | 8 + src/site/xdoc/docs/userguide.xml | 1 + src/site/xdoc/svn.xml| 55 +--- 3 files changed, 24 insertions(+), 40 deletions(-) diff --git a/src/site/xdoc/docs/userguide-samples.xml b/src/site/xdoc/docs/userguide-samples.xml index ae6b04e..20a6ef8 100644 --- a/src/site/xdoc/docs/userguide-samples.xml +++ b/src/site/xdoc/docs/userguide-samples.xml @@ -102,6 +102,8 @@ and running an Axis2 service created from WSDL "userguide-samples.html#services">Services Sample WSDL files +Sample using Rest with JSON +and Spring Boot with Spring Security Other Samples @@ -154,6 +156,12 @@ of WS-Addressing actions. the Document/Literal WSDL pattern, rather than RPC. perf.wsdl: Demonstrates the use of array values as input values. + +Sample webapp that uses JSON, Spring Boot, Spring Security, and Moshi +A complete Axis2 webapp via Maven that demonstrates JSON and Moshi securely with +Spring Boot is located in the "samples/userguide/src/springbootdemo" directory of Axis2 standard binary +distribution. Other samples In AXIS2_HOME/samples Directory: diff --git a/src/site/xdoc/docs/userguide.xml b/src/site/xdoc/docs/userguide.xml index ca543a8..0ea8737 100644 --- a/src/site/xdoc/docs/userguide.xml +++ b/src/site/xdoc/docs/userguide.xml @@ -125,6 +125,7 @@ recommendations. Send SOAP messages Receive and process SOAP messages +Receive and process JSON messages Create a Web service out of a plain Java class Create implementation classes for both the server and client using WSDL diff --git a/src/site/xdoc/svn.xml b/src/site/xdoc/svn.xml index d234df0..016a9e9 100644 --- a/src/site/xdoc/svn.xml +++ b/src/site/xdoc/svn.xml @@ -26,67 +26,42 @@ -This document provides information on how to use SVN to get an -SVN checkout/update, make commits to the repository, etc., in the +This document provides information on how to use Git to get an +GitHub checkout/update, make commits to the repository, etc., in the process of contributing to Apache projects (specifically Axis2). Instructions on configuring IDEs for development and using Maven to build the project is also included here. - + -The Axis2 development team uses Subversion (SVN) for source -control. Subversion is a compelling replacement for CVS, developed -under the auspices of the Tigris community and licensed under an -Apache compatible license. To learn more about Subversion or to -download the latest distribution, visit the http:///subversion.tigris.org";>Subversion project -site. If you are looking for guidance on setting up and -installing Subversion, please read the ASF http://www.apache.org/dev/version-control.html";>Source -Code Repositories page. +The Axis2 development team uses GitHub (Git) for source +control. - + To check out the latest version of Axis2 from the Foundation's -Subversion repository, you must use one of the following URLs -depending on your level of access to the Axis2 source code: +GitHub repository, you must use the following URL: -If you are not a committer: http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/";>http://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/ -If you are a committer: https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/";>https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/ +If you are a committer or not a committer, the link is the same: https://github.com/apache/axis-axis2-java-core";>https://github.com/apache/axis-axis2-java-core -If you are a committer, make sure that you have selected an -svnpasswd. To do this, you must log into svn.apache.org. For more -information, please read the ASF http://www.apache.org/dev/version-control.html";>Source Code Repositories page. - - -Once you have successfully installed Subversion, you can check +
[axis-axis2-java-core] branch master updated: more doc updates
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 The following commit(s) were added to refs/heads/master by this push: new 032e1ef more doc updates 032e1ef is described below commit 032e1eff771f74e0cd21512de931beb6fdd5ac9c Author: Robert Lazarski AuthorDate: Wed Jul 28 10:38:09 2021 -1000 more doc updates --- src/site/xdoc/{svn.xml => git.xml} | 2 +- src/site/xdoc/overview.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/site/xdoc/svn.xml b/src/site/xdoc/git.xml similarity index 98% rename from src/site/xdoc/svn.xml rename to src/site/xdoc/git.xml index 016a9e9..c43a3a0 100644 --- a/src/site/xdoc/svn.xml +++ b/src/site/xdoc/git.xml @@ -26,7 +26,7 @@ -This document provides information on how to use Git to get an +This document provides information on how to use Git to get a GitHub checkout/update, make commits to the repository, etc., in the process of contributing to Apache projects (specifically Axis2). Instructions on configuring IDEs for development and using Maven to diff --git a/src/site/xdoc/overview.xml b/src/site/xdoc/overview.xml index 1a9391e..b10d8b8 100644 --- a/src/site/xdoc/overview.xml +++ b/src/site/xdoc/overview.xml @@ -42,7 +42,7 @@ allows the technology to evolve. Join Mailing Lists Download Binary Builds -http://issues.apache.org/jira/browse/AXIS2";>Report +https://issues.apache.org/jira/projects/AXIS2";>Report bugs/Request additional features Contribute Code or Documentation Patches @@ -54,9 +54,9 @@ steps (in addition to the ones above) to get you started: href="release-process.html">release process Review the reference library http://svn.apache.org/viewvc/axis/axis2/java/core/";> +"https://github.com/apache/axis-axis2-java-core";> View the Source Code -Access SVN Repository +Access GIT Repository
[axis-axis2-java-core] branch master updated: doc typos
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 The following commit(s) were added to refs/heads/master by this push: new e6bdf57 doc typos e6bdf57 is described below commit e6bdf5713b47f9910c3067ec00963dd35c127cda Author: Robert Lazarski AuthorDate: Wed Jul 28 12:54:37 2021 -1000 doc typos --- src/site/xdoc/docs/json-springboot-userguide.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/site/xdoc/docs/json-springboot-userguide.xml b/src/site/xdoc/docs/json-springboot-userguide.xml index ae42d03..07c2049 100644 --- a/src/site/xdoc/docs/json-springboot-userguide.xml +++ b/src/site/xdoc/docs/json-springboot-userguide.xml @@ -132,7 +132,7 @@ reflected XSS attack. Concerning Spring Security and Spring Boot, the Axis2Application class that extends SpringBootServletInitializer as typically done utilizes -List of SecurityFilterChain as a binary choice; A login url will match, otherwise invoke +a List of SecurityFilterChain as a binary choice; A login url will match, otherwise invoke JWTAuthenticationFilter. All URL's to other services besides the login, will proceed after JWTAuthenticationFilter verifies the token. @@ -215,11 +215,11 @@ Invoking the client for a Test Service that validates a sample token can be done follows: - curl -v -H "Authorization: Bearer I2SpAHWrU5gYbGNwNNKg" -H "Content-Type: application/json" -X POST --data @/home/myuser/test.dat http://localhost:8080/axis2-json-api/services/testws' + curl -v -H "Authorization: Bearer 95104Rn2I2oEATfuI90N" -H "Content-Type: application/json" -X POST --data @/home/myuser/test.dat http://localhost:8080/axis2-json-api/services/testws' Where the contents of /home/myuser/test.dat are below. arg0 is the var name -and is used by Axis2 as part of the reflection based code: +and is used by Axis2 as part of its reflection based code: {"doTestws":[{"arg0":{"messagein":hello}}]}
[axis-axis2-java-core] branch master updated: doc typos
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 The following commit(s) were added to refs/heads/master by this push: new 6dd866c doc typos 6dd866c is described below commit 6dd866c98891066595eca70cecf49855c73d8c95 Author: Robert Lazarski AuthorDate: Wed Jul 28 13:01:17 2021 -1000 doc typos --- src/site/xdoc/docs/json-springboot-userguide.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/xdoc/docs/json-springboot-userguide.xml b/src/site/xdoc/docs/json-springboot-userguide.xml index 07c2049..a56878b 100644 --- a/src/site/xdoc/docs/json-springboot-userguide.xml +++ b/src/site/xdoc/docs/json-springboot-userguide.xml @@ -142,7 +142,7 @@ the form of "Authorization: Bearer mytoken". The Axis2WebAppInitializer class supplied in this guide, is the config class -that registers AxisServlet with spring boot. +that registers AxisServlet with Spring Boot. Axis2 web services are installed via a WEB-INF/services directory that contains