[SWS-1018] SaajSoapMessage created with default (empty) SoapEnvelope Created: 09/May/18 Updated: 13/Sep/18 Resolved: 13/Sep/18
|Project:||Spring Web Services|
|Fix Version/s:||2.4.3, 3.0.4|
|Reporter:||Sachin Lad||Assignee:||Greg Turnquist|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Pull Request URL:||https://github.com/spring-projects/spring-ws/pull/119|
It seems like with the fix for
Invoking getVersion() results in introspection for SoapEnvelope. This constructor is invoked as part of createMessage() method which sets the soapMessage in doWithMessage() method after the SaajSoapMessage is initialized.
We started to see our integration tests failing with this upgrade.
|Comment by Tomas Hudec [ 14/May/18 ]|
lol. I create very similar bug right after yours. Check how you can temporary fix it: https://jira.spring.io/browse/SWS-1019
|Comment by jaminh [ 21/Jun/18 ]|
I tried addressing this issue by moving the addition of the empty SoapAction for SOAP 1.1 messages to the postProcess method of the SaajSoapMessageFactory. This eliminates the need to look at the envelope to figure out the version since we can just look at the messageFactoryProtocol of the factory. If you want you can try running against https://github.com/jaminh/spring-ws/tree/SWS-1018 to see if that fixes the issue for you.
|Comment by Greg Turnquist [ 13/Sep/18 ]|
Empty envelope initialization moved to SaajSoapMessageFactory based on jaminh's work and backported to 2.x.