Use jakarta.xml.soap.SOAPFactory to create SOAPElements

MSAL

XML Web Services prior to 4.0 provides the deprecated SOAPElementFactory class, which is removed in XML Web Services 4.0. The recommended replacement is to use jakarta.xml.soap.SOAPFactory to create SOAPElements.

org.openrewrite.java.migrate.jakarta.RemovedSOAPElementFactory
mod run . --recipe=org.openrewrite.java.migrate.jakarta.RemovedSOAPElementFactory

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change method name jakarta.xml.soap.SOAPElementFactory create(String,..) to createElement
  2. Change method name jakarta.xml.soap.SOAPElementFactory create(jakarta.xml.soap.Name) to createElement
  3. Change type SOAPElementFactory to SOAPFactory