Getting "401 Unauthorized"  status code while calling SSRS 2008

Hi,
I am getting this response while calling report server service hosted in other machine where as i got success response if i call SSRS sever hosted in my local:
This is the code i am using:
<cfset str = "/test/Report1"/>
<cfsavecontent variable="soapvar" >
    <cfoutput>
        <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <soap:Body>
            <DeleteItem xmlns="http://www.microsoft.com/sql/ReportingServer">
                <item>#str#</item>
            </DeleteItem>
        </soap:Body>
    </soap:Envelope>
    </cfoutput>
</cfsavecontent>
<cfhttp
    url="http://192.168.10.251/reportserver/reportexecution2005.asmx"
    method="post"
    result="httpResponse"
    username="Domain_name\username"
    password="password"
    getasbinary="yes">
    <cfhttpparam
        type="xml"
        value="#trim( soapvar )#"/>
</cfhttp>   
<cfdump var="#httpResponse#">
Same code is working fine whem i call SSRS server in my local

Hi,
I am getting this response while calling report server service hosted in other machine where as i got success response if i call SSRS sever hosted in my local:
This is the code i am using:
<cfset str = "/test/Report1"/>
<cfsavecontent variable="soapvar" >
    <cfoutput>
        <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <soap:Body>
            <DeleteItem xmlns="http://www.microsoft.com/sql/ReportingServer">
                <item>#str#</item>
            </DeleteItem>
        </soap:Body>
    </soap:Envelope>
    </cfoutput>
</cfsavecontent>
<cfhttp
    url="http://192.168.10.251/reportserver/reportexecution2005.asmx"
    method="post"
    result="httpResponse"
    username="Domain_name\username"
    password="password"
    getasbinary="yes">
    <cfhttpparam
        type="xml"
        value="#trim( soapvar )#"/>
</cfhttp>   
<cfdump var="#httpResponse#">
Same code is working fine whem i call SSRS server in my local

Similar Messages

  • Getting 401 Unauthorized error when accessing Resource History in OIM11gR2

    Hi,
    I am receiving the following error (In the Resource Histroy Popup window) when I tried to access the Resource History for completing a User provisioning (DB Resource using Oracle DB connector).
    I have setup OIM 11g R2 on Windows 2008 Server Enterprise R2 with Oracle DB 11g R2
    Error 401--Unauthorized
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.2 401 Unauthorized
    The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.
    I have read in other forum links that we need to configure the Authorization policies from OES APM console.
    I have setup the APM console, but I am not sure how to configure this related to my scenario
    I couldn't figure out what policies to be configured for my requirement under Application---->OIM----->oimdomain----->Authorization policies in APM console.
    I request experts to help on this as I am completely stuck here.
    Thanks,
    Madhu

    Hi user9212679,
    I am able to resolve the issue by reconfiguring the Domain properly with my FQDN of my VM.
    Earlier I was using my IP Address instead of FQDN and but the OIM is taking the FQDN of the machine and throwing 401 Unauthorized error.
    But I appreciate you help as it gave me clue of what could be wrong.
    Thanks,
    Madhu

  • Get "401 Unauthorized" for secured pages when following the tutorial

    I tried to configure security for a page in JDeveloper by following the steps in 10.1.3.2 WebCenter Framework Tutorial (http://download.oracle.com/docs/cd/E12529_01/webcenter.1013/b31072/tt_security.htm).
    I copied the system-jazn-data.xml from the sample. Then followed the steps in the tutorial except that I don't have the Welcome page but only the secured Mypage.jspx which is protected as instructed in the tutorial. Then I ran Mypage.jspx. I was directed to the login page correctly. But after I entered the correct username/password for any user, it gave me "401 Unauthorized" error. I'm pretty sure the username/password is correct because it'll direct me back to the login page when they're wrong.
    I tried it a few times but it always failed with the same error. Any help is greatly appreciated.
    -- Cindy

    Hi,
    if you followed a WebCenter tutorial then it would make sense to ask the question on the WebCenter forum
    WebCenter Portal
    Frank

  • Getting tha java script error while calling OAF forms in ADF

    Hi ,
    I am trying to get/access the Oracle forms in ADF page.
    I am following http://static.commit-consulting.com/oraformsfaces developers guide for guidlines.
    while runnign my page getting the error in popup look like java script error.
    the pop up contente is :
    Failed to execute java script
    Check for JavaScript errors, if the Forms server is running and if your browser can download a javaScript from http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces
    http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces is my server EBS server where oracle forms exist.
    Please help me on this.
    Thanks,
    MadhavaReddy

    You're probably better off asking the OraFormsFaces people for help

  • How to get the own schema data while calling the other schema's Procedure

    Hello Experts,
    I'm Sanjit, new to OTN forum.
    I'm using Oracle 10g 10.1.0.2.0 database. Another user Sush has created one procedure proc_1 like
    create or replace procedure proc_1
    as
    v_total number;
    begin
    select sum(amt) into v_total from trans_master where dot
    between add_months(sysdate,-3) and sysdate;
    dbms_output.put_line('last three months total transactions is: '||v_total);
    end proc_1;
    He has the Trans_master table and having 280 records and I have the same Trans_master table with 430 records
    inserted in last 3 months. He has granted execute privileges on the procedure Proc_1 to me. When I call the procedure
    I cannot call it directly like my own schema procedures: Exec Proc1;
    I am calling like : Exec Sush.Proc1 to get the result. My issue is: when the procedure is called,
    it is accessing the data from the Sush schema Trans_master table with 280 records total, but I want
    the procedure to get the total amount of transaction of 430 records from my own Trans_master table.
    Please resolve my issue which would be a great help. And is there any way to call the procedure of other schema
    by not attaching the owner name of the object with it?
    Thanks
    Sanjit

    Pleast take a look at "Definer's rights and invoker's rights" in the following article:
    http://docs.oracle.com/cd/E11882_01/timesten.112/e21639/accesscntl.htm#BABDDCHC
    I guess you need to define a stored procedure with "invoker's rights".
    If this is what you are looking for will have to define it in the stored procedure that you are going to call.
    The syntax is as follows:
    create or replace procedure <yourprocedure> authid current_user ...
    ...or (the following is the default, you don't have to use the "authid definer" keywords):
    create or replace procedure <yourprocedure> authid definer ...
    ...hm

  • Returning a 0/1 status code to caller

    Hi all,
    My question is whether or not there is some way to return a value (int type) from my program to the caller where the 'caller' is actually a unix ksh script.
    Details:
    i have a starter.ksh script that contains the following:
    java MyProgram
    and I would like MyProgram to return an int (0 or 1) to starter.ksh.
    Is there a way to do this??? Heeeelp please!!!

    ksh$ java MyClass
    ... MyClass runs
    ksh$ echo $?
    0$? is the return code of the last command

  • Fantom issue - failure status code on getNXT()

    Hello all,
    I'm getting a strange status code, after calling getNXT() which is: 0xBFFF0015. I'm using Bluetooth.
    It's
    not contemplated in the list of status codes of the Fantom
    documentation, but I found another source, on NI-VISA Programmer
    Reference Manual (http://www.ni.com/pdf/manuals/370132c.pdf) the meaning of the status code (page 375): "Timeout expired before operation completed."
    The
    NXT is not connected with anything else, it is paired, Bluetooth is on.
    This problem doesn't happen all the time! Only sometimes. Does anyone
    have any clue of what it can be?
    It has also happened once with sendDirectCommand().
    I'm using the firmware 1.31 NBC/NXC enhanced.
    Thanks a lot,
    Ricardo
    PS: Tomorrow I'll check if I get the same problems with USB and I will also try previous firmwares.

    Hello Ricardo,
    What software are you using ? Which version ? What hardware are you using ?
    Thank you.
    Regards,
    Yannick.
    Yannick D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe...

  • SQL Server Reporting Service 2008 R2 - The request failed with HTTP status 401: Unauthorized.

    I got the error "The request failed with HTTP status 401: Unauthorized." when I call the Reporting Service Web Service.
    The code is very simple:
    // Initialise the reporting service Web Service
    this.RSWebService = new ReportingService2010();
    // Pass windos authentication credentials to Web Service
    this.RSWebService.Credentials = System.Net.CredentialCache.DefaultCredentials;
    // List children
    List<CatalogItem> reports = this.RSWebService.ListChildren(folder, false).ToList();
    The SQL Server is installed on a different machine (say server A) from the Web server (say server B). We are using Windows Server 2003.
    The code work fine for all the scenario below:
    i) Run locally (XP) to call the web service on the sql server
    ii) Provide the Network Credentials with the username, password, and domain when calling the web service
    iii) If the web server and sql server is using same server (i.e. not distributed)
    I'm using windows authentication and impersonation. Any idea?

    Hi Raymond,
    If I understand correctly, the issue only happens in the environment that the web server is different with the SQL Server Reporting Services server. This means the web server is a remote server of the Report Server. Windows Integrated authentication is used
    in this case. When running the web page, the 401 error occurs.
    If so, it is actually a double hop issue. The double-hop problem will usually only be an issue to those of you who write some sort of web-based code (a web application or web service) that uses impersonation.
    To fix the issue, we can configure kerberos authentication for the web application and the SQL Server Reporting Services.
    Below is a great article that has delivered many solutions to fix the issue you met:
    http://odetocode.com/articles/216.aspx
    Additionally, you can read the following article to know more about double-hop:
    http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx
    http://blogs.msdn.com/b/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT
    Thanks Jin. I believe this is the cause of the problem as well.
    I tried to register the SPN but unfortunately it still doesn't work. I'm not sure whether I'm using the correct SPN name.
    I have 3 reporting server instance on the SQL box. So the Web Service URL is like
    http://Server:80/VirtualDirectoryDev,
    http://Server:80/VirtualDirectoryTest  and
    http://Server:80/VirtualDirectoryStaging .
    What's the SPN I need to register?
    I tried
    Setspn -a http/Server:80/VirtualDirectoryDev domain\account
    and
    Setspn -a http/aerver:80 domain\account.
    But both of them are not working :(

  • In app store i get status code error - why?

    When wanting to download the App "Lessons for iMovie" in the App store, I get the message: "Status Code Error". Although my apple ID and password are valid and correct. I try to load the app from Germany. Anybody got an idea, why this message appears? And why loading the App thus is denied?

    Hello Michael Mccay,
    Thanks for using Apple Support Communities.
    From your post I understand that on March 11th you were unable to download and connect to the App Store.  The iTunes Store services were experiencing issues, specifically when trying to make purchases.  You can see the history of the downtime in the link below for March 11.  If you continue to have issues making this purchase, please let me know.
    Apple - Support - System Status
    Take care,
    Alex H.

  • SharePoint 2013 GetPermissionCollection() Asserts with 401: Unauthorized

    Good afternoon all;
    I am calling the GetPermissionCollection() web service function and passing in user credentials for a user with Full Control.
    I get the same assert if I set UseDefaultCredentials to true.
    The call is asserting with the following message: "The request failed with HTTP status 401: Unauthorized."
    If I call the same web service function on a SharePoint 2010 server, the request does not assert.
    I have looked at the permissions on SharePoint 2013 and don't see anything specific to this issue.
    Let me know if I need to provide more info.

    Hi,
    According to your post, my understanding is that you want to use GetPermissionCollection() but get 401: Unauthorized error.
    Please make sure you at least have full control permission.
    The issue should be caused by that the client application is not the same domain with the SharePoint farm, or the credential passed is invalid.
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/office/en-US/14740b0b-29f8-4742-8631-9bdcd93db4bc/permissionsgetpermissioncollection-throws-the-request-failed-with-http-status-401-unauthorized?forum=sharepointgeneralprevious
    In addition, this indicates that Anonymous access has been disabled for the Webservice.
    We can resolve this issue by either of the following ways:
    1. Enabling Anonymous Access in the IIS Directory Security
    2. Programattically assigning the Credential Cache
    More information:
    ASP.NET Webservices: "The request failed with HTTP status 401: Access Denied." Error
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • SOAP Rx Adapter... 401 Unauthorized.. Content Type: Text/HTML

    Hi,
    I get 401 unauthorized error while trying to invoke Webservice using Receiver SOAP Adapter..
    I know this error is b'cos Content-type = text/html instead of text/xml... So i used the MessageTransform bean with the required parameters... I even downloaded SOAP sniffer tool (suggested by Stefan grube & the log even says content type as text/html).. But still i keep getting text/html error...
    I don't have any problem invoking from my PI Server using SOAP testing tool.. I don't have a proxy between PI & Webservice as they are in the same network. I am able to reach the webservice but is failing b'cos of 'text/html'
    I am on PI7.1. Find the screenshots of the error in the below location...
    http://picasaweb.google.com/siva.maranani/SOAP_RxAdapter#5361872782883678738
    http://picasaweb.google.com/siva.maranani/SOAP_RxAdapter#5361872786622656386
    -Siva Maranani

    >
    Siva Maranani wrote:
    > I was able to use connect to Webservice using SOAP test tool ( on PI server) using the username/password. When i tested it it was sucess (I analyzed Header params- Content-type - text/xml). When i changed it to text/html, it throws an error... (not exactly 401 unauthorized.. but a different one)
    >
    > Even after i had the module, i am still not sure why it still compalins about Content-Type Text/HTML??
    >
    > -Siva Maranani
    it seems odd that you have the 401 error throwing up.
    one suggestion, if your network has a proxy, have you given the particulars in the adapter?
    ref:
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • AS2 Error: Transport status code: 403

    Dear SAP experts,
    Currently, our Trading Partner is sending messages to our server via HTTPS, AS2 connection.
    Our Trading Partner is getting error, Transport status code: 403.
    I've checked our AS2 adapter logs (SAP PI), and it says,
    Error in unkown channel: (No session available) >> Error type: LOGICAL_ERROR >> Error date: 1/14/10 7:28 AM >> Description: Inbound communication from ZZ-TRADINGPARTNER to 14-8410240001002 not allowed: com.seeburger.as2.exception.AS2PluginException: Failed to get inbound configuration from DATABASE. [1/14/10 7:28 AM]
    TRADINGPARTNER --> Sender ILN (Trading Partner)
    8410240001002 --> Receiver ILN (SAP PI - our server)
    Kindly advise where the issue resides.
    Is it from Trading Partner's configuration?
    Thanks very much!
    Gerberto

    It could be related to missing configuration at your side. Have you created the sender agreement properly? It could be problem with incorrect use of party while creation of sender agreement.
    Regards,
    Prateek

  • Job status code in RW_SERVER_JOB_QUEUE

    Hi,
    While running a report, In current jobs queue manager of the admin portal, the status of the job is dispalyed as "Opening the report"(status code is 2), but in the RW_SERVER_JOB_QUEUE table status_code is updated as 1 (ie waiting in the queue) until the job run successfully/terminated.
    RW_SERVER_JOB_QUEUE table status code is different from the Queue Manager of the Admin portal.
    How to update the correct status code in the rw_server_job_queue table?
    i am able to get the current status code of all the jobs using the rwservlet/showjobs command.
    Please help me..
    Thanks!
    Regards,
    Deena

    Hi!!
    I am facing the same problem in my project. Did get any solution on the stated issue?
    Regards,
    Abhishek

  • Returning a html status code to the client browser

    Hi,
    Can anyone help me with a problem that I am have with regard to returning a html status code of NO_CONTENT to the client browser?
    The Problem:
    Basically I have a html form with a SAVE button. When the user clicks the SAVE button the data in the form is sent to the web server which then saves it in a database and the same populated form is then sent back to the client. From the users point of view they click the SAVE button and the screen is refreshed with the same data. The problem with this is that the data only needs to be SENT to be saved but not necessarily resent back to the client browser from the server i.e. from a user's point of view I don't want the screen to refresh by disappearing and then coming back again. There is a lot of data in the form so this refresh can take a considerable amount of time as the html can take a while to download.
    The Potential Solution:
    What I want to do is send the data to the server where it will be saved in the database and then return a html status code of NO_CONTENT to the browser (always Internet Explorer) so that the page doen't get refreshed / downloaded unnecessarily. I've implemented this and the save can now take as little as 10% of the time it used to take because the data is only sent and not received again.
    The problem with the potential solution:
    It works fine most of the time but not all of the time. We tested this change and it worked great but when we released it live it didn't work for some people. For most people you can see the status bar at the bottom of IE zip along as the data is sent to the server so you can see when it has finished or received the status code back. For the people it didn't work for they would get an almost full status bar at the bottom but the blue would never quite disappear to indicate that it was finished. It was as if it was sending the data from the server but not getting a response at all when it should have been getting the NO_CONTENT status code.
    The Code:
    I'm using Struts so the line of code I had originally used after the data had been saved to the database was:
         return (mapping.findForward("timesheet"));
    I changed this line of code to:
         response.setStatus(response.SC_NO_CONTENT);
         response.flushBuffer();
         return null;
    Can anyone see what the problem is here? Are the new lines of code not guaranteeing that the response is being sent back to the client? Is there a better way to simply return a status code when you don't want return a JSP page?
    Any help would be greatly appreciated.
    rgds,
    Dave

    I see what you mean now. It's a very good idea but it wouldn't really work for this application. I've taken out the ability to use "back" functionality on this screen. It is launched through javascript so that the window itself has no toolbar and also the page is set to expire so that if you do go "back" to it, you are forced to refresh the page so that it is guaranteed to have the same data as is on the server. This is needed to stop problems with other functionality of the application.
    Thanks for the suggestion though.
    Does anyone know why this code only works most but not all of the time?:
    response.setStatus(response.SC_NO_CONTENT);
    response.flushBuffer();

  • Error while calling RFC when using BSP Web Interface

    Hi,
    we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
    R_AREA   
    R_METHOD 
    R_PACKAGE
    R_PARAM  
    R_PLEVEL 
    R_PM_NAME
    R_PROFILE
    R_STS_PT 
    R_STS_SUP
    R_WEBITF 
    S_RS_ADMWB
    S_RS_AUTH
    S_RS_COMP
    S_RS_COMP1
    S_RS_DAS 
    S_RS_ICUBE
    but we still get the error message: "Error while calling RFC".
    When using a user with SAP_ALL, it works.
    What can we do?
    Thx for your time.
    Joerg

    Actually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
    Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded.

Maybe you are looking for

  • Passcode

    My ipad is asking for a passcode and i didn't put one in so therefore I don't know what one to use. My iPad has me locked out and is saying that it is disabled.

  • Aperture 3 and scanning faces

    I installed Aperture 3 and the GPS scanning worked fine but I am having trouble with Faces. It shows a progress bar and only about 5% after 5 hours. I let the computer run overnight but this morning my MBpro wouldn't wake up. What should I do? Could

  • Does mac os x 10.8.2 support java 6?

    Hi   Does mac os x 10.8.2 supports java 6?I want to install java 1.6.0_35 which supports my java application in mac os x 10.7.4 version.My application wont support java 7.Can anyone help me how to install java 1.6.0_35 and uninstallation of java 6 up

  • While on recovery mode itunes says it cannot connect to my iphone and to enter my passcode, what do i do then?

    i turned on my iphone holding the home button and connected it to my computer, on the screen it said connect to iTunes. iTunes then opened up on my computer and I pressed start recovery mode. on the top it started loading 1 item, half ways through th

  • Compiling with JAR files

    Hi, I'm trying to run a very simple jdbc testapplication that uses jdbc drivers from M$. The problem is that i don't know how to run a .class file which depends on jar files (from the commandprompt). This is what i get: javac dbtest.java -classpath m