title: Getting DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true
body: <p>I'm getting</p>
  <blockquote>
  <p>DOCTYPE is disallowed when the feature &quot;http://apache.org/xml/features/disallow-doctype-decl&quot; set to true<br />
  line 1 of <a href="https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl" rel="nofollow noreferrer">https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl</a></p>
  </blockquote>
  <p>error when using <strong>wsimport</strong> to generate java classes off of a wsdl file.</p>
  <p>Is there any workaround or solution to this issue, specifically when using wsimport?</p>
  <p>Following is the command I used as well as the complete response I got from wsimport:</p>
  <pre><code>wsimport&quot; -Xnocompile -extension -clientjar my.jar -d . -generateJWS https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl   
  </code></pre>
  <p>parsing WSDL...</p>
  <p>[ERROR] DOCTYPE is disallowed when the feature &quot;http://apache.org/xml/features/disallow-doctype-decl&quot; set to true.
  line 1 of <a href="https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl" rel="nofollow noreferrer">https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl</a></p>
  <p>[ERROR] DOCTYPE is disallowed when the feature &quot;http://apache.org/xml/features/disallow-doctype-decl&quot; set to true.</p>
  <p>Failed to read the WSDL document: <a href="https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl" rel="nofollow noreferrer">https://core4.gatewayedi.com/v1/caqhcoreiv/caqhcorev4.svc?wsdl</a>, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not wsdl:definitions.</p>
  <p>[ERROR] Could not find wsdl:service in the provided WSDL(s):</p>
  <p>At least one WSDL with at least one service definition needs to be provided.</p>
  <p>Failed to parse the WSDL.</p>
  <p>Downloading the WSDL and associated metadata</p>
  <pre><code>    Exception in thread &quot;main&quot; java.lang.IllegalStateException: DOMStreamReader: Calling next() at END_DOCUMENT
      at com.sun.xml.internal.ws.streaming.DOMStreamReader._next(DOMStreamReader.java:764)
      at com.sun.xml.internal.ws.streaming.DOMStreamReader.next(DOMStreamReader.java:737)
      at com.sun.xml.internal.ws.util.xml.XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:92)
      at com.sun.tools.internal.ws.util.WSDLFetcher.fetchFile(WSDLFetcher.java:121)
      at com.sun.tools.internal.ws.util.WSDLFetcher.fetchWsdls(WSDLFetcher.java:86)
      at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:437)
      at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
      at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
      at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)
  </code></pre>