cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
dudilevi
Nintex Newbie

Error 500 - Nintex forms calling the web service GetRunningWorkflowTasksForCurre

Hi,

We recently upgrade to sp2013 and autontication method is now working with claims kerberos.
We also purcahse Nintex Forms and I facing error 500 when i'm calling GetRunningWorkflowTasksForCurrentUserForListItem web service.

here is the javascript block i'm using in my Nintex Form:


function fnGetTaskId()
{
var soapEnv = " <?xml version='1.0' encoding='utf-8'?> \
<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
  <soap:Body> \
    <GetRunningWorkflowTasksForCurrentUserForListItem xmlns='http://nintex.com'> \
      <itemId>ID</itemId> \
      <listName>List Name</listName> \
    </GetRunningWorkflowTasksForCurrentUserForListItem> \
  </soap:Body> \
</soap:Envelope>";


  NWF$.ajax({
        beforeSend: function (request)
        {
          request.setRequestHeader("SOAPAction", "http://nintex.com/GetRunningWorkflowTasksForCurrentUserForListItem");
        },
        url: "http://bshare/portal/home/formscenter/_vti_bin/NintexWorkflow/Workflow.asmx",
        type: "POST",
        dataType: "xml",
        data: soapEnv,
        complete: processResultStartWorkflow,
        contentType: "text/xml; charset=\"utf-8\"",
        error: function (xhr, ajaxOptions, thrownError)
        {
          alert(xhr.status);
          alert(thrownError);
        }
  });
}

function processResultStartWorkflow(xData, status) {
    // disable the start workflow button
    NWF$('.cssStartWorkflowButton').attr('disabled', true);
 fnApproveTaskById();
}

//for testing i'm using hardcoded values
function fnApproveTaskById()
{
var soapEnv = "<?xml version='1.0' encoding='utf-8'?> \
<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
  <soap:Body> \
    <ProcessTaskResponse2 xmlns='http://nintex.com'> \
      <comments></comments> \
      <outcome>Approved</outcome> \
      <spTaskId>2</spTaskId> \
      <taskListName>List Name</taskListName> \
    </ProcessTaskResponse2> \
  </soap:Body> \
</soap:Envelope>";

NWF$.ajax({
        beforeSend: function (request)
        {
          request.setRequestHeader("SOAPAction", "http://nintex.com/ProcessTaskResponse2");
        },
        url: "http://bshare/portal/home/formscenter/_vti_bin/NintexWorkflow/Workflow.asmx",
        type: "POST",
        dataType: "xml",
        data: soapEnv,
        complete: processResultEndWorkflow,
        contentType: "text/xml; charset=\"utf-8\"",
        error: function (xhr, ajaxOptions, thrownError)
        {
          alert(xhr.status);
          alert(thrownError);
        }
  });

}

function processResultStartWorkflow(xData, status) {
    // disable the start workflow button
    NWF$('.cssStartWorkflowButton').attr('disabled', false);
}


Please note that the following returns my user as:
[57c55872-4af9-41c9-8d33-441b886eddd4] - Querying SharePoint for userprofile data for user :i:0#.w|bezeqint\dudil


By The way - even when i'm trying to submit envelope using SOAPUI im getting - 401 unautorized!

I was Trying to look for a solution in many forums but still nothing.

I will much appreciate your help solving this problem.

Thanks,
Dudi Levi

0 Kudos
Reply