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.
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.
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
All WS-Addressing EndpointsMappings now support endpoint interceptors
registered via a <sws:interceptors/> block (i.e.
SmartEndpointInteceptors).
Issue: SWS-874
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
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
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
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)