title: Java 11 package javax.xml.soap does not exist
body: <p>I'm trying to create a simple message using <a href="https://docs.oracle.com/javase/8/docs/api/javax/xml/soap/package-summary.html" rel="noreferrer">SOAP</a>:</p>
  
  <pre class="lang-java prettyprint-override"><code>MessageFactory mf = MessageFactory.newInstance();
  SOAPMessage message = mf.createMessage();
  </code></pre>
  
  <p>When I build the project with <strong>Java 8</strong> it's fine, but building it with <strong>Java 11</strong> fails with a compilation error:</p>
  
  <pre><code>package javax.xml.soap does not exist
  </code></pre>
  
  <p>How do I fix the issue?</p>