Http - XI - R/3  (http2rfc) scenario giving 401 unauthorized error

Hi,
I am new to SAP world. I am following this blog to /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
to test http2rfc scenario to make a BAPI call in r/3. I am getting following error message:
  <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
  <SAP:P1>401</SAP:P1>
  <SAP:P2>Unauthorized</SAP:P2>
(Got this using SXMB_MONI) in XI system)
My congifuration of the scenario is correct as I tested in the configuration tool. Also, the request in SXMB_MONI looks correct.
Any help would be greatly appreciated.
Thanks,
Paresh

Hi Jin,
I am getting error in Call Adapter section. Can you please tell me what exactly that means?
Thanks for your help
Following is the trace from the moni...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Call Adapter
  -->
- <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
  <Trace level="1" type="T">Party normalization: sender</Trace>
  <Trace level="1" type="T">Sender scheme external = XIParty</Trace>
  <Trace level="1" type="T">Sender agency external = http://sap.com/xi/XI</Trace>
  <Trace level="1" type="T">Sender party external =</Trace>
  <Trace level="1" type="T">Sender party normalized =</Trace>
  <Trace level="1" type="B" name="CL_XMS_HTTP_HANDLER-HANDLE_REQUEST" />
- <!--  ************************************
  -->
  <Trace level="1" type="T">XMB was called with URL /sap/xi/engine?type=entry</Trace>
  <Trace level="1" type="T">COMMIT is done by XMB !</Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />
- <!--  ************************************
  -->
  <Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />
- <!--  ************************************
  -->
  <Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />
  <Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />
  <Trace level="1" type="T">****************************************************</Trace>
  <Trace level="1" type="T">* *</Trace>
  <Trace level="1" type="T">* *</Trace>
  <Trace level="1" type="T">XMB entry processing</Trace>
  <Trace level="1" type="T">system-ID = XI</Trace>
  <Trace level="1" type="T">client = 020</Trace>
  <Trace level="1" type="T">language = E</Trace>
  <Trace level="1" type="T">user = XISUPER</Trace>
  <Trace level="1" type="Timestamp">2007-01-04T23:16:20Z CET</Trace>
  <Trace level="1" type="T">* *</Trace>
  <Trace level="1" type="T">* *</Trace>
  <Trace level="1" type="T">****************************************************</Trace>
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE">
  <Trace level="1" type="T">Message-GUID = 960DE4009C4911DBB8590017A4A7EA1A</Trace>
  <Trace level="1" type="T">PLNAME = CENTRAL</Trace>
  <Trace level="1" type="T">QOS = BE</Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
- <!--  ************************************
  -->
  <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
  <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
- <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
  <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
  <Trace level="1" type="T">Cache Content is up to date</Trace>
  </Trace>
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
- <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
  <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
  <Trace level="1" type="T">Cache Content is up to date</Trace>
  </Trace>
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
- <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV">
  <Trace level="1" type="T">number of receivers: 1</Trace>
  <Trace level="1" type="T">Single-receiver split case</Trace>
  </Trace>
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
- <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
- <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV">
  <Trace level="1" type="T">Interface Mapping urn:http2rfc/xi IM_CompanyID_To_BAPI</Trace>
  </Trace>
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
- <Trace level="1" type="B" name="PLSRV_OUTBOUND_BINDING">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
  <Trace level="1" type="B" name="CL_XMS_PLSRV_OUTBINDING-ENTER_PLSRV" />
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
  <Trace level="1" type="B" name="PLSRV_CALL_ADAPTER" />
- <!--  ************************************
  -->
- <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
  <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
- <!--  ************************************
  -->
- <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">
- <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">
  <Trace level="1" type="System_Error">HTTP-client: error response= <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  401 &nbsp Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Authentication did not succeed.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  No details available</pre></font></td> </tr> </body> </html></Trace>
  </Trace>
  </Trace>
  </Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
  </Trace>
  <Trace level="1" type="T">SystemError message generated. Guid: F4A40666B2A12449A7D4C0FFF841E1CD</Trace>
  <Trace level="1" type="T">Error during execution of message : 960DE4009C4911DBB8590017A4A7EA1A</Trace>
  <Trace level="1" type="T">ApplicationMessage was (=RefToMsgId): 960DE4009C4911DBB8590017A4A7EA1A</Trace>
  <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
- <!--  ************************************
  -->
  </SAP:Trac

Similar Messages

  • 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

  • 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

  • Getting 401 Unauthorized error when accessing Resource History in OIM11gR2

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

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

  • 401 Unauthorized Error 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

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

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

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

  • 401 Unauthorized Error When calling a 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”);

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

  • 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

  • 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

  • HTTP error: 401 unauthorized -error in photo upload

    Hi
    Please suggest in OAAD,how to rectify the error ' HTTP error: 401 unauthorized '  during Photo upload in IT0002.
    Regards
    Ritu Saurabh

    make sure that u have activate the content server in SCIF t code
    if yes check with ur basis team as arun said

  • The request failed with HTTP status 401: Unauthorized error message

    Hi
    While processing security (OLS v4.3 SQL2000), we encounter the following problem towards the end of the process:
    Creating Desktop folders
    Completed
    Error occurred
    CreateJournalReport: The request failed with HTTP status 401: Unauthorized., FindAppsetFolder Failed
    We have checked the IIS as recommended in some previous threads but we still have the same error message each time we process security.
    Does anyone have any other ideas what the problem could be?
    Many thanks

    Hi,
    There are several SAP notes speaking about this subject. For example, check if SAP note numbers 1103004 or 1104690 can help you.
    Kind Regards,
    Patrick

  • 401:Unauthorized error while consuming a MOSS web service

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

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

Maybe you are looking for

  • How to install Master Suite CS5.5 on a new computer

    Where do I find the Download Link to install Adobe Master Suite CS5.5 on a new computer?

  • J2me polish compilling in netbeans

    I'm trying to integrate netbeans with j2me polish but when rebuilding I get an error Buildfile: build.xml clean.tar.src: clean.resources: clean.devices: clean: build.tar.src:       [tar] Building tar: D:\projects\MobileClient1\CP_Phone_Backup-Src.tar

  • JEE 6 Tutorial example missing

    I have downloaded the Java EE 6 tutorial examples. The hello2_basicauth example on basic authentication is missing. Does any one know why can that happen? Thanks in advance, Roberto

  • 2.1 - 2.0.2

    Hi Guys I cant take not having 3g anymore, so is there anyway of reverting back to 2.0.2 version? 2.1 Killed my 3g and now any application or system that uses it has become useless. Whenever I try to do something 3g drops to edge which is about as qu

  • Help Reqd: Idoc from XI to Amtrix (3rd party middleware)

    Hi, We have a proxy(SRM) to Idoc scenario. Now this Idoc needs to be sent to a non-SAP system (Amtrix) Currently the same requirement is being achived through R/3 using a TCP/IP RFC destination to amtrix. And this is being used in a TRFC port and the