Guided Procedures - Invalid Response Code: (401) Unauthorized

I'm trying to generate an impersonalized form in Guided Procedures. I got an error.
I checked the SAP logs and the error is
Invalid Response Code: (401) Unauthorized. The requested URL was:"http://hostXX:portXX/AdobeDocumentServices/Config?style=document"
Before this error occurs I see an alert
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.
I've checked the ADSUser and its not locked. Configuration and everything looks fine. I've tested the ADS connections too on SM59.
We have similar configuration for DEV and its working fine there.
Any help on this is highly appreciated.
Version - SAP 2004s SP16
Thank you,
Srinivas

Thanks everybody. Resolved
Updated the HTTP Destination and Web Services Client with the password for ADSUSER again and restarted the services

Similar Messages

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

    I'm trying to generate an impersonalized form in Guided Procedures. I got an error.
    I checked the SAP logs and the error is
    Invalid Response Code: (401) Unauthorized. The requested URL was:"http://hostXX:portXX/AdobeDocumentServices/Config?style=document"
    Before this error occurs I see an alert
    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.
    I've checked the ADSUser and its not locked. Configuration and everything looks fine. I've tested the ADS connections too on SM59.
    We have similar configuration for DEV and its working fine there.
    Any help on this is highly appreciated.
    Version - SAP 2004s SP16
    Thank you,
    Srinivas

    I had a similar problem with authorization failed for the ADSuser. My problem however only occurs at night when the system is the least used.
    We have changed two things which I believed have now solved the problem.
    1. Make sure all j2ee servers in the cluster uses localhost for the web service destination. Our system was configured to use the central instace forcing all request to a single server.
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/a00d41921bf023e10000000a155106/frameset.htm
    2. Check maximum number of users in VA. Ours was set to only 300 due to some earlier performance problems. Default is unlimited I believe, so it shouldn't be a problem normally. (Global configuration -> Server -> Security provider-> "MaxUsersCount")
    My conclusion is that we ran out of login sessions during night time for some unknown reason, causing a authorization failed exception on the app servers.
    Plausible?
    best regards,
    Richard Linnander

  • 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#

  • 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.

  • URG: Invalid Response Code: (401) Unauthorized to a web service

    Hello,
       I'm trying to configure a SSO between CE and ERP. I want to access a Web Services of the ERP from WSNavigator through a logical destination, but I have the following error,
    "Invalid Response Code: (401) Unauthorized"
    I dont know what step I'm doing wrong, I've already configured the CE Certificate in the ERP, I've put the flag in the Web Service Endpoint as "HTTP Authentication" with "Logon Tickets" and in the Logical Destination I've put the flag "HTTP Authentication" with "Logon Tickets".
    I dont know what's wrong. Please if anyone have a guide or tutorial for configure this, I would appreciate it very much.
    Thanks
    Regards
    SU

    Hi,
    Did you check the domain of CE and ERP are the same.
    Check the Port at the end of the WSDL, it should have the full domain.
    Regards, Gilles.

  • Invalid Response Code: (401) Unauthorized.

    Hi,
    I am calling a WebService from a Adobe Form designed using WebDynpro.
    When the Webservice is called an exception is raised and the following message is shown.
    "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized"
    Anbody has any idea why this exception is raised.
    Thanks,
    Sameer

    Hi All,
    I am working on PI-Trex connection for payload based message search.
    After configuring all of the steps as per the guide.
    when i tried to activate Index Administration for Runtime workbench for Adapter Engine I got this runtime exception.
    An error occurred: Class: com.sap.aii.rwb.web.trex.CentralTrexException : Message: RemoteException in Method: CentralTrexManager: activateIndex( String ). TrexException: Failed to activate Trex service. Message: Service call exception;
    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"; To-String: java.rmi.RemoteException: Service call exception;
    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"
    does any body have any clue ?
    Regards,
    Divyesh

  • Adobe Form Error: Invalid Response Code: (401) Unauthorized. The request...

    When trying to run an Adobe Form webdynpro app, I am receiving the following error:
    <b>Invalid Response Code: (401) Unauthorized. The requested URL was:"http://localhost:50000/AdobeDocumentServices/Config?style=document"</b>
    I have checked the ADS test at <server:port>/AdobeDocumentServices/Config; the test did return the version number.
    <i><b>Does anyone have any other ideas of what I should check?</b></i>
    Also, why is it running a url with "localhost" in it?  If this is running on the java was server, then I guess that could make sense.  But if the url request is requesting something from localhost, isn't that my computer?  I guess it depends on if this is a server request or a client request.  I hope this is a server request.

    Sumit -
    First, I think config is okay.  I can run the web service under my id okay.
    Second, I am not sure what the impact is having the build done locally.
    I am building and deploying locally in NWDS to my local portal. But then I am sending the EAR file to the system admin to deploy to my dev server (I am doing this because they will not give out the SDM password.  And, I am waiting on the NWDI setup to be complete; when that is complete I will let NWDI deploy to the dev portal.)
    Incidentally, I am receiving this error on the dev server, not my local portal. (I have tried running on my local portal, but I am getting a socket timeout error. But this is interesting, because I <i>can</i> run other webdynpro non-Adobe apps. I am not tracking down this error at this point because I am really just interested in the dev server.  If I get past the 401 error on the dev server, and then get the socket timout issue...then I will worry about it.)

  • Sharepoint webservice call - Invalid Response Code: (401) Unauthorized.

    Hello,
    when I try to call a webservice provided by Sharepoint Services 3.0 I always get the following:
    InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://[myserver]/_vti_bin/dws.asmx?WSDL, used user to connect: [myuser]"
    That myuser was given in Netweaver Administrator in the SOA Management -> Destination Template Management as "HTTP authentication - user id/passwort (basic). The destination type was set to WSDL with that URL.
    Password I cheked several times. When I call this URL in a browser I can access with that user...
    Any idea whats wrong or what I have to change?
    Thx in advance,
    Frank

    Hi,
    Could you check the proxy settings on the engine? It could be seen in the NetWeaverAdministrator -> SOA Management -> Global Settings.
    The assumption is that the request to wsdl goes (does not go) via proxy. Could the check what is the expected behavior.
    A second assumption that comes to my mind is to double-check the password typing. It could be that something is mis typed.
    A third assumption is is it certian that the web service WSDL expect basic authentication? It could be protected with other mechanisms which would result in the same result.
    ~Dimitar

  • InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized

    Hi,
    We are creating a new role in ERM.We are at Approval stage.
    When we have clicked on APPROVAL option, it is giving error like,
    Unknown error occurred while performing operation (Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<hostname>:<port>/VirsaCCWFExitService5_2Service/Config1?wsdl&style=document")
    Please check and advice in this.
    Thanks & Regards,
    KKRao.

    Hi Mohit,
    Thanks for your solution. My issue got resolved with the noted mentioned by you.
    We have used the below mentioned link at Web Service Info. for AE Workflow in ERM.
    http://<server name>:<port number>/VirsaCCWFExitService5_2Service/Config1?wsdl&style=document
    But it should be the below mentioned link as per the note.
    http://<server name>:<port number>/AEWFRequestSubmissionService_5_2/Config1?wsdl&style=document
    Regards,
    KKRao.

  • Invalid Response Code: (401) Unauthorized error in running Interactive form

    Dear All,
    I am trying to deploy and run a interactive form developed in webdynpro. but i get the following error upon running the form :
    com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:282)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:224)
         at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:483)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
         at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:279)
         ... 27 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:836)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1238)
         at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
         ... 29 more
    I am using a NW04 sandbox server. I have checked the configuration steps and even did the Quick test in AdobeDocumentServices and got the expected response.
    I have verified the ADSUser settings and password too. And still i am getting this error.
    Can you please let me know if any other settings are required.
    Thanks in Advance,
    Bharat

    Dear BASIS Guys,
       Now i'm implement LAC 2.0 on SRM 5.0 , when i test the lac by smoke test the error occured following belowing ,
    #1.#00144F50BED1007C000000150000377400043741BCF38D1C#1186655389322#com.sap.srm.la.server.msg.JcoServerController#sap.com/com.sap.srm.la#com.sap.srm.la.server.msg.JcoServerController#SRMSTPUR#165##erpdevsrci_SRD_103409850#SRMSTPUR#6b11d670466311dcc1a400144f50bed1#SAPEngine_Application_Thread[impl:3]_18##0#0#Warning#1#/Applications/SRMLA/SERVER#Plain###Auction cannot be viewed in current status
            at com.sap.srm.la.server.jco.services.AbstractJcoService.convertToServerException(Unknown Source)
            at com.sap.srm.la.server.jco.services.AbstractJcoService.execute(Unknown Source)
            at com.sap.srm.la.server.jco.services.JcoServiceProvider.logon(Unknown Source)
            at com.sap.srm.la.server.msg.JcoServerController.login(Unknown Source)
            at com.sap.srm.la.server.jmx.JMXMonitorServerController.login(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.handleHelloReq(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.processRequestMessages(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.processAppletRequest(Unknown Source)
            at com.sap.srm.la.server.msg.MessagingServlet.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
           Please help about how to solve and configre it .
    BR,
    Rang

  • Invalid Response Code: (401) Unauthorized sending the SOAP request to XI

    Hi all,
    I am getting following error when i try to send the SOAP request to XI.
    Can any one please tell me what could be the problem.
    Kind Regards,
    Kiran

    Hi,
    Check out the user permission and role.
    I think this link help you the most
    /people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
    Check these links :
    http://www.w3.org/2000/xp/Group/1/10/11/soap12-part2.xml
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/27fd3b651f6a1ce10000000a11402f/content.htm
    Testing XI SOAP scenario via XMLSpy
    Re: SOAP Sender ADAPTER 401 No Authorisation
    Re: XI Web Service - Code: (401) Unauthorized.
    Try soap client https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa5f42830d8
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • TransportBindingException: Invalid Response code (401). [Unauthorized].

    Hello Experts.
    I have create an ABAP provider system with SAP_DEFAULT_PROFILE for WS. I have set the runtime authentication as technical user and I am also able to see the web service when I ping the provider system.
    When I try to test this web service through WSNAVIGATOR I get the following error message
    TransportNindingException: Invalid Response Code (401). Server [http://<server>:<port>/sap/bc/srt/rfc/sap/zwam_get_approver_agent_wsd/400/zwammi_srv_apprv/zwammi_srv_apprv] returned message [Unauthorized]. Http Proxy Info: none
    Please provide your valuable inputs.
    Thanks & Regards
    Gaurang Dayal

    Hi All,
    I am working on PI-Trex connection for payload based message search.
    After configuring all of the steps as per the guide.
    when i tried to activate Index Administration for Runtime workbench for Adapter Engine I got this runtime exception.
    An error occurred: Class: com.sap.aii.rwb.web.trex.CentralTrexException : Message: RemoteException in Method: CentralTrexManager: activateIndex( String ). TrexException: Failed to activate Trex service. Message: Service call exception;
    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"; To-String: java.rmi.RemoteException: Service call exception;
    nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://pitestdaea9d:57000/TrexProcessor/basic?style=document"
    does any body have any clue ?
    Regards,
    Divyesh

  • Exception while calling ADS Inappropriate WSIL Invalid Response Code: (401)

    Hi Experts,
    Our ADS configuration was done on XCE a long time back and even reader credentials were installed and everything is working fine.
    Couple of days back, we enabled SSL configuration on the system. Even got the certificates signed by CA and HTTPS is also working without any problems.
    Then, problems are happening when we configured WebService SSL connection for ADS following the steps from
    http://help.sap.com/saphelp_nwce72/helpdata/en/90/71d273fa724cc9bb644ab00405e6f8/content.htm and also the SAP How to guide from: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d02262d8-7814-2c10-5c97-d855d38e9923?quicklink=index&overridelayout=true.
    Among other steps, I have created a View in Key Storage called "ADSCerts" and created an entry "ADSUser" as per the document, generated CSR request, imported CSR response and also the CA's root certificate.
    I exported the ADSUser-cert certificate from here and imported into Identity Management for the User ADSUser under its Certificates tab.
    Also updated SecureConfigPort_Document (in Destination Template Management under SOA Administration) security settings to X.509 Client Certificate and in Details, I have chosen the View ADSCerts and entry ADSUser.
    Even after all the steps as per the document and the help.sap.com link provided above, when I try to test this through a test URL
    (https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp) that our developers have given me for this, I get a (401)
    Unauthorized error:
    500 Internal Server Error is returned for HTTP request
    [https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp]
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException:
    Exception while calling ADS; Inappropriate WSIL; configure the
    destination path
    correctly./ncom.sap.esi.esp.service.server.query.discovery.ExtendedServiceException:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested
    URL was:"Connect to https://host:https-port/inspection.wsil/"
    I have checked the security log file and it shows:
    LOGIN.FAILED
    User: N/A
    IP Address: 192.165.90.102
    Authentication Stack: sap.com/tcesiesp~wsil*inspection.wsil
    Also, ran Security Troubleshooting Wizard from NWA and reproduced the problem while collecting these traces. There were some entries like:
    Login failed!
    [EXCEPTION]
    java.security.PrivilegedActionException:
    com.sap.engine.services.security.exceptions.BaseLoginException: Cannot
    authenticate the user.
    Caused by: com.sap.security.core.server.jaas.DetailedLoginException:
    Received no SAP Authentication Assertion Ticket.
    Received no SAPLogonTicket. Authentication stack:
    [sap.com/tcesiesp~wsil*inspection.wsil].
    Any idea how I can solve this? Anybody got this error?
    Thanks,
    Shitij

    Opened an OSS message with SAP and they told me that the certificates being generated from NWA are in a different format from what is accepted in user store.
    So, generated new certificates from OS level using sapgenpse and now it worked.

  • Response Code: (401) Unauthorized

    While testing the demoszenario "Service-Enabled Procurement Scenario" from the SAP discovery system the following error arises:
    Error: RemoteException: Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:http://iwdfvm2160:51080/XISOAPAdapter/MessageServlet?channel=:WebService:SO_WS_SOAP_SENDER
    The error appears in the first step when a salesorder should be created via a soap-adapter from an adobe offline form.
    The portal user = proc_sales
    Is there anybody who can answer the following questions?
    1. Is there any configuration necessary to make the scenario running?
    If yes, where is the documentation?
    2. which user is authorized to call the webservice for creating the sales order and where has this user to be configured?
    Thanks for a soon answer.
    Regards Marlies

    I found the solution on my own. Here it is
    Goto VisualAdmin:
    Select Cluster/Services/Destinations
    Select Webservice
    Select  sap.com/XApps_XI_SO_WS_Proxy/com.sap.esadiscovery.so.wsproxy.XApps_XI_SO_WS_ProxyName/ESA_MI_SO_CREATE_WS_INPort
    Change the Hostname in the following Custom URL to the right hostname: http://iwdfvm1127.wdf.sap.corp:51080/XISOAPAdapter/MessageServlet?channel=:WebService:GM_WS_SOAP_SENDER
    In our case the correct hostname is iwdfvm2160.
    Further set the authentication to basic and fill username with PIAPPLUSER and Password with the approriate password

  • InvalidResponseCodeException: Invalid Response Code: (401)

    Hello all,
    I imported  adaptive web service model in webdynpro java, and tried to execute the model. I am getting following exception:
    Exception on execution of web service on destination 'SP_DEST' for operation 'Query' in interface 'QueryServiceSoap': Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"
    In visual admin I have put basic authentication with username and password for destinations.
    Any solutions  please...?
    Thanks in advance,
    Sandesh

    Hi
    Probably you need to configure second destination(As you suggested above)
    check this hlep might help you.[Creating Web Service Physical Destinations|http://help.sap.com/saphelp_nwce711/helpdata/en/47/fb728265553c88e10000000a42189c/content.htm]
    [ Configuring Web Services and Web Service Clients in the SAP NetWeaver Administrator   |http://help.sap.com/saphelp_nwce10/helpdata/en/44/4d2bb1c6b00597e10000000a155369/content.htm]
    Thanks

Maybe you are looking for