user3327106
user3327106

Reputation: 13

Has javax.xml.rpc been migrated to jakarta?

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

Answers (2)

David B.F.
David B.F.

Reputation: 311

I had this problem and my solution was:

  • Update to the last jakarta.xml.soap-api
  • Download the last jakarta.xml.rpc-api, but don't add to dependencies

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

BalusC
BalusC

Reputation: 1109272

No. JAX-RPC was since Java EE 6 (dec 2009) deprecated in favor of JAX-WS.

Due to this deprecation status, JAX-RPC never made it into Jakarta EE. Just migrate to JAX-WS.

See also:

Upvotes: 2

Related Questions