Catch HTTP code 401 and prevent standard login dialog

Hello,
in my FLEX application I load some data from a Java servlet. I use URLRequest and URLLoader to load the data. The servlet requires basic authentication. I use a custom login dialog to get the users credentials. Everything works fine except when the user provides wrong credentials. Then the servlet returns HTTP code 401 and FLEX automatically shows a standard login dialog. I'd like to show a custom dialog instead. However I have not found a way to catch the 401 code and prevent the standard dialog from showing. Is there a solution for this?
My code:
var encoder: Base64Encoder = new Base64Encoder();
encoder.encode(context.userId + ":" + context.password);
var credHeader: URLRequestHeader = new URLRequestHeader(
     "Authorization", "Basic " + encoder.toString());
var loader: URLLoader = new URLLoader();
var request: URLRequest = new URLRequest("http://.../userinfo");
request.method = URLRequestMethod.GET;
request.requestHeaders.push(credHeader);
loader.load(request);
Thanks,
Florian

Sure,
this is my custom login dialog:
and this is the default login dialog:
The application runs on Adobe AIR version 2.6.

Similar Messages

  • SCCM 2012 - Error sending DAV request. HTTP code 401, status 'Unauthorized'

    Hi everyone!
    I have a SCCM 2012 install with SQL 2008 R2 RU6 on it. All roles on the same server.
    Application deployment was working last week and suddently, today, it's not working anymore.
    Client fail to download applications. When I see the log "dataTransfertService.log" I got:
    <![LOG[Enumerating DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.388-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:135">
    <![LOG[Enumeration of DTS jobs for logged on user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:151">
    <![LOG[Enumerating DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799'.]LOG]!><time="16:45:51.878-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:154">
    <![LOG[Enumeration of DTS jobs for helper user 'S-1-5-21-3498061407-3801314532-3722532443-1799' is complete.]LOG]!><time="16:45:51.939-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="3536" file="dtslogon.cpp:170">
    <![LOG[UpdateURLWithTransportSettings(): OLD URL - http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3083">
    <![LOG[UpdateURLWithTransportSettings(): NEW URL - http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="16:48:31.738-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="ccmutillib.cpp:3095">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} created to download from 'http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' to 'C:\WINDOWS\ccmcache\3f'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="datatransferservice.cpp:186">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'DownloadingManifest'.]LOG]!><time="16:48:31.816-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="2432" file="dtsjob.h:157">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.281-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.297000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.297-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.312-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} impersonating Network Access Account.]LOG]!><time="16:48:32.825-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.cpp:429">
    <![LOG[[CCMHTTP] ERROR: URL=http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1, Port=80, Options=224, Code=0, Text=CCM_E_BAD_HTTP_STATUS_CODE]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:291">
    <![LOG[Raising event:
    instance of CCM_CcmHttp_Status
    ClientID = "GUID:4D48BE30-A5BE-40C1-A946-B0773DE7C060";
    DateTime = "20120723144832.887000+000";
    HostName = "xxx.com";
    HRESULT = "0x87d0027e";
    ProcessID = 2236;
    StatusCode = 401;
    ThreadID = 4204;
    ]LOG]!><time="16:48:32.887-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="event.cpp:729">
    <![LOG[Successfully sent location services HTTP failure message.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="ccmhttperror.cpp:395">
    <![LOG[Error sending DAV request. HTTP code 401, status 'Unauthorized']LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:629">
    <![LOG[GetDirectoryList_HTTP('http://xxx.com:80/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1') failed with code 0x80070005.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="3" thread="4204" file="util.cpp:688">
    <![LOG[Job {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} reverted impersonation.]LOG]!><time="16:48:32.902-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="4204" file="netaccessaccount.h:93">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} in state 'Cancelled'.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.h:157">
    <![LOG[DTSJob {451ACA72-8FCC-4083-B7B5-C4C68D5E5786} cancelled by client.]LOG]!><time="16:48:33.011-120" date="07-23-2012" component="DataTransferService" context="" type="1" thread="5616" file="dtsjob.cpp:2771">
    I already verified every single permissions, NAA is configured and has correct rights. I really don't understand what has changed...
    any suggestion???
    Thank you very much!

    SMS_DP_SMSPKG$ has Windows Authentication Enabled.
    IIS Logs:
    2012-07-23 15:10:08 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 339
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 38
    2012-07-23 15:11:38 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 166
    2012-07-23 15:11:38 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 1
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 2 5 0
    2012-07-23 15:11:39 10.28.80.98 PROPFIND /SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1 - 80 - 10.28.81.52 SMS+CCM+5.0 401 1 3221225581 11
    2012-07-23 15:11:39 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 384
    2012-07-23 15:13:01 fe80::31df:ba5:7c1:caf6%11 GET /SMS_MP/.sms_aut MPLIST 80 - fe80::31df:ba5:7c1:caf6%11 SMS_MP_CONTROL_MANAGER 200 0 0 4
    2012-07-23 15:13:11 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.29.73.101 ccmhttp 401 2 5 6
    2012-07-23 15:14:01 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.82.72 ccmhttp 200 0 0 23
    2012-07-23 15:15:40 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.52 ccmhttp 200 0 0 348
    2012-07-23 15:15:55 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.28.81.79 ccmhttp 200 0 0 363
    2012-07-23 15:16:12 10.28.80.98 CCM_POST /ccm_system/request - 80 - 10.29.73.101 ccmhttp 200 0 0 393
    2012-07-23 15:17:06 10.28.80.98 CCM_POST /ccm_system_windowsauth/request - 80 - 10.28.81.79 ccmhttp 401 2 5 0
    In "ContentTransferManager.log" i see that error:
    <![LOG[Starting CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}.]LOG]!><time="17:11:38.999-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmjob.cpp:2980">
    <![LOG[Created CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} for user S-1-5-18]LOG]!><time="17:11:39.030-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5400" file="ctmanager.cpp:487">
    <![LOG[Created and Sent Location Request '{996973D0-911C-4929-BE9D-39CB4D759265}' for package Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332"
    file="ccmpkglocation.cpp:83">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.092-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:1432">
    <![LOG[Queued location request '{996973D0-911C-4929-BE9D-39CB4D759265}' for CTM job '{1C23F5FF-8ED3-43D2-91ED-169F82A24E89}'.]LOG]!><time="17:11:39.139-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5332" file="ctmjob.cpp:151">
    <![LOG[Persisted locations for CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89}:
     (LOCAL) <a href="http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120">http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1]LOG]!><time="17:11:39.452-120" date="07-23-2012"
    component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:1894">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} (corresponding DTS job {D22196C4-A803-42F4-B4FD-6F5FA777A778}) started download from 'http://xxx.com/SMS_DP_SMSPKG$/Content_1173b7a8-9bbf-42cc-8b0f-abd1c3f3065c.1' for full content download.]LOG]!><time="17:11:39.514-120"
    date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5392" file="ctmjob.cpp:413">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} entered phase CCM_DOWNLOADSTATUS_DOWNLOADING_DATA]LOG]!><time="17:11:39.577-120" date="07-23-2012" component="ContentTransferManager" context="" type="1" thread="5188" file="ctmjob.cpp:1432">
    <![LOG[CTM job {1C23F5FF-8ED3-43D2-91ED-169F82A24E89} encountered error 0x80070005 during download ('Error processing manifest.')- The error maps to denied access.]LOG]!><time="17:11:40.217-120" date="07-23-2012" component="ContentTransferManager"
    context="" type="3" thread="5400" file="ctmjob.cpp:2489">

  • 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

  • Poor login dialog

    When I first try login to one of the Acrobat.com products, I
    enter my username and password and then the login dialog changes to
    "Signing in" but that window, goes away after 2-3 seconds. At that
    point, it's not clear to the user whether login is successful or
    not, because you can click on other Acrobat.com products (nothing
    happens but it gives you the feeling that your login did not
    succeed). Then after 2-3 seconds (sometimes takes up to 10), you're
    taken to your product's page. I think "Signing in" window should
    stay up and as soon as it goes away, the product should come up.
    How do I open a bug for this?

    So you're telling me that it was a design decision to make
    the "Signing in" dialog go away after 2 seconds, and let the user
    sit for 10 seconds with an average connection wondering what's
    happening, while he can click on other Acrobat.com products and
    even try to sign in to those, as he's waiting for the product page
    to come up? I don't think so. You can call it bug or enhancement
    request, but it's poor user experience. I know the browser also has
    some indication that something is pending but you either use
    Flex/Flash for progress info or you use browser. When you use
    Flex/Flash for some parts, and then you switch to browser for
    progress info, then it becomes confusing.
    Is there a public bug base for acrobat.com by the way?

  • HTTP response code 401 when trying to import webservice

    Hi,
    I've created a Webservice how descripted in http://help.sap.com/saphelp_erp2005/helpdata/de/24/186440bdd39a0ae10000000a155106/content.htm. Now I try to import it in NWDS. I followed the step by step guide "81 Using a Web Service as External Service (Service)".
    My WDSL file of my webservice is available over http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl
    When I try to use this url in step 4 (page 13) I get the following message:
    Cannot Load WebService WSDL from URI: http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl reason: IO Exception occurred while parsing file:Server returned HTTP response code: 401 for URL:
    http://server:8000/sap/bc/srt/rfc/sap/Z_MPO_XRFC_CAFTESTBO_GETBYNAME?wsdl
    The HTTP errorcode means "no authorisation". But why does the NWDS don't ask for user and password?
    Any ideas?
    Best regards from cologne
    Martin

    Hello Martin,
    step 4 of page 13 is only for loading the WSDL and generating the external service model.  The user and password that you give here is not used for exectuting the web service.  The runtime configuration for your web service is done on page 23 of the tutorial.  Here is where you set the user and password for the execution of the web service.  You can choose either basic authentication or SSO with login ticket which will not send any text login information.
    Regards,
    Austin.

  • Error message : HTTP responce code: 401 Access denied

    Hi,
    I am working on Oracle OpenScript 8.5.
    After record the script when i click on playback I got an error message in the following Bold lines code.
    http.get(33, "http://fusion.satyam.com/idc/idcplg", http.querystring(http.param("IdcService", "GET_DOC_PAGE"), http.param("Action", "GetTemplatePage"), http.param("Page", "TRAY_SEARCH_FORM")), null, true, "iso-8859-1", "utf-8/");
    http.get(37, "http://fusion.satyam.com/idc/idcplg", http.querystring(http.param("IdcService", "SS_GET_PAGE"), http.param("siteId", "FCOE"), http.param("siteRelativeUrl", "%2Fhttp%3A%2F%2Fstclnx01.satyam.com%2Fidc%2Fidcplg"), http.param("ssUrlType", "2"), http.param("IdcService", "COLLECTION_DISPLAY"), http.param("hasCollectionID", "true"), http.param("dCollectionID", "42")), null, true, "utf-8/", "utf-8/");
    http.get(41, "http://fusion.satyam.com/idc/idcplg", http.querystring(http.param("IdcService", "SS_GET_PAGE"), http.param("nodeId", "13"), http.param("siteId", "FCOE")), null, true, "iso-8859-1", "ASCII");
    The error message in Result view is HTTP responce code: 401 Access denied .
    The error message in Console View is oracle.oats.scripting.modules.http.api.exceptions.ThinBrowserException: HTTP response code: 401  Access denied
    Note: When i comment that Bolded Code then the script was passed.
    Can any one help me... ..it's very urgent.
    Thanking you.
    Regards,
    Ramesh Dodda
    Edited by: Ramesh Dodda on Jun 11, 2009 1:27 AM
    Edited by: Ramesh Dodda on Jun 11, 2009 1:40 AM

    Hi
    Do you need a username and password to get to the application ?
    Regards
    Alex

  • Error Transmitting the message to endpoint -Received HTTP response code 401

    Hello Experts,
      I am having a SOAP to Proxy scenario. We are using HTTPS without client Authentication.
    Everything is running fine and well set on DEV system. After transporting to Test system, i am getting error as :
    Error Transmitting the message to endpoint http://host:port/sap/xi/engine?type=entry using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized.
    I get HTTP 200 Ok response in my soap client but the message is not reaching to Integration Engine. It is failing with above error. On CC monitoring for SOAP adapter it shows call completed successfully. But when I use the mesage ID from CC monitoring in Message monitoring i get the error as  shown above in Audit log.
    I have checked for Roles attached to my user on DEV and Test systems , I have same roles on both systems.
    Any inputs to solve this problem will be very helpful to me. Let me know which service users i need to check for this issue?
    Thanks in Advance,
    XI Queries.

    Hi Pinang,
    Thanks for input.
    1) Check Role -SAP_XI_APPL_SERV_USER is there in XIAPPLUSER or not.
    ->Done. Its Ok.
    2) check tyour port entry is like J2EE port 5<System no> or not.
    ->Done. Its Ok.
    3) If the error in Adapter Engine
    then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    ->This note refers in case it happens with high load. I am just sending a small request and no one else is using / testing this interface. So no high load.
    4) Check password for user XIISUSER
    -> Basis team said they checked for all Xi users and they are not locked.
    5) Check password for user XIAFUSER
    -> Basis team said they checked for all Xi users and they are not locked.
    Any other hints will be helpful.
    Kind Regards,
    Xi Queries.

  • ABAP Proxy HTTP response contains status code 401

    We have a client ABAP proxy running in a program successfully in our development system. Today I transported this to our Test system. When I tested, there were no messages in the adapter engine pipeline.
    One of my colleagues discovered that when running SXMB_MONI on the Application system (_not_ the XI system), the XML queue there shows the message with an error, the error being:
    HTTP response contains status code 401 with the description Unauthorized
    I have looked at quite a few posts here with this error; the PIAPPLUSER is not locked, Integration engine is configured the same way in both Development and Test, but I cannot figure out why this is happening.
    Any assistance more than welcome!
    BR,
    Tony.

    hi,
    Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    • If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    • If the error is in Adapter Engine
    –then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    • May be wrong password for user XIISUSER
    • May be wrong password for user XIAFUSER
    – for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message
    Thanks
    Swarup

  • Http server code 401 reason Unauthorized

    Hi,
    I am trying to setup a scenario of sending an IDOC from R/3 to XI and then sending it further to a 3rd party program using the HTTP Channel.
    If I go to transaction IDX5 in XI, I can see my IDOC sitting there as Inbound.  When I check the error message on it, I get the message "Http server code 401 reason Unauthorized explanation Unauthorized"  Also further along on the screen it says that the error category is "PLAINHTTP_ADAPTER" and Error ID is "ATTRIBUTE_SERVER". 
    Can someone guide me towards a solution?
    Thanks in Advance!
    Miguel

    Hi Rekha,
    I have checked the settings and they appear to be correct.
    Here is a piece of the trace of the monitor where the error occurs:-
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">---- Plain HTTP Adapter Outbound----</Trace>
      <Trace level="1" type="T">----
    </Trace>
    - <Trace level="1" type="B" name="CL_HTTP_PLAIN_OUTBOUND-ENTER_PLSRV">
      <Trace level="3" type="T">Quality of Service EO</Trace>
      <Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>
      <Trace level="2" type="T">HTTP-Destination : SBO_ITK</Trace>
      <Trace level="3" type="T">Server pgsap09.sap.pg.co.za</Trace>
      <Trace level="3" type="T">Service-Nr. 80</Trace>
      <Trace level="3" type="T">URL /SBOWebService/xi</Trace>
      <Trace level="3" type="T">~request_method POST</Trace>
      <Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>
      <Trace level="3" type="T">accept: /</Trace>
      <Trace level="3" type="T">content-type: text/xml</Trace>
      <Trace level="3" type="T">msgguid: 2F7389425DBE1711E100000082010B5A</Trace>
      <Trace level="3" type="T">service: DR0</Trace>
      <Trace level="3" type="T">interface namespace: http://sap.com/xi/SBO</Trace>
      <Trace level="3" type="T">interface name: MasterDataFunctionModule__vendorMasterUpdate</Trace>
      <Trace level="3" type="T">quality of service: EO</Trace>
      <Trace level="3" type="T">Header-Fields</Trace>
      <Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>
      <Trace level="3" type="T">content-length 3273</Trace>
      <Trace level="2" type="T">HTTP-Response :</Trace>
      <Trace level="2" type="T">Code : 401</Trace>
      <Trace level="2" type="T">Reason: Unauthorized</Trace>
      <Trace level="2" type="T">Code : 401</Trace>
      <Trace level="2" type="T">Reason: Unauthorized</Trace>
      </Trace>
    From this it appears that it is complaining about the user name into the external program, although when I do a test connection in SM59, I get a positive response?
    Thanks,
    Miguel

  • Http server code 401 reason Unauthorized explanation Unauthorized

    Hello to you all,
    I have a SRM-XI-SUS scenario and I try to connect to SUS with XI but I am facing the follwoing issue:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="<b>PLAINHTTP_ADAPTER</b>"><b>ATTRIBUTE_SERVER</b></SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3>Unauthorized</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack><b>Http server code 401 reason Unauthorized explanation Unauthorized</b></SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can someone guide me towards a solution?
    Kind regards,
    Kamran

    I am not intimate with the SRM-SUS integration via XI, but based on the business scenario configuration guide (https://service.sap.com/~sapidb/011000358700002897402004E/ServiceProcurementNEW.pdf) it seems that communication between SRM and SUS via XI takes place via proxies.  Assuming that's what you're trying to do, to communicate to SUS via proxies, you would need to use the adapter type (XI).   The communication is still technically over HTTP, but using the XI messaging protocol. 
    The use of an sm59 destination is optional.  The XI type communication channel allows addressing types of "URL Addressing" or "HTTP Destination".  If you choose the latter, you would need a sm59 destination of type H and then refer to it from the channel.
    Try using a XI type receiver channel instead.  If you run into additional problems, check the "XI Settings" section of the guide above.
    Regards,
    Jin

  • TREX preprocessing failed, HTTP Status Code 401

    Hello everybody!
    I'm using SAP NetWeaver 7.0 (2004s), TREX 7.0 on Win2003 Server.
    I'm trying to index files, but it doesn't work for files bigger than 10KB. I know that for these documents > 10KB only the URI is transmitted to TREX. So it seems the problem is based on the communication between TREX and portal.
    Error messages:
    TREX monitor: preprocessing failed, error number: 6401, error message: HTTP Status Code 401: Unauthorized
    Indexmonitor: Trex: Preparation failed: index operation
    - all TREX server status icons are green.
    - I'm not using any SSL communication.
    - indexing doesn't work for any data sources, neither web repositories nor KM content.
    - I've checked the host and alternative host parameter in the URL generator service (both http://<myservername>:50100).
    - I am able to access the URL of the resource directly.
    - I've added the "unescape_url=no" entry in the TREXPreprocessor.ini like SAP Note 650521 says.
    - my system ID is properly set.
    - the password of user index_service does not expire.
    Does anybody have any further ideas?
    Many thanks in advance
    Steffi, working on it for days...

    Hello Robert and Steffi,
    With the help of SAP support, I could solve the problem !
    Certificate for SAPLogonTickets had expired, so authentication was no longer possible. Solution : recreated the certificates with Visual Admin.
    In Visual Admin, go to "Key Storage" service, then choose "TicketKeystore" view.
    Delete SAPLogonTicketKeypair and SAPLogonTicketKeypair-cert certificates (or rename them in a first time).
    Then recreate "SAPLogonTicketKeypair" :
    - fill the Entry Name with "SAPLogonTicketKeypair",
    - fill "Common Name" with the value from the previous ticket
    - check "Store Certificate" (this will automatically create SAPLogonTicketKeypair-cert)
    - choose "DSA" as Algorithm
    and click on "Generate"
    That worked fine for us on two platforms.
    Hope that gonna help...
    Nicolas

  • Returning HTTP status codes (401, 403, etc) to Flash 8

    Hi all,
    I'm using AMFPHP on the server-side and Flash remoting
    classes to communicate with it. Everything's working great, but i'd
    like Flash to be able to recieve HTTP status codes from the server.
    For example, if on the server side (in PHP) I go:
    header("Status: 401 Unauthorized");
    I'd like the remoting service on the flash side to be able to
    get the HTTP error code (401 in the example above).
    I know this is possible with
    [url=http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context =LiveDocs_Parts&file=00002333.html]LoadVars.onHTTPStatus[/url]
    but it doesn't seem to deal with using it with Flash Remoting.
    Thanks all :)
    - Nilesh

    Hi, I am trying to PUT to update contact info and I get following error:
    2015-01-16 11:00:17,970 INFO [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(97) | accessHttpsPut.url=https://secure.eloqua.com/API/REST/2.0//data/contact/7606838, text={"id":"7606838","accountName":"openIdStr001","emailAddress":"[email protected]","type":"Contact"}
    2015-01-16 11:00:18,931 ERROR [main] oracle.eloqua.connector.eloqua.EloquaConnector.putWithBasicAuth(140) | ClientProtocolException
    org.apache.http.client.HttpResponseException: Request is malformed.
    Is there any idea?
    Thanks so much.
    Sincerely.

  • Trex Indexing giving HTTP Status Code 401:Unauthorized error

    Dear All,
    We have configured TREX search on KM repository of our EP
    production server and trying to search using the same our KM repository.
    The TREX is installed on the a separate server.
    When we try to Index production repository the documents are failing in
    the Preparation failed status with return code 6401 and error message
    HTTP Status Code 401: Unauthorized.
    I also applied SAP-Note 650521 and checked id index_service user and
    found that its active and not locked but still issue didnu2019t get
    resolved. Moreover i have gone thru most of the previous post regarding this topic but didt help.
    I even checked the URL Generator service too which is fine.
    On one test system also where SPNego is configured we are getting same
    401 error. On this system we disabled SPnego and Indexing started working
    fine. When we reverted back the SPNego configuration for confirmation of
    our observation we found that it again started to give 401 error.
    Any help in this regard will be appreciated.
    Regards,
    Srinath Pillai
    Edited by: Srinath Pillai on Sep 3, 2009 8:59 AM

    Dear
    Open System Administration--> System Configuration> Knowledge Management--> Content Management> Global Services (Mode : Advanced)> Index Management Service--> Check for Crawling Service User  it has to be index_service
    If still you have problem than do let me know where is your Repository located are the documents are stored on Portal Server itself or it is stored on some external server...
    What kind of repository you use CM Repository(Mode:DB,DBFS,FSDB) , File System Repository....e.t.c....
    Regards
    Akshit

  • Error in XIDemo: HTTP response contains status code 401 with the descriptio

    Hi Gurus
    I try to configure the XI DEMO, in the fase of "Check Flight Seat Availability" the system show the next Error:
    Error Information
    Unable to check flight availability.      
    Error Type:      XI system error
    Error Details: HTTP response contains status code 401 with the description Unauthorized
    I check the pasword and it is ok!!
    Any idea for this issue?
    Thanks and regards

    Hello
    - Check that the required users are available on all clients involved in the scenario. 
    - Are the users PIAFUSER/PIISUSER locked
    - Generate the roles and do a Mass Comparison for SAP_XI, SAP_SLD and SAP_BC_AI_LANDSCAPE_DB_RFC (your Basis admin will know how to do this).
    - Double check all necessary configurations e.g. in the application system -> sxmb_admin -> Integration Engine Configuration ensure you are using the format DEST://<RFC destination name>
    Regards
    Mark

  • Server returned HTTP response code: 401

    hi,
    I am trying to get the tutorial example to run but always fails at "ant install", with the following error code:
    file:C:/jwstutorial12/examples/common/targets.xml:15: java.io.IOException: Server returned HTTP response code: 401 for U
    RL: http://localhost:8080/manager/install?path=%2Fgs&war=file%3A%2Fjwstutorial12%2Fexamples%2Fgs%2Fbuild
    THe only thing I can think of is that the build.properties file is not good. It should be in my "home" directory. What exactly is my home directory and how do I define it?
    thanks,
    lingling.

    Double-check your password, keeping in mind that property files can override the properties defined in your ant file. Below the tomcat.properties overrides the username and password:
      <property file="tomcat.properties"/>
      <!-- Configure properties to access the Manager application -->
      <property name="url"      value="http://localhost:8080/manager"/>
      <property name="username" value="tomcat"/>
      <property name="password" value="tomcat"/>

Maybe you are looking for