I am using Nintex Workflow 2013 (126.96.36.199) with SharePoint 2013 on Windows Server 2008R2.
What I am trying to do is to use a Web Request action make a call to our products' (Ephesoft Enterprise) REST APIs.
If I run a test against an online test API site, with no credentials needed, this tests OK.
I then move on to the REST APIs from the Ephesoft product. I first do a test outside of Nintex to make sure I can connect and get the expected results. Once I have authenticated, I see the results I expect.
When I then go into Nintex Workflow, and run the same kind of test (same URL, same credentials I used outside of Nintex), I receive a 405 Method Not Allowed error.
My first thought is, how does Nintex send the credentials, as if I send in bad credentials, I expect the same result.
when you say "Once I have authenticated", what kind of authentication do you use ?
Did you test your action in real condition, not in "execute now" ?
Out of the box, Ephesoft Enterprise uses Apache Tomcat authentication. This authentication method uses a username and password. No domain is required. Although Ephesoft Enterprise can use Active Directory or another LDAP provide, I have not set this up.
I have configured the workflow to run, and it does when I add a new document to the document library. The workflow runs without error, but the task I configured perform it's work. I have the results of the Web request sent to a variable, and then view it in a Log in history list action. The response is one I expect if the API call is not authenticated.
Our Engineering team looked into this issue, and found a workaround. I will include a summary below, in case this helps out anyone else.
Our Engineering team found that Nintex was using NTLM authorization by default. However, our Rest APIs use basic authorization. It did not appear that Nintex transmitted the authorization headers in the request to our Rest APIs.
Therefore, the workaround was to first identify the authorization headers, then added the authorization as a header in the Web Request action.
After doing this, the Web Request action works.
Cliff, I'm trying to use a 3rd party REST service, and may be encountering the same issue. Can you provide a screen shot of how you setup the web request?