title: TypeError: (intermediate value)(intermediate value).success is not a function (angular)
body: <p>I have difficulties understanding this error... I dont quite understand why its not a function....</p>
  
  <pre><code>angular.module('mkApp').factory('mkService', function ($http, $log) {
    function getLookUp(successcb) {
      $http = ({
          method: 'GET',
          url: 'api/Entries/'
  
      }).success(function (data, status, header, config) {
          successcb(data);
      }).
      error(function (data, status, header, config) {
          $log, warn(data, status, header, config);
      });
    };
  
    return {
      lookUp: getLookUp
    }
  });
  
  angular.module('mkApp').controller('mkControler', function ($scope, mkService) {
    mkService.lookUp(function (data) {
      $scope.ddl = data;
      console.log(ddl);
  
    });
  });
  </code></pre>
  
  <p>And here is my HTML</p>
  
  <pre><code>&lt;div ng-app="mkApp"&gt;
      &lt;div ng-controller="mkControler"&gt;            
         &lt;table&gt;
             &lt;tr&gt;
                 &lt;td&gt; First Name&lt;/td&gt;
                 &lt;td&gt; Last Name&lt;/td&gt;
             &lt;/tr&gt;
             &lt;tr&gt;
                 &lt;td&gt;&lt;input type="text" /&gt;&lt;/td&gt;
                 &lt;td&gt;&lt;input type="text" /&gt;&lt;/td&gt;
             &lt;/tr&gt;
             &lt;tr&gt;
                 &lt;td&gt;
                     &lt;select&gt;&lt;/select&gt;
                 &lt;/td&gt;
             &lt;/tr&gt;
         &lt;/table&gt;
  
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My idea is to use data to populate drop down. It does bring me XML back. 
  Any help please i've been looking everywhere now.
  Thank you.</p>