Commit Graph

40 Commits

Author SHA1 Message Date
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
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
Arjen Poutsma
da629278e6 Added @Override annotation to interface implementations 2014-04-14 16:08:00 +02:00
Arjen Poutsma
06d735659c Unconditionally call SAAJ SOAPMessage#saveChanges
In some scenarios, the saveRequired() flag of the SAAJ SOAPMessage does
not indicate whether the internal state of the message is valid. Since
calling it is therefore useless, we unconditionally call saveChanges()
now.

Issue: SWS-870, SWS-871
2014-04-14 12:00:13 +02:00
Arjen Poutsma
a23de2afd2 Removed SaajImplementation bridge
Removed SaajImplementation bridge, since Spring-WS 2.2 requires JDK 1.6
and JDK 1.6 comes with SAAJ 1.3 provided.
2014-04-11 16:17:47 +02:00
Arjen Poutsma
160907a6e1 Introduced @Configuration support for Spring-WS
Introduced support for Java @Configuration classes in the form of the
@EnableWS annotation, WsConfigurationSupport and WsConfigurer.
Overall solution is quite similar to Spring-MVC's @EnableMvc.

Also added/uopdated reference documentation for the various
@Configuration options.

Issue: SWS-836
2014-04-10 15:59:41 +02:00
Arjen Poutsma
3522effaea Upgraded to Spring 4.0.3 and XMLUnit 1.5
Upgraded to XMLUnit 1.5, which broke some tests in SWS as well as SPR.
Spring 4.0.3 fixed those, so upgraded to that as well.
2014-03-28 13:31:54 +01:00
Arjen Poutsma
06ff649b74 Support null return value for JAXB
Support null return values for JAXB MethodReturnValueHandlers.\

Issue: SWS-867
2014-03-20 14:05:46 +01:00
Arjen Poutsma
ac030c2ff3 Added afterCompletion to ClientInterceptor
Added the afterCompletion hook to ClientInterceptor, similar to the
existing one in EndpointInterceptor.

Issue: SWS-778
2014-03-18 15:49:49 +01:00
Arjen Poutsma
35a8831528 Introduced @PayloadRoots annotation
Introduced the @PayloadRoots annotation, a composite of @PayloadRoot.
which allows users to map to multiple payload root element names.

Issue: SWS-864
2014-02-25 12:41:04 +01:00
Arjen Poutsma
473b4285fd Fixing tests for JDK 1.7
Fixed a couple of tests so that they work under JDK 1.7.
2014-02-12 16:49:37 +01:00
Arjen Poutsma
50fe028cef Added test for XSD attributes
Added additional tests for inlining XSD attributes.

Issue: SWS-861
2014-02-11 10:18:39 +01:00
Arjen Poutsma
ea9e2d1d2d Added test for XSD attributes
Added additional tests for inlining XSD attributes.

Issue: SWS-861
2014-02-10 15:56:44 +01:00
Arjen Poutsma
b3964b7916 Added template method for NoEndpointFoundException
Introduced handleNoEndpointFoundException to allow for customization in
subclasses.

Issue: SWS-850
2014-02-03 12:50:09 +01:00
Arjen Poutsma
dffa62c9a2 WSMessageSender based on ClientHttpRequestFactory
Introduced an implementation of WebServiceSender that wraps
ClientHttpRequestFactory, as found in Spring 3.

Issue: SWS-859
2014-01-31 16:00:22 +01:00
Arjen Poutsma
cca13ec49b Javadoc 2014-01-30 14:08:17 +01:00
Arjen Poutsma
1c1db7d914 AxiomUtils.toEnveloper now using StAXUtils
Previously, AxiomUtils.toEnvelope() constructed its own XMLInputFactory
for creating a XMLStreamReader. Now we use Axiom's StAXUtils instead,
thus allowing users to use the standard Axiom mechanisms for setting
STAX properties etc.

Issue: SWS-851
2014-01-27 12:42:57 +01:00
Arjen Poutsma
b12a3e63a1 Resolved NullPointerException
When the payload is null, the PayloadRootSmartSoapEndpointInterceptor
does not throw an exception anymore.

Issue: SWS-857
2014-01-27 12:18:47 +01:00
Anton Pechinsky
2847659522 Wrong check if logger is enabled in WebServiceTemplate.logResponse method. 2014-01-15 19:21:59 +03:00
Arjen Poutsma
843ca6d2ef Migrated to Gradle build
This commit migrates from a Maven-based build system to a Gradle-based
one. Changes include:

- Removed archetype & parent
- Renamed core, support, test, security and xml directories to
  spring-ws-core, spring-ws-test, spring-ws-security, spring-xml
  respectively.
- Moved samples to separate project
  (https://github.com/spring-projects/spring-ws-samples)
2013-11-25 10:57:26 +01:00