Reputation: 13
We are migrating from javax packages to jakarta packages and hit a problem with javax.xml.rpc.handler.soap.SOAPMessageContext
as there doesn't seem to be an equivalent jakarta version.
There doesn't seem to be a replacement foe the javax.xml.rpc
as far as we can see.
The problem we face is that the SOAPMessageContext::getMessage()
method returns a javax.xml.soap.SOAPMessage
but we need a jakarta.xml.soap.SOAPMessage
.
Perhaps the biggest problem is that this code has been in maintenance mode for over 10 years and the original authors of the code have long since left the organization.
We are in a big fog here and hope someone can point us in the right direction.
Upvotes: 0
Views: 2040
Reputation: 311
I had this problem and my solution was:
Yes, there is a jakarta version of the rpc-api, but is done with the javax.xml.soap-api version and adds a dependency with javax.xml.soap classes. To avoid this problem, you have to transform the "jakarta.xml.rpc-api" and add this tranformed jar to your dependencies:
https://github.com/eclipse/transformer
Maybe you need to add some dependencies brought previously by the original rpc-api jar.
And with this changes, all works fine for me with jdk17.
Upvotes: 0