Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

'saveRequired()' does not recognize if a SOAPMessage has been changed #69

Closed
glassfishrobot opened this issue Apr 11, 2012 · 5 comments
Closed

Comments

@glassfishrobot
Copy link
Contributor

If a SOAPMessage has been altered 'saveRequired()' does not recognize this.

Therefor the construct

if (soapMessage.saveRequired())

{ soapMessage.saveChanges(); }

does not work and also 'writeTo(Outputstream)' does not call 'saveChanges()' before writing out the message (see also 'http://java.net/jira/browse/SAAJ-68').

Output from running the test class attached

[java] final message :
[java] <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>env:Header<abc:Extension1 xmlns:abc='http://example.org/2001/06/ext' env:actor='http://schemas.xmlsoap.org/soap/actor/next' env:mustUnderstand='1'/><def:Extension2 xmlns:def='http://example.com/stuff' env:mustUnderstand="1"/></env:Header>env:Body/</env:Envelope>
[java] final message ends here.

Environment

Metro 2.2, SAAJ 1.3.18, Oracle HotSpot VM 1.6.0_29

Affected Versions

[1.3.15]

@glassfishrobot
Copy link
Contributor Author

Reported by bthalmayr

@glassfishrobot
Copy link
Contributor Author

File: SOAPMessageSaveRequiredFailing.java
Attached By: bthalmayr

@glassfishrobot
Copy link
Contributor Author

gagordon said:
Same issue as #68 does not 'save' the message before writing it out to the stream").

@glassfishrobot
Copy link
Contributor Author

Marked as duplicate on Tuesday, November 27th 2012, 6:32:05 am

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA SAAJ-69

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants