Skip to main content
Participant
November 13, 2008
Question

Calling .NET web service through coldfusion

  • November 13, 2008
  • 3 replies
  • 918 views
I have written a WEB SERVICE (to download a file from SharePoint) in .NET and when i call that web service through coldfusion file......... i am getting the below error:

Cannot perform web service invocation DownloadFiles_test.
The fault returned when invoking the web service operation is:

AxisFault
faultCode: { http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
401 UNAUTHORIZED
{ http://xml.apache.org/axis/}HttpErrorCode:401
''


The error occurred in D:\SiSystemsFile\Webservices\WebSites\MG2Code\MG2Code_DHK\ZZTest\DownloadFiles.cfm: line 31

29 : <cfinvoke webservice=" http://10.1.15.224/one.asmx?wsdl" method="DownloadFiles_test" returnvariable="aresult" refreshWSDL="yes">
30 : <cfinvokeargument name="getFileName" value="woody query.txt" />
31 : <cfinvokeargument name="docName" value="woody query.txt" />
32 : </cfinvoke>
33 :


Please do provide a solution for this
    This topic has been closed for replies.

    3 replies

    Participant
    December 12, 2008
    I have solved the problem...

    The issue was the admin settings in the application pool that had to be mapped to the virtual directory in the IIS...

    Thanks for your response.

    Dhivya
    Inspiring
    November 13, 2008
    You probably need to provide a user name and password to access the web service. As Dan Bracuk pointed out the 401/unauthorized return value points to this. Also be aware that CF only supports basic authentication for web services so you'll need to make sure that your sharepoint site allows this.
    Participant
    November 14, 2008
    Thanks for the reply

    I have changed the settings in IIS and while calling the web service from coldfusion, i have included the user name adn password of the administrator. But still it shows the same error.

    can u pls explain in detail?
    Inspiring
    November 13, 2008
    The word, "unauthorized" might be significant.