title: How to invoke an Integration Service in Kony Studio that is created in the MobileFabric Console?
body: <p>I am trying to invoke an integration service in a JavaScript module in Kony Studio. Previously I created the service "TestService" with the operation "getPostsByUserID" in the MobileFabric console. The service calls an API that returns an JSON object. I want to use the returned data in my app.<br>
  If I test the app on the simulator I get the error <strong>Invalid serviceName</strong> from the Kony SDK.<br><br>
  I've met the following prerequisites:</p>
  
  <ol>
  <li>The app is published to the Kony Server.</li>
  <li>I initialized the Kony SDK.</li>
  <li>The names of the service and the operation are correct. I checked this several times.</li>
  </ol>
  
  <p>Does anybody have an advice what I missed?</p>
  
  <pre><code>function getPosts () {
      serviceName = "TestService";
      integrationObj = client.getIntegrationService(serviceName);
      integrationObj.invokeOperation("getPostsByUserID", {}, {userID: 1}, successCallback, failureCallback);
  
      function successCallback (res) {
          alert('success: ' + res);
      }
  
      function errorCallback (res) {
          alert('error' + res);
      }
  }
  </code></pre>
  
  <p><code>client</code> is the intialized Kony SDK object.</p>