Getting error as 'Error 401 - unauthorized'

Hi ,
I have a af:goImageLink on a .jsff on clicking on which I am supposed to open a screen with print window . Code in .jsff is
<af:goImageLink text="Print Current Data" targetFrame="_blank"
icon="/theme/img/print.png"
partialTriggers="Search"
disabled="#{viewScope.Bean.printFlag}"
destination="#{Bean.strPrintPath}"
id="gil2" styleClass="print_margin_div"/>
destination sting is the url of the .jspx to be opened for print.
It is working fine.
No on the .jspx I need to do data control binding. After doing that when i click on hypelink to open the print screen i am getting erro as 'Error 401 - unauthorized'
Using Jdev 11.1.1.5.0
start code in jspx is
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<af:messages id="m1"/>
<af:outputText value="#{bindings.emptyText.inputValue}" id="ot1"/>

Hi,
Have you configured ADF security ? If yes give access to this peg def file as well.
Thanks
Prateek

Similar Messages

  • Switch to  HTML5 - Posting to Finance - SRT: HTTP error: ("HTTP Code 401: Unauthorized - Details see in error log of transaction SRTUTIL")

    Hi SAP,
    I've switch my tenant to HTML5 and now the postings are not going through. I've not changed anything in the communication arrangement, I kept everything i had when working in silverlight, but the postings have stop working.
    thank you in advance,
    Teresa Rosa

    Dear Rosa,
    Are you trying to post Expense reports to ERP System and you are getting this error?
    Error Unauthorized (401) generally means the User ID in ERP backend maintained in outbound communication is not valid. Could you please check if the user is valid in ERP with the proper roles and its password is well maintained? If this is well maintained, Check Connection should return Ping Successful.
    Once the ping is successful on communication arrangement "SAP ERP Financials using IDoc"
    Go to work center Postings, Show Posted Reports. Find report & select it. Select the below tab Request a Transfer Restart.
    Please feel free to write to us in case of any further clarification required.
    Sincerely,
    Manasa

  • Authenticating web services -- get Invalid Response Code:(401) Unauthorized

    Hi,
    ich have implemented a websirve in dynpro java (thanks for all the guys who wrote guides for that), but i still have a problem. i have to set username and password for authorization.
    i have already tested follwoing code:
    reqMo.wdSetInvocationModifier(
               new IWDWSInvocationModifier() {
                 public void doModifyInvocation(Object port) {
                    // Creating the SOAP Header node.
                    HTTPControlInterface http = HTTPControlFactory.getInterface(port);
                    http.setHTTPProxyUserPass("xxxxx","xxxxxx");
                 public void doModifyAfterInvocation() {}
    but i get same message as follows:
    Exception on execution of web service with WSDL
    URL 'http://server:port/special/wsdl_report_gen.wsdl' with operation '_-xxxx_-generateReport' in
    interface '{urn:sap-com:document:sap:soap:functions:mc-style}XXXX_REPORT_GEN':
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:"http://server:port/sap/bc/srt/rfc/sap/XXXX_report_gen/111/XXXX_report_gen/XXXX_report_gen";
    nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid
    Response Code: (401) Unauthorized. The requested URL
    was:"http://server:port/sap/bc/srt/rfc/sap/XXXX_report_gen/111/XXXX_report_gen/XXXX_report_gen"
    any ideas?
    Edited by: Dennis Ahaus on Dec 10, 2008 11:40 AM

    Hi Dennis Ahaus,
    If you are using Adaptive webservice model, you can provide the credentials as below.
    wdContext.currentXXXXElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"username");
    //           wdContext.currentXXXXElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"password");          
    Regards,
    VJR.

  • Configure-EnterprisePartnerApplication.ps1 401 Unauthorized

    I'm setting up a partnership between Exchange 2013 and SharePoint 2013. All previous steps are complete without error until I get to Configure-EnterprisePartnerApplication.ps1. It runs all of the steps, creates the user and adds to groups but then errors
    with a 401 Unauthorized. I'm using "Configure-EnterprisePartnerApplication.ps1 -AuthMetaDataUrl
    http://sharepoint/_layouts/15/metadata/json/1 -ApplicationType SharePoint"    

    Here are the logs that appear to pertain to the event.
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Logging Correlation Data       9gc5 Verbose  Thread change; resetting trace level override to 0; resetting correlation to empty list 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Request Management             aitsz Verbose  The Request Management Service is offline or unprovisioned. Request Management is disabled. Status = Disabled 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8b Verbose  Looking up context  site
    https://sharepoint:443/_layouts/15/metadata/json/ in the farm SharePoint_Config 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8d Verbose  Looking up the additional information about the typical site
    https://sharepoint:443/_layouts/15/metadata/json/. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8f Verbose  Site lookup is replacing
    https://sharepoint:443/_layouts/15/metadata/json/ with the alternate access url
    https://sharepoint. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8g Verbose  Looking up typical site
    https://sharepoint:443/_layouts/15/metadata/json/ in web application SPWebApplication Name=LAWV Web Application. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8h Verbose  Found typical site / (d8b02a8f-4f48-4df9-9483-4ad53b85005f) in web application SPWebApplication
    Name=LAWV Web Application. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (GET:https://sharepoint:443/_layouts/15/metadata/json/)).
    Parent No 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8b Verbose  Looking up context  site
    https://sharepoint:443/_layouts/15/metadata/json/ in the farm SharePoint_Config 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8d Verbose  Looking up the additional information about the typical site
    https://sharepoint:443/_layouts/15/metadata/json/. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8f Verbose  Site lookup is replacing
    https://sharepoint:443/_layouts/15/metadata/json/ with the alternate access url
    https://sharepoint. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8g Verbose  Looking up typical site
    https://sharepoint:443/_layouts/15/metadata/json/ in web application SPWebApplication Name=LAWV Web Application. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8h Verbose  Found typical site / (d8b02a8f-4f48-4df9-9483-4ad53b85005f) in web application SPWebApplication
    Name=LAWV Web Application. 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Verbose  Entering monitored scope (Matching conditions for ULS boosting). Parent Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Verbose  Leaving Monitored Scope (Matching conditions for ULS boosting). Execution Time=0.0325 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=0.0325 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=35634 
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Logging Correlation Data       77a3 Verbose  Starting correlation. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Verbose  Entering monitored scope (BeginRequestHandler). Parent Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     SQM                            97qu Verbose  SQM: Datapoint id 6693 marked as Increment datapoint. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Verbose  Leaving Monitored Scope (BeginRequestHandler). Execution Time=0.4004 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=0.4004 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=1064858 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SQL Query Count=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Asp Runtime                    aj1kp Verbose  SPRequestModule.PreSendRequestHeaders 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Verbose  Entering monitored scope (PreSendRequestHeaders). Parent Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8b Verbose  Looking up context  site
    https://sharepoint:443/_layouts/15/metadata/json/ in the farm SharePoint_Config 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8d Verbose  Looking up the additional information about the typical site
    https://sharepoint:443/_layouts/15/metadata/json/. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8f Verbose  Site lookup is replacing
    https://sharepoint:443/_layouts/15/metadata/json/ with the alternate access url
    https://sharepoint. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8g Verbose  Looking up typical site
    https://sharepoint:443/_layouts/15/metadata/json/ in web application SPWebApplication Name=LAWV Web Application. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     General                        6t8h Verbose  Found typical site / (d8b02a8f-4f48-4df9-9483-4ad53b85005f) in web application SPWebApplication
    Name=LAWV Web Application. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Verbose  Leaving Monitored Scope (PreSendRequestHeaders). Execution Time=0.0998 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=0.0998 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=265804 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SQL Query Count=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Micro Trace                    uls4 Verbose  Micro Trace Tags: 0 aitsz,0 9gc5,0 6t8b,0 6t8d,0 6t8f,0 6t8g,0 6t8h,0 nasq,0 6t8b,0 6t8d,0 6t8f,0 6t8g,0
    6t8h,0 nasq,0 b4ly,0 nass,0 nass,0 nasq,0 b4ly,0 nass,0 nass,0 nass,0 aj1kp,0 nasq,0 6t8b,0 6t8d,0 6t8f,0 6t8g,0 6t8h,0 b4ly,0 nass,0 nass,0 nass 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Verbose  Entering monitored scope (EndRequestHandler SharePointEndRequest). Parent Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Server            
     Logging Correlation Data       9gc5 Verbose  Thread change; resetting trace level override to 0; resetting correlation to 0a86999c-1aa4-e013-6391-f848f28fa771 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Server            
     Unified Logging Service        cn4g Verbose  Trace level override is turned off. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Verbose  Leaving Monitored Scope (EndRequestHandler SharePointEndRequest). Execution Time=0.0561 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=0.0561 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=149366 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SQL Query Count=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nasq Verbose  Entering monitored scope (EndRequestHandler SPRequest Disposal). Parent Request (GET:https://sharepoint:443/_layouts/15/metadata/json/) 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Verbose  Leaving Monitored Scope (EndRequestHandler SPRequest Disposal). Execution Time=0.008 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=0.008 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=19717 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SQL Query Count=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:https://sharepoint:443/_layouts/15/metadata/json/)).
    Execution Time=1.3938 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SPRequest Objects=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Distributed Cache=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Current User= 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Execution Time=1.3938 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____=00000000-0000-0000-0000-000000000000 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Request Management= 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____ULS Large Gap= 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____SQL Query Count=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Log Correlation Id=0a86999c-1aa4-e013-6391-f848f28fa771 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Page Checkout Level=Published 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____WebPart Events Offsets=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Claims Counter=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Service Calls=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Critical Events=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____User Address=10.10.1.65 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____Current SharePoint Operations=0 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Monitoring                     nass Verbose  ____CPU Cycles=3685393 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Logging Correlation Data       77a3 Verbose  Ending correlation. 0a86999c-1aa4-e013-6391-f848f28fa771
    06/10/2014 10:34:41.60  w3wp.exe (0x3550)                        0x4EC4 SharePoint Foundation        
     Unified Logging Service        cn4g Verbose  Trace level override is turned off. 0a86999c-1aa4-e013-6391-f848f28fa771

  • SOAP Sender Adapter gets error '(401) Unauthorized.'

    Hi all,
    we are using XI 3.0 and have a scenario with a SOAP Sender Adapter, which is using "HTTPS with Client Authentication". I have configured everything I have found on the forum at Visual Admin and Integration Directory:
    Set the UME property ume.logon.allow_cert to TRUE in 'Service-->UME Provider'
    Imported client certificate and root CA certificate to 'Service-->Keystore'
    Created user with role role SAP_XI_APPL_SERV_USER
    Assigned this user to the client certificate in 'Security Provider-->UserManagement'
    Added the user to xi_adapter_soap_message and xi_adapter_soap_help in 'Security Provider'
    Added the root CA in 'SSL Provider>Dispatcher>Client Authentication' and marked 'Request client certificate.
    Added the user to BusinessSystem at tab 'Assigned Users'
    Added the user to Sender Agreement at tab 'Assigned Users'.
    Our business partner got a certificate of our server and the according PrivateKey is added to 'SSL Provider>Dispatcher>Server Identity'
    Unfortunately, our server certificate is not verified by an root CA!!
    When the business partner now browse the URL 'https://url:port/XISOAPAdapter/MessageServlet?channel=:BS_3RD_PARTNER:SOAP_SENDER&nosoap=true' on his system, he will get a 'Message Servlet is in Status OK'.
    But when he tries to process the URL directly in his messaging system, he gets an error '(401) Unauthorized.' 
    Any hints what could be the problem between browing the URL in InternetExplorer and sending from the messaging system?
    Does it really mean that authorization was successful, when getting  'Message Servlet is in Status OK' in the Browser?
    How can I assign an user when not using ClientAuthentication?
    I would be very thankful for every help...
    Grtz, Juergen

    Hi Satish,
    could the user or password also be wrong, even if you get 'Message Servlet is in Status OK' when browsing the URL in the Internet Explorer? I would have seen this as a sign, that the user authentication works basically...
    Is there a special place to store the password in the Visual Admin, or will the password be used, which is available in the SU01 ?
    Grtz,
    Juergen

  • Getting error "The request failed with HTTP status 401: Unauthorized " for _vti_bin/Authentication.asmx

    Hi All,
    My Web application is FBA application and I am using the lists.asmx services in my custom webpart. To run this lists.asmx service in FBA enabled site we need to use Authentication.asmx service..
    I referred this link:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/21867e28-75d5-42c8-850b-bfb5c5894eed .
    I wrote a code as mentioned in this article but now I am getting  error "The request failed with HTTP status 401: Unauthorized " for Authentication.asmx service itself. Can somebody help me why it is not working even everything looks
    correct?
    Thank you.
    Regards,
    Rahul Shinde.

    Hi Rahul,
    Give permissions to the user on the web application.
    Central Admin -->Application Management --> Application Security -->Policy for web application --> Select the
    web application --> Add User
    For more information, refer to
    http://microsoftdev.blogspot.com/2009/10/sharepoint-web-services-access-give.html
    http://www.codeproject.com/Articles/24244/Access-a-Forms-Based-SharePoint-Site-s-Web-Service
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • 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

  • 401:Unauthorized error while consuming a MOSS web service

    Hi, We are trying to cosume a Web Service from MOSS using Spring and Axis. The WSDL requires user name and password. We are passing the right credentials however we are getting the 401 error. The exact exception is provided below. Could any one advise how this can be resolved?
    java.io.FileNotFoundException: Response: '401: Unauthorized' for url: 'https://ts2amr.accenture.com/_vti_bin/Search.asmx?wsdl'.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spWSClient' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'spWebService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spWebService' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.remoting.RemoteLookupFailureException: Failed to initialize service for JAX-RPC port [{urn:Microsoft.Search}QueryServiceSoap]; nested exception is javax.xml.rpc.ServiceException: Error processing WSDL document:
    java.io.FileNotFoundException: Response: '401: Unauthorized' for url: 'https://ts2amr.accenture.com/_vti_bin/Search.asmx?wsdl'

    I can't speak for MOSS for sure, but other Microsoft services such as MapPoint used to require Digest Authentication, which isn't quite as pervasive as Basic Authentication. You should doublecheck with the MOSS administrator about the proper credentials and access. You might even try a utility like SoapUI to see if things work from a test client before trying it on the application server.

  • Error 401--Unauthorized when deployed on WL Managed server (10.3.3)

    Hi,
    I created & started a WL-Managed server on my window desktop machine. I deployed to this Managed server, an application which is running without problem on Admin Server. (The managed server is created in the same Domain as that of Admin Server)
    However, when I log on to the application on Managed server & enter the UID & PW I get the Error 401--Unauthorized page. The same security works perfectly well for Admin Server.
    Any clues what could be going wrong.
    Thanks in advance.
    Edited by: Prakash Chavan on Feb 28, 2011 4:57 PM

    Thanks Faisal,
    Here is the log after I add the 2 flags
    <Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server stat
    e changed to RUNNING>
    <Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server star
    ted in RUNNING mode>
    Mar 1, 2011 9:13:27 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationC
    px
    INFO: zip:C:/JDev11g/Middleware/user_projects/domains/base_domain/servers/Svr0/t
    mp/_WL_user/TestTrackApp_V2.0/77qs7f/war/WEB-INF/lib/_wl_cls_gen.jar!/view/DataB
    indings.cpx
    [JpsAuth] Check Permission
    PolicyContext: [TestTrackApp#V2.0]
    Resource/Target: [view.pageDefs.ttsPageDef]
    Action: [view]
    Permission Class: [oracle.adf.share.security.authorization.RegionP
    ermission]
    Result: [FAILED]
    For more information on this failure, please set -Djps.auth.debug.verb
    ose=true
    I have emailed you the requested log & the config files.
    Edited by: Prakash Chavan on Mar 1, 2011 9:35 AM

  • Adobe Print Form Error - Invalid Response Code: (401) Unauthorized

    Hi, I've just configured ADS on Netweaver 2004s. I've run through the config guide and everything works ok including the form generation test report FP_TEST_00 which outputs PDF without issue. I have two problems:
    -When I run a "test connection" on the RFC destination 'ADS' using the ADSUSER for the login details, I get a 403 not authorized error. Changing this user to J2EE_ADMIN resolves the issue and I get a 302 redirect. I've tried adding other permissions to the ADSUSER without any luck.
    -Running a report on the Portal under e.g. Executive Reporting and attempting to just right-click and hit "Print Version" results in a 401 error for request "http://hostXX:portXX/AdobeDocumentServices/Config?style=document" exactly as per this thread: Re: Adobe Form Creation Error - Invalid Response Code: (401) Unauthorized. However, I've double-checked all user details in Visual Administrator (ADS_AGENT) and on the ABAP stack side in su01 and sm59. I also tried changing the users to dialog with no effect. If I go directly to that URL and log in with ADSUSER I get a 403 not authorised error (using J2EE_ADMIN is again successful). I've noticed that in the http access log the HTTP protocol used is 1.1 when using the web browser and 1.0 when using the sm59 connection test. I've heard of problems with using HTTP/1.1, but when I change the options on IE8 to use HTTP/1.0, it changes for all other requests except the request for "http://hostXX:portXX/AdobeDocumentServices/Config?style=document", which is still submitted as HTTP/1.1. Conversely, in sm59 if I specify that it should use HTTP/1.1 under Special Options, I can see from the access log that it is in fact still using HTTP/1.0. Could this be related to the 401 error code that I'm seeing?
    Any help would be appreciated. Thanks,
    John

    I think I've ruled out the HTTP protocol version as being an issue here. However I may have found more useful information on the actual issue.
    In the security log under usr\sap\<SID>\DVEBMGS00\j2ee\cluster\server0\log\system I see a different message for the unsuccessful report PDF generation attempt to that of a direct query to the same URL with the same web browser, as below. The unsuccessful attempt appears to forget the ADSUSER credentials and resort to the default J2EE_GUEST which has no authorisations and therefore fails. The direct query doesn't lose the ADSUSER credentials and I think this is because it prompts for the user/password when needed. Does anyone know why this happens for a direct query to this URL but not for the PDF generation attempt?
    Resulting logs from unsuccessful PDF generation attempt:
    #1.5 #005056AF1EB300750000002D0000142000048B4D2208F055#1279063306899#/System/Security/WS/SecurityProtocol#sap.com/irj#com.sap.security.core.client.ws.AuthenticationContext.setDestination#AICL0001#622##<host>_<sid>_3576650#AICL0001#4c1a62608ed511dfbe2a005056af1eb3#SAPEngine_Application_Thread[impl:3]_5##0#0#Info#1#com.sap.security.core.client.ws.AuthenticationContext#Java###An destination was set with the following properties:
    {0}.#1#{PROXY_ENABLED=false, CLIENT_AUTHENTICATION_KEYSTORE_VIEW=, SAP_SID=, SLD_URL=, USERNAME=ADSUSER, SLD_WS_NAME=, URL=http://<host>:50000/AdobeDocumentServices/Config?style=document, PROXY_URL=, SSL_SERVER_AUTHENTICATION=IGNORE, SLD_WS_SYSTEM_NAME=, PASSWORD=XXX, SLD_WS_PORT=, SAP_CLIENT=, DEFAULT_URL=http://localhost:50000/AdobeDocumentServices/Config?style=document, Authentication=BASIC, CLIENT_AUTHENTICATION_KEYSTORE_CERTIFICATE=, URL_CHOICE=Custom, SAP_LANGUAGE=}#
    #1.5 #005056AF1EB30072000000250000142000048B4D220A12ED#1279063306977#/System/Security/Authentication##com.sap.engine.services.security.authentication.logincontext#J2EE_GUEST#0##<host>_<sid>_3576650#Guest#4c1a62608ed511dfbe2a005056af1eb3#SAPEngine_Application_Thread[impl:3]_24##0#0#Info#1#com.sap.engine.services.security.authentication.logincontext#Plain###LOGIN.FAILED
    User: N/A
    Authentication Stack: com.adobe/AdobeDocumentServices*AdobeDocumentServices_Config
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   SUFFICIENT  ok          exception             true       Authentication did not succeed.#
    Successful direct access of URL http://<host>:50000/AdobeDocumentServices/Config?style=document (click on rpData test and manually log in as ADSUSER):
    #1.5 #005056AF1EB30070000000250000142000048B4D3E260016#1279063778670#/System/Security/Authentication##com.sap.engine.services.security.authentication.logincontext#ADSUSER#675##<host>_<sid>_3576650#Guest#812f72008ed611dfa62d005056af1eb3#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#com.sap.engine.services.security.authentication.logincontext#Plain###LOGIN.OK
    User: ADSUSER
    Authentication Stack: com.adobe/AdobeDocumentServices*AdobeDocumentServices_Config
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   SUFFICIENT  ok          true       true                 
    Central Checks                                                                                true                  #
    #1.5 #005056AF1EB30070000000260000142000048B4D3E2666A6#1279063778702#/System/Security/Audit/J2EE##com.sap.engine.services.security.roles.audit#ADSUSER#675##<host>_<sid>_3576650#ADSUSER#812f72008ed611dfa62d005056af1eb3#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#com.sap.engine.services.security.roles.audit#Java###{0}: Authorization check for caller assignment to J2EE security role [{1} : {2}].#3#ACCESS.OK#SAP-J2EE-Engine#all#

  • The remote server returned an error: (401) Unauthorized

    We are attempting to upload a file to SharePoint on Office 365 and get the following error:
    The remote server returned an error: (401) Unauthorized.
    We also tried using NetworkCredentials and that got the following error: The remote server returned an error: (404) Not Found.
    The code is shown below.
    Any idea on to fix this error?
    public
    void uploadDocument(string
    siteurl, string username,
    SecureString securepassword,
    string domain,
    string filestreamPath =
    "NewDocument.docx",
    string serverRelativeUrl =
    "/Shared Documents/NewDocument.docx")
    ClientContext context =
    new
    ClientContext(siteurl);
            //context.Credentials = new NetworkCredential(username, securepassword, domain);
    context.Credentials = new
    SharePointOnlineCredentials(username, securepassword);
    using (FileStream
    fileStream =
    new
    FileStream(filestreamPath,
    FileMode.Open))
    ClientOM.File.SaveBinaryDirect(context,
    serverRelativeUrl, fileStream, true);

    Yes, it has access.  In fact, it has no problem getting the site properties using the code below.  It is just when I am uploading a file that the error occurs.
    public Web getProperties(string
    siteurl, string username,
    SecureString securepassword)
    Web web = null;
    // Starting with ClientContext, the constructor requires a URL to the
    // server running SharePoint.
    ClientContext context = new ClientContext(siteurl);
    // The SharePoint web at the URL.
    web = context.Web;
    // We want to retrieve the web's properties.
    context.Load(web);
    // Execute the query to the server.
    context.Credentials = new SharePointOnlineCredentials(username, securepassword);
    context.ExecuteQuery();
    return web;

  • B1WS - (401)Unauthorized Error while accessing Webservice from JAVA

    Hi,
    While accessing B1WS getting the following error.
    Please help us to resolve the error
    {http://xml.apache.org/axis/}HttpErrorCode:401
    (401)Unauthorized
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    Here is the Code :
    public class Test {
    //     public static final java.lang.String _dst_MSSQL2008 = "dst_MSSQL2008";
         public static final LoginDatabaseType dst_MSSQL2008 = new LoginDatabaseType("dst_MSSQL2008");
         public static final LoginLanguage ln_English = new LoginLanguage("ln_English");
        public static void main(String[] arg) throws ServiceException, IOException
            LoginServiceSoapStub login = (LoginServiceSoapStub) new LoginServiceLocator().getLoginServiceSoap(new URL("http://10.10.5.115/sapb1web/WebReferences/LoginService.wsdl"));
        try {
            login.login("ESPL-LAP-048", "INDIAHEAD", dst_MSSQL2008,"manager", "12345", ln_English, "ESPL-LAP-048:30000");
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            System.out.println("Error "+e.getMessage());
    Thanks
    Ravi Shankar

    Hi,
    Not sure this is right forum to post. You may try post in SDK forum to get quick response.
    Thanks & Regards,
    Nagarajan

  • The remote server returned an error: (401) Unauthorized error while using Microsoft.SharePoint.Client.dll

    I have access to sharepoint site and I have tested this by manually creating the lists and announcements in the sharepoint site.
    now the same thing when I try to do it through the c#.net code it always gives me the following :
    "An unhandled exception of type 'System.Net.WebException' occurred in
    Microsoft.SharePoint.Client.dll Additional information: The remote server returned an error:
    (401) Unauthorized."
    My code looks like below:
    string userName = "[email protected]";
    SecureString password = new SecureString();
    foreach (char c in "abc123".ToCharArray()) password.AppendChar(c);
    using (var context = new ClientContext("https://sharepoint.partners.extranet.adlabs.com/sites/UniTest"))
    context.Credentials = new SharePointOnlineCredentials(userName, password);
    context.Load(context.Web, w => w.Title);
    context.ExecuteQuery();
    Krrishna

    Hi Krrishna,
    You code is used to access SharePoint Online, if you are use SharePoint 2007, we can use SharePoint web service or custom web service to achieve your requirement. 
    Lists Web Service
    http://msdn.microsoft.com/en-us/library/lists(v=office.12).aspx
    Creating a Custom Web Service
    http://msdn.microsoft.com/en-us/library/ms464040(v=office.12).aspx
    About SharePoint 2007(MOSS 2007), you can also post it to the forum below, you will get more help and confirmed answers there.
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • OnPremise: Sharepoint Hosted App gives 401 unauthorized error while accessing UserProfile Rest Service

    Hi All,
    I have SharePoint hosted app deployed on On-Premise using(F5) which reads User Profile data consumes WCF(Hosted on same server) through REST API to insert data in to SQL DB(Different server).
    SharePoint hosted app was working as expected and suddenly it started asking for credential and not login(any user) to the application landing page.
    Checked SharePoint Logs, IIS Logs and Windows log but did not get any clue.
    WCF is accessible, User Profile access is also happening but not sure what changes done on server or infra level which causing this issue.
    I have an On-Premise Environment for SharePoint 2013. where we have created SharePoint hosted app which calls "http:///_api/SP.UserProfiles.PeopleManager/GetMyProperties" to get current user's data. but this gives me 401 unauthorized error.
    Notes:
    I had given read permission to user profile and full control to sitecollection in appmanifest. If I run this app on Office 365 developer site it works fine, but on premise environment it give 401 error.
    On premise environment when I deploy this app 3 times it prompt for  credential and finally gives the following error
    Error message after login 3 times:
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access
    denied. You do not have permission to perform this action or access this resource."}}}
    -Lovekush Kumar 

    Add your site (http://*.app.contoso.com) to your local intranet sites in IE. 
    "app.contoso.com" is app domain.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • 401 Unauthorized error when calling a webservice

    Have ColdFusion 11 installed, I have created a hello web service and I am trying to call it.  Each time I try to call the web service I get an error 401 Unauthorized.  I am not sure if I need to configure something more on the ColdFusion server, IIS or something else.
    <cfcomponent displayname="Hello">
    <cffunction name="helloWorld" returntype="string" access="remote">
         <cfreturn "Hello World!">
        </cffunction>
    </cfcomponent>
    <cfinvoke
      webservice="http://MyServer/Hello.cfc?wsdl"
      method="helloWorld"
      returnvariable="ws" refreshwsdl="yes">
    </cfinvoke>
    <cfdump var="#ws#">

    It appears that you have inadvertently enforced HTTP authentication. If so, you will have to include the attributes, username="your_username" and password="your_password" in the cfinvoke tag.

Maybe you are looking for

  • Report printing w/ BI Publisher and group by data

    I'm attempting to test BI Publisher for use here and am seeing a problem. It seems that when I have a report query that uses a group by clause, I get an empty report in BI Publisher. It works fine for non-group by stuff. Am I not supposed to do group

  • How can you configure mail settings in process chains?

    HI Experts, please let me know how can you configure mail settings in process chains?

  • Cash & funds flow statements in sap

    hi can any one provide customisation for funds flow and cash flow statements in sap, if any one having related documents please mail me at [email protected] thank u.

  • Reporting interunit elimination documents

    Hi gurus:     I have a problem, I need to do a report with query designer with documents of interunit eliminations of all month from the first consolidation this query will be with the same estructure that a document interunit elimination. thanks for

  • HTML link, IE8

    Hi! I've made (with help) a flash which displays quotes from a txt file. Few of them are html links (<a href="... etc). It works without problem if I check it with Google Chrome, but IE8 won't open the links. I've no idea what could be the problem. M