I'm trying to integrate ColdFusion version 2016 application with SharePoint. I have a ColdFusion app that is trying to access a csv file on a SharePoint site. I'm able to access the csv file on SharePoint when I pass in the URL into a browser, but unable to access it from CF. I tried several different combinations of the tag but keep getting one of the following errors:
1) '401 UNAUTHORIZED'
2) Error: org.apache.http.conn.HttpHostConnectException: Connect to
DomainName:80
(Note: In the second error, I masked the actual domain name for security purposes).
I confirmed with the SharePoint admin that the domain name, username and password are set up correctly and he did confirm the same. Has anyone tried this type of integration and run into the same issues, and how was it solved?
Code for a couple of the combinations of cfsharepoint that I tried is below:
Using cfscript:
<cfscript>
loginStruct = {domain="xxxxx", username="abc123", password="xyz$566",authtype="ntlm", wsdl="https://mywebsite.com/sites/xxx-Home/_vti_bin/Lists.asmx?wsdl"};
cfsharepoint(action="getlistcollection", login=loginStruct, name="myResult");
writeDump(myResult);
//writeDump(loginStruct);
</cfscript>
Using :
<cfsharepoint action="getlistcollection"
WSDL="https://mywebsite.com/sites/xxx-Home/LED_Docs/Forms/AllItems.aspx?WSDL"
username="abc123"
domain="xxxx"
password="xyz$566"
name="listCollection"/>
authtype="NTLM"
<CFDUMP var="#listCollection#">