title: Error with JAX-WS Couldn't create SOAP message due to exception: XML reader error: WstxUnexpectedCharException: Unexpected character '['
body: <p>It´s showing the following error and I have not idea why, can someone help me?</p>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>Couldn't create SOAP message due to exception: XML reader error:
    com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '['
    (code 91) in prolog; expected '&lt;' at [row,col {unknown-source}]: [1,1]</p>
  </blockquote>
  
  <p>The function I´m making the call is:</p>
  
  <pre><code>private static ContractTermsDownloadReply contractTermsDownloadOperation(
          ContractTermsDownloadRequest body) {
      ContractTermsDownload service = null;
      try {
          URI uri = new URI("https://companyname.com/ContractTermsDownload");
          service = new ContractTermsDownload(uri.toURL());
      } catch (Exception ex) {
          Logger.getLogger(JavaApplication1.class.getName()).log(
                  Level.SEVERE, null, ex);
      }
  
      ariba.sourcing.vrealm_1461.ContractTermsDownloadPortType port = service
              .getContractTermsDownloadPortType();
      BindingProvider prov = (BindingProvider) port;
      prov.getRequestContext().put("authorization",
              "Basic User2011:Password2011");
  
      try {
          ContractTermsDownloadReply reply = port
                  .contractTermsDownloadOperation(body);
          return reply;
      } catch (Exception exc) {
          System.out.println(exc.getMessage());
      }
      return null;
  } 
  </code></pre>