SOAP Asynch Message Giving HTTP 401 Unauthorized error

Hi experts,
<Br>
We are sending ORDERS IDOC Asynchronously from ECC To XI and XI is sending it to Vendor using SOAP.
This interface was working OK and now we had HTTP 401 error. Checked URL,Username and password to the Vendor. It looks OK. It is working OK if I try it in browser.
</br>
<Br>
I tried to refresh the object by changing values and reactivating,did cache refresh..Still didn't work.When I try to check for the problem found J2EE_GUEST user was locked.Same was unlocked and tried again.
</BR>
<BR>
This IDOC is requesting for acknowledgement( trying to suppress ack by running IDX_NOALE).
But now I need to reprocess these failed messages.I was trying in different ways and it is not going thru.
Any pointers are really appreciated.
</BR>
Adapter Engine Log is as follows:
<BR>
2009-10-27 16:37:30 Success The message was successfully retrieved from the receive queue.
<BR>
2009-10-27 16:37:30 Success The message status set to DLNG.
<BR>
2009-10-27 16:37:30 Success Delivering to channel: CC_ORDERS05_TO_XYZ_SOAP
<BR>
2009-10-27 16:37:30 Success MP: Entering module processor
<BR>
2009-10-27 16:37:30 Success MP: Processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
<BR>2009-10-27 16:37:30 Success SOAP: request message entering the adapter with user J2EE_GUEST
<BR>2009-10-27 16:37:30 Error Exception caught by adapter framework: SOAP: response message contains an error <BR>XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
<BR>2009-10-27 16:37:30 Success SOAP: completed the processing
<BR>2009-10-27 16:37:30 Error SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - <BR>HTTP 401 Unauthorized
<BR>2009-10-27 16:37:30 Success SOAP: sending a delivery error ack ...
<BR>2009-10-27 16:37:30 Success SOAP: sent a delivery error ack
<BR>2009-10-27 16:37:30 Success Acknowledgement creation triggered for type: SystemErrorAck
<BR>2009-10-27 16:37:30 Success Acknowledgement creation triggered for type: AckNotSupported
<BR>2009-10-27 16:37:30 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: <BR>response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
<BR>2009-10-27 16:37:30 Success Acknowledgement sent successfully for type: SystemErrorAck
<BR>2009-10-27 16:37:30 Success Acknowledgement sent successfully for type: AckNotSupported
<BR>2009-10-27 16:37:30 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System <BR>failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error <BR>XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized.
<BR>2009-10-27 16:37:30 Error The message status set to NDLV.
<BR>
<BR>Regards,
<BR>Ramesh
Edited by: RameshK99 on Oct 28, 2009 1:57 AM

Can you run a sniffer tool & see the actual reason for 401 unauthorized error? 6172 weblog: Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway by Stefan Grube...
Generally, 401 unauthorized is when the target system rejects the request...  Also, What type of authentication does the target webservice have.?? B'cos i ran into a similar problem with Ms-Webservice. (they were using NTLM authentication). It works from a browser but not from PI. So we installed SOAP-AXIS adapter to support NTLM based authentication.
Regards,
Siva Maranani

Similar Messages

  • HTTP 401 Unauthorized, error in proxy to SOAP Scenario

    Hi all,
    We got the below error in our proxy to SOAP Scenario.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized
    We configured User Authentication,Proxy and Proxy User Authentication for the Receiver Communication Channel correctly still we are getting this error.
    So please let me know what could be the possible reasons behind it and how to resolve it.
    Waiting for your valuable response.

    Hi,
    Consider the parameters connection pool size and connection wait time:
    ume.r3.connection.master.poolmaxsize
    ume.r3.connection.master.poolmaxwait
    These parameters are described in the note below:
    #821026 - AdapterEngine messaging URL returns HTTP 401 under high load
    Also, ensure you have maintained the correct password, which MUST be the same, for all the service users
    on XI. You may check all the places it should be maintained, such as Exchange Profile, SU01, SLDAPICUST, etc..
    Please kindly check the note below:
    PI 7.1:
    #999962 - PI 7.10: Change passwords of PI service users
    XI 7.0
    #936093 - XI 7.0: Changing the passwords of XI service users
    XI 3.0
    #721548 - XI 3.0: Changing the passwords of the XI service users
    And ensure that the user has the correct role as per link below:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/9f/d12940cbf2195de10000000a1550b0/frameset.htm
    Regards,
    Caio Cagnani

  • Receiver SOAP Adapter Problem-HTTP 401 Unauthorized

    We are using XI-7.0. We have scenario IDOC >> XI >> SOAP by making asynchornous call.
    Vendor has two web server - A and B. Both the servers set up are identical in the vendor system.
    Web server "A" works fine from XML spy tool as well as XI for sending service order SOAP messages.
    Web server "B", we are able to send SOAP messages from XML spy successfully and vendor also confirms that it updates database in their system.
    But we are not able to send SOAP messages from XI on Server "B". We are getting following error message in the adpter engine.
    Can someone please help me?   Thanks!
    <i>SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
    MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
    Exception caught by adapter framework: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized
    Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized.</i>
    Thanks!
    MP

    Hi Riya,
    For SSL configuration you can check,
    Rajendra's blog http://scn.sap.com/people/rajendra.badi/blog/2011/11/23/pi-711-transport-level-secuirty-communicating-with-external-web-service-from-soap-adapter-through-ssl
    Khade's blog http://scn.sap.com/people/s.khade/blog/2011/09/06/secured-connection-to-external-web-service-using-sap-xipi.
    Regards.

  • SOAP - HTTP 401 Unauthorised error

    Hi,
    THe scenario is FILE - XI - WEB SERVICE.
    My SOAP receiver communication channel throws the following error:
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized"
    If I try to send the data through XML SPY I get the same 401 exception. But when I open the portal through browser with the same user ID and password ,it opens the portal view.
    Please suggest
    Thanks,
    Tiny

    Hi Tiny,
    Any of the following could be the reason:
    u2022 Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER
    u2022 If the error is in XI Adapter, then your port entry should J2EE port 5<System no>
    u2022 If the error is in Adapter Engine
    u2013then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.
    u2022 May be wrong password for user XIISUSER
    u2022 May be wrong password for user XIAFUSER
    u2013 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
    Regards,
    Divya

  • HTTP error: 401 (unauthorized)  "Error in configSet"

    Hi ,
    I am getting this error "HTTP error: 401 (unauthorized)  "Error in configSet"  in the following scenarios.
    A. Creating a content repository from SAP in T-code "CSADMIN"
    B.Accessing the http://<domainname>:<portno>
    If i give complete URL it is working.
    Example :
    http://<domain name>:<port no>/ContentServer/ContentServer.dll?serverInfo
    when i provide,only with domain name and password in the url
    it is asking for username & password and later it gives 401 unauthorized error
    http://<domainname>:<portno>
    I assume that this error is due the security settings either in IIS or in OS level.
    system landscape:
    CRM :5.0
    SAP Content Server :6.3
    Win server 2003 with sp2
    Note:
    Content Server is running and i can see the status from SAP.
    Thanks in Advance.
    Points will be awardeed for right answers.
    Regards
    Ganesh
    Edited by: ganesh subbiah on Aug 13, 2008 4:39 PM

    Check the following :
    - In IIS application pools check "Identity" property for the content server application is "LocalSystem", and not ApplicationPoolIdentity
    - in IIS "handler mapping" on your content server site, check ISAPI-dll is enabled
    - user access for "NETWORK SERVICE" following note 658442 - execute command :
    cacls <INSTDIR> /T /E /G "NETWORK SERVICE":F
    The first point has solved the issue for me.
      Pierre

  • ** HTTP 401 Unauthorized - IDoc to IDoc scenario

    Hi Friends,
    I am doing IDoc to IDoc scenario. For the sender side I am using XI adapter instead of IDoc Adapter. Because, we don't have access of third party source (SAP) system. We take the source payload from message mapping and test the same in RWB --> Component Monitoring --> Integration Server --> Adapter Engine XD1 --> Test Message Tab.
    After give all the sender details, when I test the scenario, it throws the following error 'Error while sending message; invalid content type for SOAP; TEXT/HTML; HTTP 401 Unauthorized'.
    What could be the problem ? Could you kindly tell me friends.
    Kind Regards,
    Jegathees P.

    Hi
    Check Pipeling entry in SLD
    SLD -> Business System -> Open your XI business system and check for the pipeline entry there.
    It should be  http://server:httpport/sap/xi/engine?type=entry
    Check also this blog for HTTP 401 Error
    Http* Errors in XI

  • 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 Registering Workflow Manager

    I have installed the workflow manager successfully. However, when I try to run Register-SPWorkflowService I get a 401 Unauthorized error. I am running SharePoint 2013 Management Shell as administrator.
    When I use internet explorer to browse to https://FQDNofServer:12290 I get prompted for my password 3 times and then get the Not Authorized Error here as well. I have tried this from the local host as well as remote machines with the same result therefore,
    I don't think I need to disable loopback check.
    My user is a member of the Workflow AdminGroup as well as a local admin, farm administrator and I also added my account as an administrator for the Workflow Service Application in Central Administration. I also tried giving the workflow service account full
    read on the web application.
    I cannot find anything in the ULS logs or windows event viewer logs when the login fails. Any help would be appreciated.
    Thank You.

    Hi,
    Glad to hear that you solve this issue, thanks for your sharing.
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • 401 Unauthorized Error When calling a SharePoint REST web service from SharePoint 2013 Workflow

    We have our Workflow Manger installed on the same server as our SharePoint 2013 WFE development environment. When creating a SharePoint 2013 Workflow all Calls to a SharePoint 2013 REST web service results in a 401 Unauthorized error.
    As an example I created a simple workflow that should return a JSON result. The REST Url returns the results in the browser without error.
    Set Variable:webServiceUrl to https://<hostnamedsitecollection>/_vti_bin/client.svc/web/lists/getbytitle('ISR%20Approvers')/Items?$select=Title&$filter=Title%20eq%20%27General%27
    then Build{...} Dictionary (Output to Variable:requestHeaders)
    then Call [%Variable:webServiceUrl%] HTTP web service with request (ResponseContent to Variable:responseContent |ResponseHeaders to responseHeaders | ResponseStatusCode to Variable:responseCode)
    The RequestHeader is set to the requestHeaders variable though the web service call properties
    then Log Variable:responseCode to the workflow history list
    After manually running the workflow in SharePoint on a list item in the ISR Approvers list it Logs "Unauthorized" in the Workflow History Log. It does this with every SharePoint REST web service call that I have tried through the workflow.
    It doesn't have anything to do with the Workflow Manger being installed on the same machine as the SharePoint WFE does it?
    Thank You for any insight

    Hi,
    According to your post, my understanding is that you had 401 Unauthorized Error when calling a SharePoint REST web service from SharePoint 2013 Workflow.
    Please make sure you use the ‘Call HTTP Web Service’ correctly.
    You can enter the URL into the brower to check whether it is correctly.
    You need to
    create the Request header requestHeaders
    using a Dictionary:
    Accept : application/json;odata=verbose
    Content-Type : application/json;odata=verbose
    To associate the
    requestHeaders variable, select the Call action
    property, set the RequestHeaders property to
    requestHeaders.
    Please refer to the following articles:
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013
    Calling the SharePoint 2013 Rest API from a SharePoint Designer
    Workflow
    In addtion, you need to make sure you install the workflow manager correctly.
    More information:
    Install and configure workflow for SharePoint Server 2013
    Known Issues in Workflow Manager 1.0
    Troubleshooting Workflow Manager 1.0 Management and Execution
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • 401 - Unauthorized error while connecting to userprofile web service in InfoPath 2010

    Hello,
    I have 2wfe (NLB), 2app, 1db farm.
    Everything is working fine except for one computer! I have several InfoPath forms, they have custom webservices and userprofile web service. They work without any problem, but there is one computer that gives me 401-Unathourized Error! I'm not sure it is
    double hop issue because there is no other user/computer we are having a problem!
    I checked several blogs, they refer to hosts file, but not sure because why is it happening only on one computer?
    I have hosts files refers to 127.0.0.1 webapp .
    What could be the issue? I have other Service Apps are working without any issues.
    Could you please help me?
    Thank You
    Orrin

    Hi  ,
    No, due to the issue is happening only on one computer.
    The error "(401) Unauthorized" usually indicates that the connection has been established but the permission check fails.  InfoPath Form Services uses the application pool identity of the web
    application to connect to resources.
    Does the account  which login the computer have permission to connect to User Profile Service Application?
    For a workaround, you can go to IIS Manager , set the User Profile Application Pool to Anonymous Access and try again.
    Also you can have a look at the blog:
    http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • (401) unauthorized error when accessing web service....

    Hello people! Can someone could possibly help me out. I'm try to consume a web service in .net technology. This was supposedly working already but lately I'm already given a (401) unauthorized error when consuming the web services. Here the code that was working couple of days ago....
    package samples;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import javax.xml.namespace.QName;
    public class LogIn
         private String url = "http://www-cebu/apps/webservices/fscservice.asmx?wsdl";
         private String action="FSC Services/LogIn";
         private String result="";
         private String username="";
         private String password="";
         private String domain="";
         public LogIn(String username, String password,String domain)
              this.username = username;
              this.password = password;
              this.domain = domain;
              try
                   Service service = new Service();
                   Call call = (Call)service.createCall();
                   call.setTargetEndpointAddress(new java.net.URL(url));
                   call.setOperationName(new QName("FSC Services/LogIn","LogIn"));
                   call.addParameter("username",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
                   call.addParameter("password",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
                   call.addParameter("domain",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
                   call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
                   call.setUseSOAPAction(true);
                   call.setSOAPActionURI(action);
                   result = (String)call.invoke(new Object[] {username,password,domain});
              catch (Exception e)
                   System.err.println(e.toString());
         public String getResult()
              return result;     
         public static void main(String [] args)
                   LogIn test = new LogIn("username","password","domain");     
                   System.out.println(test.getResult());
    }

    1. Use iFrame to show you report from Resporting Services in your Web App.
    Or :
    2. Use Report Viewer in your Web App if you use .NET, and use this code to pass your parameters :
    ReportViewer1.ServerReport.Credential = new System.Network.NetworkCredential(“your name”, “your password”, “your domain”);

  • HTTP 401 - UNAUTHORIZED. in HTTP TO RFC scenario

    Hi Friends,
    I am beginner of XI and trying out HTTP TO RFC scenario referring the blog:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    but got stuck while sending a message from runtime workbench.
    I am getting HTTP 401 - UNAUTHORIZED. Please dont mind if it silly doubt. I am beginner to XI and badly stuck up here.
    Also to let you know -
    In Runtime Workbench > Integration Server > Integration Engine XI1. To the left there is yellow triangle  but all others (BPE XI1, Mapping Runtime xi01 and Adapter Engine XI01)
    were green. Is Integration Engine XI1 should also be green? is that causing a problem?
    Please give your valuable suggestions.
    Looking forward for your response.
    Thanks and Regards
    Sam

    Samuel,
    Check out your RFC adapter parameters / user id and password.
    Also check whether userid used in RFC adapter has Authorization to run RFC on Remote system.
    Nilesh

  • 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

  • AXL 6 - 401 Unauthorized Errors.

    AXL 6 is buggy, that's a fact.
    Be aware that when AXL returns a 401 unauthorized error, it doesnt necessarily mean your credentials are wrong - as evidenced by the fact that you can pass in one set of credentials, do a bunch of calls and when call manager feels like it, have some work and some return the 401.
    Just an FYI from my own personal experience...
    (e.g. I can start an app, have a call work, then the next call not work, returning a 401. Then without changing any code or my credentials, start the call process again and have it work. Note: This is NOT a throttling issue.)

    Negative man. I fixed the problem by repeating the call in a loop (I put a counter to kill it eventually) until it finally goes through AND CM IS ABLE TO SEND A RESPONSE. Its not formatting. The server catches my call and processes it (I can see it in the TRACE logs) it just fails on the return randomly providing a 401 or forced closed connection. This is a bug. The issue is communication from CM after the processing of the call to me. Cisco Developer services has it now.
    As for you not getting these, good. I can only guess its the difference in our environment variables. Either way, thats not a user problem, thats a product development/and or requirements specification problem.

  • 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

Maybe you are looking for