title: IBM Mobilefirst: Issue in calling a service from adapter with basic auth
body: <p>I have a service call thats being called from my adapter and that particular service call is being protected by Basic auth. So I am adding the following code in adapter XML to help all the service calls from this adapter to do the Basic Auth validation.</p>
  
  <pre><code>&lt;wl:adapter name="adapter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:wl="http://www.ibm.com/mfp/integration" xmlns:http="http://www.ibm.com/mfp/integration/http"&gt;
  
      &lt;displayName&gt;adapter&lt;/displayName&gt;
      &lt;description&gt;adapter&lt;/description&gt;
      &lt;connectivity&gt;
          &lt;connectionPolicy xsi:type="http:HTTPConnectionPolicyType"&gt;
              &lt;protocol&gt;http&lt;/protocol&gt;
              &lt;domain&gt;myweb.com&lt;/domain&gt;
              &lt;!-- &lt;port&gt;443&lt;/port&gt; --&gt;
  
              &lt;connectionTimeoutInMilliseconds&gt;30000&lt;/connectionTimeoutInMilliseconds&gt;
              &lt;socketTimeoutInMilliseconds&gt;30000&lt;/socketTimeoutInMilliseconds&gt;
  
              &lt;authentication&gt;
                  &lt;basic /&gt;
                  &lt;serverIdentity&gt;
                      &lt;username&gt;123-123-123-123&lt;/username&gt;
                      &lt;password&gt;12334445!&lt;/password&gt;
                  &lt;/serverIdentity&gt;
  
              &lt;/authentication&gt;
  
              &lt;maxConcurrentConnectionsPerNode&gt;50&lt;/maxConcurrentConnectionsPerNode&gt;
              &lt;!-- Following properties used by adapter's key manager for choosing specific 
                  certificate from key store &lt;sslCertificateAlias&gt;&lt;/sslCertificateAlias&gt; &lt;sslCertificatePassword&gt;&lt;/sslCertificatePassword&gt; --&gt;
          &lt;/connectionPolicy&gt;
      &lt;/connectivity&gt;
  
      &lt;procedure name="procedure1" securityTest="wl_unprotected"
          connectAs="server" /&gt;
      &lt;procedure name="procedure2" securityTest="wl_unprotected"
          connectAs="server" /&gt;
  &lt;/wl:adapter&gt;
  </code></pre>
  
  <p>When i trying hitting service by using the above xml it gives me Invalid Authorization. But when i added it manually to the header of my service call in the js code it gets through as below.</p>
  
  <pre><code>       headers: {Authorization: "Basic MTIzLTEyMy0xMjMtMTIzOjEyMzQ1NiE="}
  </code></pre>
  
  <p>can some body help me in understanding what could be the issue. Will there be some issue <strong>if i keep special characters in the XML. How do i make it work.</strong></p>
  
  <p>Thankyou.</p>