cancel
Showing results for 
Search instead for 
Did you mean: 

activiti-rest/sevice/login (Version: 5.13)

frankpeng
Champ in-the-making
Champ in-the-making
The flowing is jquery ajax sent request codes: 
  $.ajax({
      type: 'post',
      url: '127.0.0.1:8080/activiti-rest/sevice/login',
      dataType: 'jsonp',
      data: {'userId':'kermit','password':'kermit'},
      contentType: 'application/json',
      cache: false,
      complete: function(xhr,ts) {
          $('body').append(JSON.stringify(xhr));
      },
      success: function(xhr,ts) {
          alert(JSON.stringify(xhr));
      }
    });

The Page return result is:
{"readyState":4,"responseJSON":{"code":405,"msg":"The method specified in the request is not allowed for the resource identified by the request URI"},"status":200,"statusText":"load"}

Why?
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
sevice -> "service"

frankpeng
Champ in-the-making
Champ in-the-making
Sorry, I have reviewed the codes, but result is same.

frankpeng
Champ in-the-making
Champ in-the-making
when I input "http://127.0.0.1:8080/activiti-rest/service/process-engine" , popup a login window, input user name & password and submit the window, the page return: {"name":"default","resourceUrl":"file:/E:/Tomcat/webapps/activiti-rest/WEB-INF/classes/activiti-context.xml","exception":null,"version":"5.13"}.

jbarrez
Star Contributor
Star Contributor