title: How to consume secured API from IBM MobileFirst using http adapters
body: <p>I'm trying to invoke an API which is having authentication. I'm getting an error like "<strong>Http request failed: java.net.SocketTimeoutException:Read timed out</strong>".</p>
  
  <p>Generally when I run this url(<a href="http://samirkantalenka-test.apigee.net/zsubmitalv-3" rel="nofollow">http://samirkantalenka-test.apigee.net/zsubmitalv-3</a>) on browser, It will ask for username and password. If I enter those credentials then it returns json data. </p>
  
  <p>How can I give these credentials in Mobilefirst Http Adapters? Can any one help me out.</p>
  
  <p>Adapter.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;!--
  Licensed Materials - Property of IBM
  5725-I43 (C) Copyright IBM Corp. 2011, 2013. All Rights Reserved.
  US Government Users Restricted Rights - Use, duplication or
  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
   --&gt;
  &lt;wl:adapter name="Apigee"
  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;Apigee&lt;/displayName&gt;
  &lt;description&gt;Apigee&lt;/description&gt;
  &lt;connectivity&gt;
      &lt;connectionPolicy xsi:type="http:HTTPConnectionPolicyType"&gt;
          &lt;protocol&gt;http&lt;/protocol&gt;
          &lt;domain&gt;samirkantalenka-test.apigee.net&lt;/domain&gt;
          &lt;authentication&gt;
              &lt;basic/&gt;
              &lt;serverIdentity&gt;
                  &lt;username&gt;{myusername}&lt;/username&gt;
                  &lt;password&gt;{mypassword}&lt;/password&gt;
              &lt;/serverIdentity&gt;
  
          &lt;/authentication&gt; 
          &lt;loadConstraints maxConcurrentConnectionsPerNode="2" /&gt;
      &lt;connectionTimeoutInMilliseconds&gt;30000&lt;/connectionTimeoutInMilliseconds&gt;
          &lt;socketTimeoutInMilliseconds&gt;30000&lt;/socketTimeoutInMilliseconds&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="getStories" connectAs="server"/&gt;
  
  
  
      &lt;/wl:adapter&gt;
  </code></pre>
  
  <p>Here I'm getting error like "<strong>cvc-complex-type.2.4.a: Invalid content was found starting with element 'loadConstraints'. One of '{proxy, 
   sslCertificateAlias, sslCertificatePassword, maxConcurrentConnectionsPerNode}' is expected.</strong>"</p>