Link to home
Start Free TrialLog in
Avatar of roger v
roger vFlag for United States of America

asked on

Coldfusion cfsharepoint not working

I'm trying to integrate a coldfusion app with MS sharepoint. Both sites are within the intranet so it shouldn't be anything network related. I'm able to browse to the wsdl file from a browser but the cfsharepoint tag part gives following error:

Unable to read WSDL from URL: https://nri.pcd.com/books/authors/_vti_bin/Lists.asmx?wsdl.

***********************************************************************************
Here's my cf code snippet:
***********************************************************************************
<cfscript>
      login = {domain="https://nri.pcd.com",
      username="uname", password="pwd"};
</cfscript>

<cfoutput>
      
            <cfsharepoint action="getlistcollection"
                  wsdl="https://nri.pcd.com/books/authors/_vti_bin/Lists.asmx?wsdl"
                  login="#login#"      name="result">
</cfoutput>

<cfdump var="#result#">
Avatar of Ramkisan Jagtap
Ramkisan Jagtap
Flag of Finland image

CFInvoke can only pass basic authentication, not windows integrated authentication.

Sharepoint won't be able to downgrade to basic authentication since sharepoint needs to know who is calling the services to check authentication and authorization of the data being requested.

Your best bet here is to create an asp.net proxy service you can call with CFInvoke which will impersonate the windows authentication you need to call the sharepoint web service. Another option would be to create a C# com object which makes the authenticated call and passes the information back to CF when you call the C# com object from CF.

Source: https://stackoverflow.com/questions/168487/unauthorized-sharepoint-wsdl-from-coldfusion-8
Avatar of roger v

ASKER

@Ramkisan Jagtap,

Thx for the response. I have 2 questions:

1. The stack article refers to cfinvoke - I'm using <cfsharepoint> (on ColdFusion 11), and according to what I read on adobe docs, <cfsharepoint> can do both basic as well as ntlm auth. The sharepoint that I'm trying to connect to is Sharepoint 2010, which has both basic and ntlm. Does this mean that <cfsharepoint> won't work, and <cfinvoke> has to be used?

2. I'm working on a hosted environment where creating proxy services or com objects is not possible/prohibited, thereby making <cfsharepoint> the only viable option. Is this a wrong assumption on my part?

thanks
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.