title: type error: cannot call method 'invoke procedure' of undefined in worklight
body: <p>this is my js function... </p>
  
  <pre><code>var invocationData={
                  adapter : 'Health_Care',
                  procedure: 'update',
                      parameters:[uname,cp,np]
              };
  
              WL.Client.invokeProcedure(invocationData,
              {
                  onSuccess: function(){
                       alert("Password successfully changed");
                  },
                    onFailure: function(){
                        alert("failed");
                    }
  
              }       
              );
  </code></pre>
  
  <p>my adapter is...</p>
  
  <pre><code>var updateStatement = WL.Server.createSQLStatement("UPDATE EMPLOYEE SET PASSWORD=? WHERE UID=? AND PASSWORD=?");
  </code></pre>
  
  <p>function update(pid,curP,newP) {</p>
  
  <pre><code>return WL.Server.invokeSQLStatement({
      preparedStatement : updateStatement,
      parameters : [newP,pid,curP]
  
  });
  </code></pre>
  
  <p>}</p>
  
  <p>my adapter is alone working when i invoke adapter... but with java script i'm getting the above mentioned error for all the pages....</p>