title: SOAP Namespace with http URI
body: <p>During an upgrade of a 3rd party SOAP API, the vendor has changed their responses to return</p>
  
  <pre><code>&lt;env:Envelope xmlns:env='https://schemas.xmlsoap.org/soap/envelope/'&gt;...
  </code></pre>
  
  <p>instead of previously</p>
  
  <pre><code>&lt;env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'&gt;... 
  </code></pre>
  
  <p>Note the change from http to https.</p>
  
  <p><em>Is this valid in any way?</em> </p>
  
  <p>Background: Our Java client code tries to check for a SOAPFault via a call through com.sun.xml.messaging.saaj.soap.MessageImpl.getSOAPBody().hasFault() (saaj-impl-1.3.jar) which fails because the JavaEE standard specifies URI_NS_SOAP_ENVELOPE as the http URI. When the API's https response is returned, the URIs don't match and </p>
  
  <pre><code>Jan 16, 2017 3:47:05 PM com.sun.xml.messaging.saaj.soap.SOAPPartImpl lookForEnvelope
  SEVERE: SAAJ0513: Unable to create envelope from given source because the namespace was not recognized
  </code></pre>
  
  <p>is returned.</p>
  
  <p><em>As a workaround, could the SAAJ library behaviour be overridden to force use the http SOAP URI?</em></p>
  
  <p>Thank you.</p>