Skip to main content
Known Participant
March 10, 2022
Question

CFSharePoint

  • March 10, 2022
  • 1 reply
  • 390 views

Hello All,
My name is HP. I am working for Leidos and our team is supporting one of the FAA's CF applications.
I am assigned to find the way to make connection from our CF application to a sharepoint server.
I have never done it (using CFSharepoint) before.
The sharepoint administrator provides me with User Name, Password and the URL. Manualy I am able able to log in this URL with User Name, Password they provide me.
however the below is my code is to hit/connect their URL give me an error

<cfsharepoint action="getlistitems"
WSDL="https://xxx.xxx.xxx/ajg/apt-archive/Lists/JAT/AllItems.aspx"
username="xxxx"
domain="https://xxx.xxxx.xxx"
password="xxxx"
authtype="Basic"
name="listCollection"/>
<CFDUMP var="#listCollection#">


This is the error I got when I ran the above codes.

Unable to read WSDL from URL: https://xxx.xxx.xxx/ajg/apt-archive/Lists/JAT/AllItems.aspx.
Error: 401 Unauthorized. It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct.

I wonder if you can help me on what should I fix in my codes or something that needs to be done from Sharepoint server side to allow me to connect ot it?

Thank you very much for your time

    This topic has been closed for replies.

    1 reply

    Priyank Shrivastava.
    Community Manager
    Community Manager
    March 10, 2022

    [Moderation]

    Removed the domain details from the post.

     

    Thanks, Priyank Shrivastava
    pham_mnAuthor
    Known Participant
    March 11, 2022

    I removed the attribute domain, then I got this error

     It seems I have to place domain in the code

    Thank you for your time

    BKBK
    Community Expert
    Community Expert
    March 15, 2022

    Hi @pham_mn ,

    Is there perhaps a misunderstanding? Your code does need the domain details. I think what Priyank meant was for you to remove such private details from your post in this forum. 

     

    As for suggestions, what happens when you do as ColdFusion says and just open the WSDL URL in a browser? That is a good test.