title: Jersey messagebodywriter not found for xml
body: <p>I make a request:
  <code>Response response = target.request(MediaType.APPLICATION_XML_TYPE).post(Entity.xml(inputData));</code></p>
  
  <p>This generates an error:</p>
  
  <pre><code>org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/xml
  </code></pre>
  
  <p>From other answers here I have gathered that it might be a dependency issue.</p>
  
  <p><a href="https://stackoverflow.com/a/30820037/3592255">https://stackoverflow.com/a/30820037/3592255</a></p>
  
  <p>I already have this dependency though:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
          &lt;version&gt;2.18&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-media-moxy&lt;/artifactId&gt;
          &lt;version&gt;2.18&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;2.18&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-container-servlet-core&lt;/artifactId&gt;
          &lt;version&gt;2.18&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-media-jaxb&lt;/artifactId&gt;
          &lt;version&gt;2.18&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Any input would be appreciated</p>