(401) Unauthorized Error on Consuming Web Service

Hi
I consumed my web service in JSP but when I deploy the page. I get this error.
Application error occurred during request processing.
Details:   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://xxxx.xxx:xxxxx/WS_Preview/Config1?style=document"
Exception id: [001CC43ABAC0005F0000E0C30000672B0004A5BFC2A357D2]
I'm following this tutorial:
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true]
But I skipped the part in configuring my J2EE Visual Admin tool since I don't have access to our Visual Admin. Does it have to do with my access? BTW, I don't have access in our WS Navigator also.
Thanks.

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.

Similar Messages

  • (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”);

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

  • Authorization error while consuming web service in SOAP UI

    Hi,
    I am an ABAPer and do not have much knowledge about SOAMANAGER configuration.
    I have created a Web service and configured it using SOAMANAGER. I am trying to consume same web service using SOAP UI.
    But, I am getting an error HTTP-401 unauthorized.
    For authentication, I have selected "Transport level -User ID/Password" checkbox.
    What else, I have to configure, please let me know.
    Error log:
    Login failed
    What happened?
    calling the URL  <URL>.
    The application was running in the system <System> . Here, no credentials were provided.
    What can you do?
    If you still have a user ID , contact your system administrator.
    HTTP 401 - Unauthorized
    Your SAP Internet Communication Framework Team
    Regards,
    Sneha

    Hi Sneha,
    In SOAP UI, after importing WSDL, dig it till Request1, select it and go to Request property.
    Set Below things
    1. Authentication Type = Preemptive
    2. give username
    3 give password
    and send message.
    Regards,
    Mastan
    Message was edited by: mastan vali

  • Error while consuming Web Service (returning XML ) in ABAP

    Hi,
    i am trying to consume a web service in ABAP. ( webservice which takes a request and return a XML string back).
    I created a proxy class in SE80. and i tested it successfully.
    When i tried to use the class in my program, it is giving dump.
    i am not sure what is the problem. I guess it is not able to handle null values in XML.if that is the case. how to handle it..

    The dump says:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL      
    Error analysis                                                              
        An exception occurred that is explained in detail below.                
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught and                                                             
        therefore caused a runtime error.                                       
        The reason for the exception is:                                        
        You attempted to use a 'NULL' object reference (points to 'nothing')    
        access a component (variable: "LO_CLIENTPROXY").                        
        An object reference must point to an object (an instance of a class)    
        before it can be used to access components.                             
        Either the reference was never set or it was set to 'NULL' using the    
        CLEAR statement.                                                        
    I think this dump is because of the default value ( space) in some elements. How to avoide that.
    wheni catch CX_SY_REF_IS_INITIAL it is not giving any dump. But this is not my requirement. Because it is not getting anything into  response string.

  • Authentication error while consuming web service published in SR of CE 7.1

    Hi,
    I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.
    Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).
    Category: /System/Security/WS/Authentication
    Location: com.sap.engine.services.wssec.authentication.authenticate
    Application: sap.com/tcesiuddisrws~ear
    Thread: HTTP Worker [1]
    Data Source: j2ee\cluster\server0\log\system\security_00.log
    Correlator ID: 33747500000034965
    Argument Objects: 
    Arguments: 
    DSR Component: 
    DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce
    DSR User: 
    Message Code: 
    Session: 4196
    Transaction: 
    User: Guest
    Host: ########
    System: ###
    Instance: J00
    Node: server0
    following is the code in a C# .Net 2.0 from where the service is called.
                CnarService srv = new CnarService();
                NetworkCredential ic = new NetworkCredential("user", "password");
                CredentialCache cache = new CredentialCache();
                srv.UseDefaultCredentials = false;
                srv.PreAuthenticate = true;
                srv.Credentials = ic;
                try
                    srv.Timeout = 600;
                    cnarobject cnObj = srv.GetObject("1");
                    fnameTextBox.Text = cnObj.firstname;
                    lnameTextBox.Text = cnObj.lastname;
                    mnameTextBox.Text = cnObj.middlename;
                catch (WebException wex)
                    MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);
    I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net
    Please help.
    Regards
    Monty

    Hi,
    maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.
    I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.
    It is then used for retrieval of web services and publishing to the registry... i suppose.
    I am not sure though.
    Best regards,
    Vera

  • HELP: Error while consuming Web Service: ClassCastException

    Hi,
    I am trying to consume a web service that I deployed on Tomcat/Axis. Any guideline will be helpful. I generated stubs using WSDL2Java utility from Axis. The method I am trying to call is getFibo(), which returns an object FiboHolder. Unfortunately everytime it is throwing ClassCastException. I have couple of other methods in the service that returns int and int[] and both works fine. Could anyone please help why I am not able to consume the service when it is returning the object FiboHolder but works fine when I consume other methods of the service that returns int or int[]?
    Following is my client code:
        FibonacciService service =  new FibonacciServiceLocator();
        FibonacciSoapBindingStub stub = (FibonacciSoapBindingStub) service.getfibonacci(new URL("http://localhost:8080/axis/services/fibonacci"));
        // Now use the service to get a stub to the service
        FiboHolder fibHold = stub.getFibo();  //code errors out at runtime here
        System.out.println(fibHold.getFibo1());Following is the error message I get:
    org.apache.axis.AxisFault: java.lang.ClassCastException
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:
    Thanks,

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • "end-of-body reached" Error when consuming web service from 10GR1

    Hi all,
    Im consuming a number of web services, all of which work fine apart from one which returns the error:
    29266. 00000 - "end-of-body reached"
    *Cause:    The end of the HTTP response body was reached.
    *Action:   If the end of the HTTP response is reached prematurely, check if
    the HTTP response terminates prematurely. Otherwise, end the
    HTTP response.
    I don't understand why this is happening and would really appreciate some help. I have checked the invoke procedure and there is a ' utl_http.end_response(http_resp);' call which online searching suggests can be a cause of the problem (if not used). The procedure which calls the service is:
    function Events_Insert(id varchar2, pwd varchar2) return clob as
    req opf_portal.pkg_call_web_services.request;
    resp opf_portal.pkg_call_web_services.response;
    aEventRecord varchar2(4000);
    begin
    req := opf_portal.pkg_call_web_services.new_request('Events_Insert', 'xmlns="<removed>');
    aEventRecord:='<Options>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    <EventOptionRecord>
    <Comments>None</Comments>
    <Quantity>1</Quantity>
    <OptionID>53</OptionID>
    </EventOptionRecord>
    </Options>
    <Badges>
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    </Badges>
    <SpecialRequirements>
    <EventSpecialRequirementRecord>
    <Notes>bob</Notes>
    <Pvkey>110606</Pvkey>
    <RequirementCode>VEG</RequirementCode>
    </EventSpecialRequirementRecord>
    </SpecialRequirements>
    <Pvkey>110606</Pvkey>
    <DelegateType>DELEGATE</DelegateType>
    <EventID>524938</EventID>';
    opf_portal.pkg_call_web_services.add_parameter(req, 'userid', 'xsd:string', id);
    opf_portal.pkg_call_web_services.add_parameter(req, 'password', 'xsd:string', pwd);
    opf_portal.pkg_call_web_services.add_parameter(req, 'aEventRecord', 'xsd:complexType', aEventRecord);
    resp := opf_portal.pkg_call_web_services.invoke(req, '<removed>', '<removed>');
    return resp.doc.getstringval();
    end;

    Incase anybody else encounters this problem, it was my XML that was invalid:
    <EventBadgeRecord>
    <Company>Oracle</Company>
    <JobTitle>Consultant</JobTitle>
    <Name>GregCox</Name>
    <EventBadgeRecord>
    was missing '/' in closing tag

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Error when consuming Web Service in SAP R/3 ECC 6.0

    Hi to everyone.
    I have created an asynchronous Web Service in SAP R3, which I want to use in SAP PI later.
    When I test the Web Service using WS Navigator or XMLSpy the following error occurs:
    SOAP Runtime Protocol: ABAP Runtime exception: 1F09B73915F6B645E10000000A11447B occurred in program CL_SOAP_APPLICATION_PROXY=====CP CP in include CL_SOAP APPLICATIONPROXY=====CM008 at position 110
    SOAP Runtime Protocol: Exception message: An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    I tested another synchronous Web Service developed by me in the same system, and the error does not occurs.
    I just searched an OSS Note and does not find anything.
    There are some restrictions in Web Service type developed in SAP R/3?
    Thanks in advance.
    Rafael Rojas.

    Hi.
    I think I must clarify my question.
    The Web Service is not called inside SAP R/3 but externally. For testing pourpose I actually use WS Navigator and XMLSpy.
    The method inside ABAP Server Proxy which is exposed as a Web Server in SAP R/3 system is the following. Note that the Web Service is Asynchronous.
    METHOD zpi_ii_test_ws_4_in~test_ws_4_in.
      DATA: lwa_zpi_test TYPE zpi_test.
      lwa_zpi_test-mandt = input-mt_test-record-client.
      lwa_zpi_test-bukrs = input-mt_test-record-company.
      lwa_zpi_test-belnr = input-mt_test-record-document.
      lwa_zpi_test-gjahr = input-mt_test-record-year.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
    ENDMETHOD.
    I have created another Web Service in SAP R/3 which is Synchronous, and the error does not occurs. The following is the method inside ABAP Server Proxy which is exposed as a Web Service in SAP R/3 system.
    METHOD zpi_ii_test_ws_3_in~test_ws_3_in.
      DATA: l_bukrs      TYPE bukrs,
            l_belnr      TYPE belnr_d,
            l_gjahr      TYPE gjahr,
            lr_belnr     TYPE RANGE OF belnr_d,
            lwa_zpi_test TYPE zpi_test.
      l_bukrs = input-mt_req-msg+0(4).
      l_gjahr = input-mt_req-msg+4(4).
      SELECT MAX( belnr ) INTO l_belnr
        FROM zpi_test
        WHERE bukrs EQ l_bukrs
          AND belnr IN lr_belnr
          AND gjahr EQ l_gjahr.
      IF l_belnr IS INITIAL.
        l_belnr = '4700000000'.
      ELSE.
        l_belnr = l_belnr + 1.
      ENDIF.
      lwa_zpi_test-mandt = sy-mandt.
      lwa_zpi_test-bukrs = l_bukrs.
      lwa_zpi_test-belnr = l_belnr.
      lwa_zpi_test-gjahr = l_gjahr.
      INSERT zpi_test FROM lwa_zpi_test.
      COMMIT WORK.
      output-mt_resp-msg = l_belnr.
    ENDMETHOD.
    I hope to have clarified my question.
    Rafael Rojas.

  • Error while consuming Web service!!

    Hi All,
    1)I have created RFC enabled function module in R/3 back end
    2)I want to use this Funtion module in webservice callacble object
    3)I have created a callable object,but i am getting this error while testing
    invocation failed: The host of endpoint URL "http://<host>:8001/sap/bc/soap/rfc" was not found. Check if the WS Client is configured correctly. Probably endpoint URL is not set or use of HTTP Proxy is required.; nested exception is:
    java.net.UnknownHostException: proxy
    Secondly i tried using external webservice and this is :
    http://www.webservicex.net/WeatherForecast.asmx?WSDL
    When i use this WSDL url, i am getting the error as : Could Not load WSDL URL:http://www.webservicex.net/WeatherForecast.asmx?WSDL :GenericServiceFactory initialization problem while calling WSDL model.
    Can anybody guide me solving these two issue?
    Any help will be highly apprecaited!!
    Regards,
    Ameya

    Hi,
    Does anybody have any idea about it ?Please suggest any solution.
    Help will be highly appreciated.
    Regards,
    Ameya

  • 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

  • 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

  • Error consuming Web service from an ABAP Program

    Hello guys,
    I'm trying to consume a Web Service that is exposed in the internet. The conecction to the Web Service its via SSL.
    I'm having a problem at the moment I call the web service from my abap program.  But I'm able to test the same web service, from the SE80 tx with out trouble.
    I have identify that there is a difference in the SOAP envelope, that its received in the Web service, when I call it from the test enviorment and when I call it from the program. 
    This is how it is received from the TEST tool (a succesfull call of th WS) :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header><n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/"><TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Error</TraceLevel></n0:Trace></soap-env:Header><soap-env:Body><nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"><body>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;Mensaje&gt;&lt;RutEmpresa&gt;&lt;Numero&gt;76555400&lt;/Numero&gt;&lt;Digito&gt;4&lt;/Digito&gt;&lt;/RutEmpresa&gt;&lt;RutUsuario&gt;&lt;Numero&gt;12307972&lt;/Numero&gt;&lt;Digito&gt;8&lt;/Digito&gt;&lt;/RutUsuario&gt;&lt;Convenio&gt;58422&lt;/Convenio&gt;&lt;Pin&gt;aro79728&lt;/Pin&gt;&lt;Archivo&gt;&lt;Tipo&gt;PPR&lt;/Tipo&gt;&lt;Plantilla&gt;2142970592&lt;/Plantilla&gt;&lt;Nombre&gt;cargatest174.txt&lt;/Nombre&gt;&lt;Cuerpo&gt;&lt;![CDATA[G126919727     JORGE CRISTIAN VARGAS ROMERO                                                     0000VVC01600000000000000000000245FAC0000000089900032000021030000010000000000190000   2910200714082008Boletas honorarios|]]&gt;&lt;/Cuerpo&gt;&lt;/Archivo&gt;&lt;Fecha&gt;20080814&lt;/Fecha&gt;&lt;/Mensaje&gt;</body></nr1:putXMLDocument></soap-env:Body></soap-env:Envelope>
    And this is how  it is received when I consume the web service from the ABAP program.
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header><n0:Trace xmlns:n0="http://www.sap.com/webas/630/soap/features/runtime/tracing/"><TraceLevel xmlns="http://www.sap.com/webas/630/soap/features/runtime/tracing/">Error</TraceLevel></n0:Trace></soap-env:Header><soap-env:Body><nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"><body>&lt;?xml version="1.0" encoding="utf-8" ?&gt;&lt;nr1:putXMLDocument xmlns:nr1="http://bel.bci.cl/WsBEL/services/Carga"&gt;&lt;body&gt;&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;Mensaje&gt;&lt;RutEmpresa&gt;&lt;Numero&gt;76555400&lt;/Numero&gt;&lt;Digito&gt;4&lt;/Digito&gt;&lt;/RutEmpresa&gt;&lt;RutUsuario&gt;&lt;Numero&gt;12307972&lt;/Numero&gt;&lt;Digito&gt;8&lt;/Digito&gt;&lt;/RutUsuario&gt;&lt;Convenio&gt;58422&lt;/Convenio&gt;&lt;Pin&gt;aro79728&lt;/Pin&gt;&lt;Archivo&gt;&lt;Tipo&gt;PPR&lt;/Tipo&gt;&lt;Plantilla&gt;2142970592&lt;/Plantilla&gt;&lt;Nombre&gt;cargatest174.txt&lt;/Nombre&gt;&lt;Cuerpo&gt;&lt;![CDATA[G126919727 JORGE CRISTIAN VARGAS ROMERO 0000VVC01600000000000000000000245FAC0000000089900032000021030000010000000000190000 2910200714082008Boletas honorarios|]]&gt;&lt;/Cuerpo&gt;&lt;/Archivo&gt;&lt;Fecha&gt;20080814&lt;/Fecha&gt;&lt;/Mensaje&gt;&lt;/body&gt;&lt;/nr1:putXMLDocument&gt;</body></nr1:putXMLDocument></soap-env:Body></soap-env:Envelope>
    As you can see, it is generating a nr1:putXMLDocument tag, that it should not go there.
    Why do you think that this situation is happening? Please guys, this is very important, and need your help.  Thanks in advance.
    Samuel.

    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Calling WebServices from ABAP via HTTPS
    Consuming Web Service from ABAP by Durairaj Athavan Raja
    Search on SDN wiki, and you will find above mentioned links.

Maybe you are looking for

  • Capturing Hi8 analog thru aja  using DV setting keeps dropping frames

    I am capturing from a RCA hi 8 camera using Capture preset DV NTSC 48 khz but I am dropping frames any ideas

  • FileSystemTree and TreeItemRenderer random selected Checkboxes

    When implementing Three State Checkbox Tree solution on a FileSystemTree, the checkboxes will randomly change states while scrolling. This happens when the checkbox leaves the viewable area. The state of the check box is being held within a ModelLoca

  • Accordion

    Hi -- I am reposting this to another group as I got no response in the DB group. Rich "Rich Morey" <[email protected]> wrote in message news:<fafbbf$gkp$[email protected]>... > Hi -- > > I would like to build an accordion by iterating through a recor

  • Photoshop asking for serial number when I have an active Creative Cloud subscription

    I purchased a year subscription to Creative Cloud and when I launch Photoshop and click on license software, it shows my correct adobe id but then asks me for a serial number. How can I fix this? I am on Mac OS X v. 10.8.2

  • Remove channel banner ad

    With the new software upgrade to STB.  I now have a very annoying BRIGHT RED ad banner on the bottom of my guide.  How do i remove it. I have Interactive TV --> Disabled. I sure hope there is a setting to disable the the ad.  I know what services I h