Commit Graph

68 Commits

Author SHA1 Message Date
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
nstoddar
a46cb2b1d4 fix for AbstractAddressingEndpointMapping to filter SmartEndpointInterceptors 2014-12-05 14:10:05 -06:00
Arjen Poutsma
fe4747d5fc Support @Repeatable for @SoapAction @PayloadRoot
This commit introduces support for the JDK 8 @Repeatable annotation in
the @SoapAction and @PayloadRoot.

Issue: SWS-877
2014-07-18 13:04:14 +02:00
Andreas Veithen
b7258c21da Fix SAXSource handling in AbstractJaxb2PayloadMethodProcessor
The current code basically assumes that if the payload is a SAXSource,
then it must be backed by a SAX parser. It then passes only the
InputSource to the unmarshaller and ignores the XMLReader. Presumably
this is an optimization because the unmarshaller will likely parse the
XML message in a more efficient way.

This approach causes a problem if the SAXSource is not backed by a
parser but generates the sequence of SAX events using a custom
XMLReader.
2014-07-04 13:36:08 +02:00
Arjen Poutsma
7038ed6341 Upgraded to HttpComponents 4.3.4. 2014-06-20 11:16:46 +02:00
Arjen Poutsma
ba9fc8d054 Merge branch 'master' of github.com:spring-projects/spring-ws 2014-05-01 09:18:37 +02:00
Arjen Poutsma
15db9b7858 Removed template.mf files
Removed template.mf files, as they are no longer used.
2014-05-01 09:16:39 +02:00
Rossen Stoyanchev
17dab67ee0 Correct whitespace issue in Javadoc 2014-04-30 09:47:35 -04:00
Arjen Poutsma
12a10a34f1 Bumped up compile warnings
Bumped up the compiler warning to errors.
2014-04-24 14:22:39 +02:00
Arjen Poutsma
ded1efd456 Correctly set HTTP status code on SOAP 1.2 fault
SOAP v1.2 specifies that for SOAP Fault's with Code of "env:Sender" the
HTTP response status code should be 400 (rather than 500 for all other
faults). This commit changes both client and server-side to reflect
this.

Issue: SWS-868
2014-04-23 15:22:59 +02:00
Arjen Poutsma
d43b880637 WS-Addressing EMs support SmartEndpointInterceptor
All WS-Addressing EndpointsMappings now support endpoint interceptors
registered via a <sws:interceptors/> block (i.e.
SmartEndpointInteceptors).

Issue: SWS-874
2014-04-23 14:24:05 +02:00
Arjen Poutsma
bbc6bf5f60 Fixing javadoc 2014-04-16 17:30:39 +02:00
Arjen Poutsma
124675ba78 Fixed build under JDK 1.8
Spring-WS can now be built under JDK 1.8 (and only JDK 1.8).
2014-04-15 15:55:13 +02:00
Arjen Poutsma
09d614bbec Disable external ents in AxiomSoapMessageFactory
Added properties to disable resolution of external entities to
AxiomSoapMessageFactory. Disabled by default.

Issue: SWS-873
2014-04-15 15:37:48 +02:00
Arjen Poutsma
04c429ba0d Figuring out why the build fails 2014-04-15 13:17:13 +02:00
Arjen Poutsma
bcd0ead493 Figuring out why the build fails 2014-04-15 13:13:03 +02:00
Arjen Poutsma
f7debd463e Figuring out why the build fails 2014-04-15 13:09:51 +02:00
Arjen Poutsma
15df1c784c Figuring out why the build fails 2014-04-15 13:07:01 +02:00
Arjen Poutsma
ca5c0e6c53 Figuring out why the build fails 2014-04-15 12:59:22 +02:00
Arjen Poutsma
f11317c560 Bumped version to 2.2 2014-04-15 11:07:48 +02:00