Commit Graph

85 Commits

Author SHA1 Message Date
Greg L. Turnquist
2254b0f789 #1159 - Upgrade to JUnit 5 and AssertJ.
Also upgrade XMLUnit to the 2.x version, using its AssertJ integration.
2020-10-20 14:55:57 -05:00
Greg L. Turnquist
d24b4fb5d5 #1160 - Update code style. 2020-09-29 20:40:54 -05:00
Lukasz Jernas
7105d756ed SWS-1075 - Fix assertion message. 2019-08-23 16:22:54 -05:00
Greg Turnquist
1f05307d61 SWS-1049 - Replace direct API usage with better defaults. 2019-01-09 22:37:41 -06:00
Jamin Hitchcock
0da6aca9f2 SWS-1018 - Move creation of an empty SOAP 1.1 envelope to the factory.
To avoid SaajSoapMessage being created with an empty envelope, move the envelope creation process to SaajSoapMessageFactory.
2018-09-13 12:21:07 -05:00
Greg Turnquist
5e2390e2dd SWS-1027 - Fix log-based errors 2018-07-25 14:57:28 -05:00
Greg Turnquist
0d814c0352 SWS-1020 - Add support for Java 10
* Introduce build profile targeting Java 10
* Augment CI jobs to test against Java 10 JDK
2018-05-16 16:40:41 -05:00
Greg Turnquist
e228cc73a5 SWS-1014 - Polishing. 2018-02-19 14:26:45 -06:00
Kazuki Shimizu
39d0895a9c SWS-1014 - Support custom timeout settings on HttpUrlConnectionMessageSender. 2018-02-19 14:23:13 -06:00
Greg Turnquist
99a7dd6228 SWS-981 - Polish 2017-10-27 12:02:32 -05:00
Jamin Hitchcock
838c50a1aa SWS-981 - Make SoapActionHeaders ONLY appear for SOAP 1.1 messages
SOAPAction header with SOAP ver 1.2 messages
2017-10-27 11:49:50 -05:00
Andreas Veithen
a3517d4da1 SWS-1006 - Make AxiomSoapHeader compatible with Axiom 1.3
AxiomSoapHeaderElementIterator expects an Iterator<SOAPHeaderBlock> as input. However, it is also used together with getChildrenWithName, which (since it's defined by OMContainer), will actually return an Iterator<OMElement> in Axiom 1.3. Therefore it should use Iterator<? extends OMElement>.
2017-10-27 11:26:46 -05:00
Andreas Veithen
10de93f4b8 SWS-1005 - Use correct default content type for SOAP 1.2 with Axiom
SaajSoapMessageFactory consistently accepts SOAP messages without Content-Type header, but AxiomSoapMessageFactory triggers an error with SOAP 1.2 in this case. This change fixes this and ensures consistency between the two message factories.
2017-10-24 20:35:50 -05:00
Andreas Veithen
fbec6122ef SWS-1004 - Use Axiom's getSAXResult method instead of the custom AxiomResult class 2017-10-24 20:29:55 -05:00
Andreas Veithen
dcc8b8deb0 SWS-1003 - Eliminate some usages of deprecated Axiom APIs
This change only addresses some trivial cases. There are other cases that require more work.
2017-10-24 19:52:19 -05:00
Andreas Veithen
cba67914d2 SWS-707 - Enable streaming incoming responses
Original pull request: #85
2017-10-24 11:13:23 -05:00
Greg Turnquist
6f9efb7e91 SWS-994 - Upgrade to Java 8, Spring 5, and everything else
Move Spring Web Services to 3.0.0.BUILD-SNAPSHOT

Key updates include:

* Rebase against Java 8
* Spring 5
* Smack 4.2
* Removal of wss4j 1.x support
* Gradle 4.0
* Plugins
2017-10-05 11:02:18 -05:00
Greg Turnquist
208dda4635 SWS-993 Polishing 2017-10-03 10:16:20 -05:00
Greg Turnquist
049b86dd23 SWS-993 Use 'similar' assertions when namespace not critical 2017-10-03 10:14:07 -05:00
Greg Turnquist
afb00a36ed Support Spring 4 and Spring 5 2017-08-25 17:02:41 -05:00
Andrei Amariei
9c726cfede SWS-400 - Allow overriding handleRequest(...) in AbstractLoggingInterceptor 2017-05-22 09:52:47 -05:00
Andrei Amariei
0fc3119c03 SWS-400 - Respect parent isLogEnabled() in SoapEnvelopeLoggingInterceptor 2017-05-22 09:52:39 -05:00
Andreas Veithen
858681220c SWS-987 - Use AbstractPushOMDataSource to enable additional optimizations in Axiom 2017-05-22 09:33:44 -05:00
Andreas Veithen
f189e86c49 SWS-986 - Upgrade Axiom and use new API to convert Document to SOAPMessage
Original pull-request: https://github.com/spring-projects/spring-ws/pull/82
2017-05-22 09:22:22 -05:00
Greg Turnquist
15c0213373 SWS-967 Add other build profiles
* Make it possible to run the build with different dependencies and different version of JDK
* Fix JUnit to make it forward compatible
* Fix other things that are deprecated in Spring 4.3 and removed in Spring 5
2016-08-29 10:20:44 -05:00
Greg Turnquist
1df1079fbd SWS-947 Make Wsdl4jDefinition threadsafe on reads 2016-08-23 11:19:49 -05:00
Greg Turnquist
ee8748b956 SWS-931 Upgrade to Axiom 1.2.16 2016-07-05 08:28:45 -05:00
Greg Turnquist
218e25c6c1 SWS-950 Support RFC 7230 for HTTP headers
Make HTTP headers handle case insensitivity.
2016-04-04 21:28:56 -05:00
Greg Turnquist
6b3f990a91 SWS-951 - Add tests and polish 2016-03-14 11:59:58 -05:00
Marten Deinum
b02a8bed99 SWS-951 - Introduce ClientInterceptorAdapter
This commit introduces a ClientInterceptorAdapter with a default implementation
of the methods and providing a protected Log instance for subclasses. This convenience
class allows for pre-/post only ClientInterceptor instances without having to
add empty methods to it.
2016-03-14 14:33:47 +01:00
Uxio
420e795607 SWS-948 Fix typo (duplicated the) 2016-02-11 14:28:44 -06:00
Dennis Walter
2be6c50c8f SWS-932 Preserve namespace context 2016-02-09 11:16:52 -06:00
Greg Turnquist
8b18b88fe9 SWS-937 Eliminate usage of internal Axiom implementation class 2016-01-28 11:43:17 -06:00
Greg Turnquist
4cbc75c060 SWS-930 Restore backwards compatibility for Axiom 1.2.14- 2015-12-18 11:27:44 -06:00
Andreas Veithen
1d9a6b589b SWS-929 Fix namespace prefix handling with StreamingPayload
The getName() method in JaxbStreamingPayload doesn't report the actual
namespace prefix that is later generated by the writeTo method. With
Axiom 1.2.13 that didn't cause problems, but 1.2.14 is less lenient,
causing an error as described in AXIOM-463.

This change:
* Updates the StreamingPayload documentation to specify that the
namespace prefix in the QName returned by getName() has no significance
(which is effectively how things are currently).
* Updates AxiomSoapBody so that it Axiom is aware that the namespace
prefix of the created OMSourcedElement is unknown.
* Modifies the unit test for setStreamingPayload so that it uses a
StreamingPayload with a prefix mismatch.
2015-12-15 10:18:23 -06:00
Greg Turnquist
6907b50b36 SWS-922 Upgrade to Axiom 1.2.15 2015-12-15 10:04:46 -06:00
Pierre LEGER
842bace0ac SWS-924 Mime header : Manage multiple keys with different values
Correction for multiple keys with different values in HTTP Response.
Before, in response of mimeheader:
 - cookie: value2
 - cookie: value2
Now :
 - cookie: value1
 - cookie: value2

Issue: SWS-924
2015-11-02 14:12:05 -06:00
Andy Wilkinson
1c4b17eccc SWS-923 Update tests to be compatible with latest version of Http Components
More recent versions of HTTP components normalise an HTTPHost when it’s
used to create an HTTPRoute. As part of this normalization the host’s
port is set to the default port for the host’s scheme, e.g. an https
scheme will result in a port of 443 and an http scheme will result in
a port of 80

This commit updates the tests so that they will accept the behaviour
of HTTP Components 4.3.x (the port is -1) and HTTP Components 4.5.x
(the port is 80 for http and 443 for https). Compatibility with HTTP
Components 4.5.x allows Spring Web Services’ tests to pass when
they’re run as part of the Spring IO Platform 2.0 release process
which uses a more recent version of HTTP components than the default
Spring Web Services build.
2015-10-29 10:18:59 -05:00
Philippe Marschall
3c7a6b9911 SWS-921 Use varargs for XSD schemas
XML schema validation accepting multiple schemas currently uses arrays
of Resource objects. They would be a bit easier and more succinct to
use if the setters were switched to varargs. Such a change would be
backwards compatible.

This change includes:

 * change AbstractValidatingInterceptor#setSchemas to use varargs
 * change the CommonsXsdSchemaCollection constructor to use varargs
 * change CommonsXsdSchemaCollection.setXsds to use varargs
 * update the tests to use varargs

Issue: SWS-921
https://jira.spring.io/browse/SWS-921
2015-10-19 14:39:35 -05:00
Greg Turnquist
b040abb66d Merge branch 'SWS-920' of https://github.com/marschall/spring-ws into marschall-SWS-920 2015-10-19 14:08:24 -05:00
Philippe Marschall
80bd84594e SWS-920 Fix javadoc warnings
Javadoc generation produces various warnings resulting in suboptimal
output.

This patch includes:

 * fix markup
 * fix broken references
 * fix links to external documentation
 * fix wrong javadoc

Issue: SWS-920
https://jira.spring.io/browse/SWS-920
2015-10-03 16:43:56 +02:00
Philippe Marschall
de1e640dc3 SWS-918 Fix compiler warnings
The project contains various easy to fix compiler warnings like unused
imports, raw types and no longer needed @SuppressWarnings("unchecked").

This change removes:

 * unused imports
 * raw types
 * no longer needed @SuppressWarnings("unchecked")

Issue: SWS-918
https://jira.spring.io/browse/SWS-918
2015-10-03 13:20:34 +02:00
Greg Turnquist
1325412798 SWS-910 - De-deprecate the older, interface-based mappings 2015-07-14 09:55:16 -05:00
Greg Turnquist
4b179e84e3 SWS-894 - Introduce interface to offer WebServiceConnection headers
* Created an interface to mark where request and response headers may be accessed
* Updated related classes to use the interface, and in turn, update method visibility
* There are sets of classes aimed at requests and another at repsonses. Have interfaces to serve both, for symmetry.
2015-04-21 13:00:18 -05:00
Tommy Winther
b8e4b806fa Fix bug in AxiomHandler 2015-04-20 13:25:07 -05:00
Greg Turnquist
8f559cfb99 SWS-888 - Handle configuring max connections for secured routes
When configuring max connections for a secured route, the HttpRoute is actually not secured. This causes an improper lookup.

This change updates the test case to ensure several things are verified including the fix provided.
2015-03-18 14:39:19 -05:00
Arjen Poutsma
21b5004162 NullPointerException for request with no SOAP body
SaajSoapEnvelope now throws an exception when the SOAP envelope contains
no SOAP body.

Issue: SWS-887
2015-03-18 10:10:56 +01:00
Arjen Poutsma
7d64bebd19 Converted spaces to tabs
This commit changes leading spaces in all Java source files to tabs, to
be consistent with other Spring projects.
2015-03-18 09:54:51 +01:00
Arjen Poutsma
b6500fe5ac SOAP call not rejected when interceptor fails
When a ClientInterceptor returns false for handleRequest, the actual
SOAP call should not proceed.

Issue: SWS-892
2015-03-16 11:11:40 +01:00
Greg Turnquist
938e8661d2 Polish 2014-12-05 14:14:59 -06:00