Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Axiom 1.2.15 [SWS-922] #995

Closed
gregturn opened this issue Oct 23, 2015 · 0 comments
Closed

Compatibility with Axiom 1.2.15 [SWS-922] #995

gregturn opened this issue Oct 23, 2015 · 0 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Contributor

Andy Wilkinson opened SWS-922 and commented

Axiom 1.2.15 was released in June but a number of Spring Web Services tests fail when run against this new version. The release notes describe the changes as:

Removal of the JavaMail dependency

Axiom 1.2.15 no longer uses JavaMail and the corresponding dependency has been removed. If your project relies on Axiom to introduce JavaMail as a transitive dependency, you need to update your build.

Serialization changes

In previous Axiom versions, the serialize and serializeAndConsume methods skipped empty SOAP Header elements. On the other hand, such elements would still appear in the representations produced by getXMLStreamReader and getSAXSource. For consistency, starting with Axiom 1.2.15, SOAP Header elements are always serialized. This may change the output of existing code, especially code that uses the getDefaultEnvelope() defined by SOAPFactory. However, it is expected that this will not break anything because empty SOAP Header elements should be ignored by the receiver.

To avoid producing empty Header elements, projects should switch from using getDefaultEnvelope() (in SOAPFactory) and getHeader() (in SOAPEnvelope) to using createDefaultSOAPMessage() and getOrCreateHeader().

For more information, see AXIOM-430.

The removal of JavaMail dependency causes some ClassNotFoundExceptions. It can be addressed by adding a test dependency on com.sun.mail:javax.mail:1.5.4.

There was also some changes when asserting the contents of response payloads. I suspect these are a side-effect of the serialisation changes that have been made in Axiom.


Affects: 2.2.2

Referenced from: commits 6907b50

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

No branches or pull requests

1 participant