Missing OAuth Access Token in Dev Portal

Hello,
I'm configuring Azure API Management to use OAuth 2 and am following the guide at http://azure.microsoft.com/en-us/documentation/articles/api-management-howto-oauth2/. However, when I select "Authorization code" authentication type in the
developer portal, the following happens:
My OAuth login and authorization page show in a new window. If I'm not logged in, I log in here.
I accept the request
The popup closes, but there's no token displayed in my request headers on the developer portal page. 
I also see the following error in Chrome: POST https://{xxxx}.portal.azure-api.net/Documentation/OAuth20Flow/AuthorizationCodeAcquireToken?authServerId={xxxx} 500 (Internal Server Error)
Any ideas on why the bearer token isn't showing up?
Thanks

This is resolved...thanks for the help via email, Miao.
Just to summarize - we believe the issue was due to using self-signed certificates on our test OAuth 2 server. The Azure redirect URI endpoint requires a valid cert when https is specified in Management portal for the token endpoint. Management portal now
allows me to use http for the token endpoint, which will work fine for test environments. 

Similar Messages

  • Lifetime of a session and/or access token

    Hi folks,
    I try to authenticate via API using both session IDs and oAuth access tokens.
    Does anybody know how long such a session ID (retrieved with a SAML assertion) is valid? And, while we are on it: what is the lifetime of an access token?
    Or, from a developers point of view: How can I retrieve the lifetime of both items programmatically after I retrieved them - is it somewhere coded into the response? 
    Thanks & regards
      Mathias

    Hi Mathias,
    I do not know about SAML session IDs, but the lifetime of an OAuth access token is currently not limited (that is, as long as it is not revoked). AFAIK there is no way to retrieve the lifetime. My colleague Ruediger may be able to give you some information on the lifetime of SAML session IDs.
    Simon

  • {"error": {"code": "Unauthorized", "message": "Missing access token"}}

    Hello everyone,
    Is quite frustrating that my las 5 docs ended in the same way.
    I got stuck in this error "{"error": {"code": "Unauthorized", "message": "Missing access token"}}"
    Could you please explain me the situation and if there is any solution to this issue.
    I tried to convert the pdf's in .doc or .docx, but without any luck. I tried it on Firefox, IE and Chrome. I do have the latest updates of Flash Player and I am on W7 64. I think this time is not Microsoft's fault.
    When I download the converted document from the server it has only 1kb.
    I assume this is a server error.
    Please let me know about any possibility in solving this situation!
    Thank you all for your reply!
    Petru

    Hello Mireia Romo ,
    First thing I will like to inform you is no SSO is required for KM with Portal.
    Have you done your SSO with Windows Active Directory?
    Regards,
    Chinmay

  • Provision to secure access token (For OAuth2.0 User Authentication)

    Hi,
    May i check if there are any provision in place to secure an access token ?
    For example, facebook use app secret prof (sha256 hash) to encrypt their access token, but i am able to see any security best practice in the documentation. Please direct me if i might have missed that portion out.
    Reference :
    https://msdn.microsoft.com/en-us/library/hh243647.aspx

    I think that as you are using Azure AD for the OAuth authentication, the fact that the tenant is configured to use ADFS (single sign-on) shouldn't change the OAuth flow from client/caller perspective. What permissions have you configured for SharePoint
    in Azure AD? I guess the error comes from Azure AD, before or after ADFS authentication?
    This seems like a similar issue (with no resolution either).

  • Sharepoint Workflow Access Token Error

    Whenever run a workflow on the SharePoint site it gets stuck on "Started" and throws this error when inspected in the workflow view:
    Retrying last request. Next attempt scheduled after 07/01/2015 10:58. Details of last request: HTTP 
    to https://***.sharepoint.emea.microsoftonline.com/support/_api/web/lists(guid'91616358-3515-49a4-8652-08e56a608d7e') Correlation Id: 
    Instance Id: dba845fc-941c-499f-9722-0929d85899ec
    System.Net.WebException: The request was aborted: The request was canceled. ---> System.InvalidOperationException: Failed to fetch an access token from the token service. The token service returned an error type of 'invalid_request' with the following
    description: ACS50000: There was an error issuing a token. ACS50001: Relying party with identifier 
    '00000003-0000-0ff1-ce00-000000000000/***.[email protected]f5cb8a2' was not found.
    Trace ID: e000a6d4-06d3-499b-95a6-a761150135cf
    Correlation ID: c7661e3d-2465-2ecb-9935-b7ba3142478d
    Timestamp: 2015-01-07 09:50:09Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
       at System.Net.HttpWebRequest.GetResponse()
       at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri stsUri, String targetServiceAudience, String authenticatorToken, HttpWebRequest request, TimeSpan timeout, EventTraceActivity
    eventTraceActivity, TimeSpan& expirationDuration)
       --- End of inner exception stack trace ---
       at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.FetchAccessToken(Uri stsUri, String targetServiceAudience, String authenticatorToken, HttpWebRequest request, TimeSpan timeout, EventTraceActivity
    eventTraceActivity, TimeSpan& expirationDuration)
       at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAccessTokenFromTokenService(OAuthS2SPrincipal client, OAuthS2SPrincipal targetServiceAudience, HttpWebRequest originalRequest, EventTraceActivity
    eventTraceActivity, TimeSpan& expirationDuration)
       at Microsoft.Activities.Hosting.Security.OAuthS2SSecurityTokenServiceCredential.GetAuthorization(OAuthS2SAuthenticationChallenge[] bearerChallenges, HttpWebRequest request, EventTraceActivity eventTraceActivity)
       at Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.AuthenticateInternal(String challenge, WebRequest request, OAuthS2SCredential credential, EventTraceActivity eventTraceActivity)
       at Microsoft.Activities.Hosting.Security.OAuthS2SAuthenticationModule.Authenticate(String challenge, WebRequest request, ICredentials credentials)
       at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials)
       at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
       at System.Net.HttpWebRequest.CheckResubmitForAuth()
       at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
       at System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception& exception)
       at System.Net.HttpWebRequest.ProcessResponse()
       at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData)
       --- End of inner exception stack trace ---
       at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.HttpRequestWorkItemAsyncResult.End(IAsyncResult result, Int32& responseCode)
       at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result)
    This only occurs on the workflows that have been designer in SharePoint Designer 2013, when the using the template ones (for example the three-state) they run fine. Have searched the internet to no avail on the error but believe it is something to do with
    the server settings and permissions. Thanks in advance

    Hi,
    According to your post, my understanding is that Sharepoint Workflow get the Access Token Error.
    I reoconmend that you can properly configure the HTTPS endpoint and then re-register the workflow farm with SharePoint.
    The snippet below assumes that you have exported the SSL certificate from the workflow manager IIS web site to c:\wfm.cer.
    $cert = Get-PfxCertificate "c:\wfm.cer"
    New-SPTrustedRootAuthority -Name "Workflow Manager Farm" -Certificate $cert
    Register-SPWorkflowService -SPSite "http://dev.sharepoint.com" -WorkflowHostUri "https://devmachine
    In addition, it may caused by
    a mismatch between SharePoint and Workflows. You can install a new version workflow manger and sharepoint designer to check whether it works.
    Here are some similar threads for your reference:
    http://sharepoint.stackexchange.com/questions/71773/sharepoint-2013-workflow-cant-get-them-to-work-again
    http://community.office365.com/en-us/f/154/t/276478.aspx?pi14176=2
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do i get a long lived 60 days access token to post messages on facebook ? Getting exception error

    I created just now a new app in the facebook site: https://developers.facebook.com
    I have a new access token but its for short time will expire after 2 hours or so.
    And i also got the app id and app secret code.
    This is how im trying to use it:
    private string PostFacebookWall(string accessToken, string message)
    var responsePost = "";
    try
    //create the facebook account object
    var objFacebookClient = new FacebookClient(accessToken);
    var parameters = new Dictionary<string, object>();
    parameters["message"] = message;
    responsePost = objFacebookClient.Post("feed", parameters).ToString();
    catch (Exception ex)
    responsePost = "Facebook Posting Error Message: " + ex.Message;
    return responsePost;
    In this method PostFacebookWall its working now with the new access token i can post on my wall.
    But since it will expire in few hours i want to make it longer access token for 60 days. So i have this method:
    public static string RenewToken(string existingToken)
    var fb = new FacebookClient();
    dynamic result = fb.Get("oauth/access_token",
    new
    client_id = ,
    client_secret = "",
    grant_type = "fb_exchange_token",
    fb_exchange_token = existingToken
    return result.access_token;
    Si called the method RenewToken in my constructor and used with my current access token code and im getting this exception:
    (OAuthException - #1) The access token does not belong to application 1378943962355167
    Strange since i checked double time and got the app id and secret from the current app.
    This is the full exception error message:
    Facebook.FacebookOAuthException was unhandled
    HResult=-2146233088
    Message=(OAuthException - #1) The access token does not belong to application 1378943962355167
    Source=Facebook
    ErrorCode=1
    ErrorSubcode=0
    ErrorType=OAuthException
    StackTrace:
    at Facebook.FacebookClient.ProcessResponse(HttpHelper httpHelper, String responseString, Type resultType, Boolean containsEtag, IList`1 batchEtags)
    at Facebook.FacebookClient.Api(HttpMethod httpMethod, String path, Object parameters, Type resultType)
    at Facebook.FacebookClient.Get(String path, Object parameters, Type resultType)
    at Facebook.FacebookClient.Get(String path, Object parameters)
    at ScrollLabelTest.Form1.RenewToken(String existingToken) in e:\scrolllabel\ScrollLabel\ScrollLabel\Form1.cs:line 290
    at ScrollLabelTest.Form1..ctor() in e:\scrolllabel\ScrollLabel\ScrollLabel\Form1.cs:line 28
    at ScrollLabelTest.Program.Main() in e:\scrolllabel\ScrollLabel\ScrollLabel\Program.cs:line 18
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException:

    Questions related to Facebook should be posted on their forums.  These forums are for MS-related technologies.

  • User is locked in R/3 but still access the application through portal

    We are currently on NW2004s SP10 .
    We locked the User A in R/3 SRM backend system and from Enterprise Portal the same User A login and try to access the SRM application in backend . The system is allowing to access which we want to prevent .
    The authentication ticket type is "SAP Logon Ticket" .  The User A is trying to access ITS services through Portal.
    Do we have specific SSO parameter which needs to set in backend SRM application .
    Thanks
    Chandrashekhar K

    Hi
    We have maintained the following profile parameter for SSO in our SRM system . From portal we are accessing the SRM system
    login/accept_sso2_ticket          1          
    login/certificate_request_ca_url     https://tcs.mySAP.com/invoke/tc/usercert               
    login/certificate_request_subject     CN=&UNAME, OU=&WPOU, O=mySAP.com User, C=DE               
    login/create_sso2_ticket          0               
    login/disable_cpic               0          
    login/disable_multi_gui_login          0          
    login/disable_multi_rfc_login          0               
    login/disable_password_logon          0               
    login/failed_user_auto_unlock          0          
    login/fails_to_session_end          3               
    login/fails_to_user_lock          3          
    login/isolate_rfc_system_calls          0               
    login/min_password_diff               1          
    login/min_password_digits          0               
    login/min_password_letters          0               
    login/min_password_lng               6          
    login/min_password_specials          0               
    login/multi_login_users               HP          
    login/no_automatic_user_sapstar          1          
    login/password_change_for_SSO          0          
    login/password_charset               1          
    login/password_expiration_time          60          
    login/password_logon_usergroup                         
    login/password_max_new_valid          0               
    login/password_max_reset_valid          0               
    login/system_client               400
    login/ticket_expiration_time          60
    login/ticket_only_by_https          0
    login/ticket_only_to_host          0
    login/ticketcache_entries_max          1000
    login/ticketcache_off               0
    login/update_logon_timestamp          m
    Please suggest as to change any parameter value . We want to restrict the user to access SRM system from portal if he is locked int e SRM system.
    Thanks

  • Portal Runtime Error while accessing BW reports through portal

    Hi,
    We are facing portal runtime error(An exception occurred while processing your request. Please send the exception id to your portal administrator) while accessing BI reports through portal frequently.
    We are unable to trace the error in the 'default trace' log file and although refreshing the cache solves this issue, it is difficult to explain this to every user individually.
    After many such errors, We found one log entry, which we are now not yet sure if it is relevant. The error states:
    1.
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template &#39;&lt;System.Access.WAS.protocol&gt;://&lt;System.Access.WAS.hostname&gt;&lt;BWLauncherComponent[PORTAL_URL]&gt;;jsessionid=&lt;Request.JSessionID&gt;?sap-ext-sid=&lt;ID[url_ENCODE]&gt;&amp;Language=&lt;Request.Language&gt;&amp;theme=&lt;LAF.Theme[url_ENCODE]&gt;&amp;sap-lafversions=&lt;LAF.AllVersions[url_ENCODE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;Report&gt;&amp;&lt;BusinessParameters&gt;&#39;; the problem occured at position 230. Cannot process expression &lt;LAF.AllVersions&gt;
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:125)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:540)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:423)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Content pass of Application Integrator failed.
    Component Name:       'com.sap.portal.appintegrator.sap.BWReport',
    Context Name (iView):  <iview name location>
    Top Layer:            'BWReport/TopLayer',
    Producer ID (FPN):    'null',
    System Alias:         'Sap_bw',
    2.
    The cluster server element 111111 is not added in the EP cluster context,
       because prtbridge on 111111 is stopped  or not yet started (maybe the server is starting or shuting down).
    Please suggest us if the above logs are related to the issue or not
    Kindly provide us any inputs or solutions.

    Hi All,
    We are also having similiar type of error in our portal. 
    com.sap.engine.services.prtbridge##com.sap.engine.services.prtbridge
    #######SAPEngine_System_Thread[impl:5]_13##0#0#Error#1#/System/Server#Plain###
    The cluster server element 125898350 is not added in the EP cluster context,
       because prtbridge on 125898350 is stopped  or not yet started
    (maybe the server is starting or shuting down).
    We have implemented the FPN using RRA.
    This error comes only for few users when they navigate in Portal. After clearing the cache, it works for all. Kindly help us to resolve this issue.
    Regards,
    Venkatesh

  • How to access BAPI in enterprise portal perspective?

    hi,I am venkat new to the portal.can anyone plz tel me how to access BAPI in enterprise portal perspective?is done through JCo or any other database connection?I hav not seen in System Landscape about BAPI access.plz give guidance about BAPI interface in enterprise portal.Hope u  will understand the question and answer the query.
    thanx in advance.
    Regards:
    Venkataramana.

    Guys,
    Herez how you call a BAPI:
         public void buildConnection(){
              try {
                        System.out.println("**** DI2 *****");
                     //      Add a connection pool to the specified system
                     //    The pool will be saved in the pool list to be used
                     //    from other threads by JCO.getClient(SID).
                     //    The pool must be explicitely removed by JCO.removeClientPool(SID)
                       com.sap.mw.jco.JCO.addClientPool( SID,         // Alias for this pool
                                             10,          // Max. number of connections
                                             "040",       // SAP client
                                             "USERNAME",   // userid
                                             "PASSWORD",  // password
                                             "EN",        // language
                                             "IPADDRESS",// host name
                                             "40" );
                     //      Create a new repository
                     //    The repository caches the function and structure definitions
                     //    to be used for all calls to the system SID. The creation of
                     //    redundant instances cause performance and memory waste.
                       repository = com.sap.mw.jco.JCO.createRepository("MYRepository", SID);
                        JCO.Client client = null;
                        client = JCO.getClient(SID);
    //                 Get a function template from the repository
                        //IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI_CUSTOMER_GETDETAIL2");
                        IFunctionTemplate ftemplate = repository.getFunctionTemplate("YGGLB_BAPI_YGGLB9PRK_PRKDOCU");
    //                 Create a function from the template
                        JCO.Function function = ftemplate.getFunction();
    //                 Get import (of Function Module) "Parameter list"
                        JCO.ParameterList input = function.getImportParameterList();
    //                 Set inputs for import parameters
                        //input.setValue("0000009000", "CUSTOMERNO");
                        //input.setValue("0248","COMPANYCODE");
    //                 Get import (of Function Module) "Structure list".
                       //JCO.Structure importStructure = function.getImportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure importStructure = function.getImportParameterList().getStructure("IM_DOCUMENTHEADER");
    //                 Set values for import parameters (of Function Module) "Structure list"                     
                        importStructure.setValue( "SA", "DOC_TYPE" );
                        importStructure.setValue( "20080910", "PSTNG_DATE" );
                        importStructure.setValue( "20080910", "DOC_DATE");
                        importStructure.setValue( "BHARDWS", "USERNAME" );
                        importStructure.setValue( "2008", "FISC_YEAR" );
                        importStructure.setValue( "FRE1", "COMP_CODE" );
    //                 Get import (of Function Module) "Table list - 1".
                        JCO.Table orderPartners = function.getTableParameterList().getTable("TBL_ACCOUNTGL");
    //                 Set values for import parameters (of Function Module) "Table list - 1"
                        //Append Row -1
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000001", "ITEMNO_ACC" );
                         orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("H", "DE_CRE_IND" );
                        orderPartners.setValue( "ANYTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
                        //Append Row -2
                        orderPartners.appendRow();
                       orderPartners.setValue("0000000002", "ITEMNO_ACC" );
                        orderPartners.setValue("0000400100", "GL_ACCOUNT" );
                        orderPartners.setValue("S", "DE_CRE_IND" );
                        orderPartners.setValue( "NOTHING", "ITEM_TEXT" );
                        //orderPartners.setValue( "AG", "PROFIT_CTR" );
                        orderPartners.setValue( "AIG0000007", "COSTCENTER" );
    //                 Get import (of Function Module) "Table list - 2".
                        JCO.Table orderItems = function.getTableParameterList().getTable("TBL_CURRENCYAMOUNT");
    //                 Set values for import parameters (of Function Module) "Table list - 2"
                        //Append Row -1
                        orderItems.appendRow();
                       orderItems.setValue("0000000001", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
                        //Append Row -2
                        orderItems.appendRow();
                       orderItems.setValue("0000000002", "ITEMNO_ACC" );
                        orderItems.setValue("USD", "CURRENCY" );
                        orderItems.setValue( "2000", "AMT_DOCCUR" );
    //                 Execute client
                        client.execute(function);
    //******************Start to work on fetching values now********************************
    //                 Get export (of Function Module) "Structure list".
                        /*JCO.Structure returnStructure = function.getExportParameterList().getStructure("CUSTOMERADDRESS");
                        JCO.Structure returnStructure2 = function.getExportParameterList().getStructure("CUSTOMERGENERALDETAIL");
                        returnStructure.getString("NAME");
                        returnStructure2.getString("ENTERED_BY");*/
    //                 Get export (of Function Module) "Table list"./// Create a new template if fetching table data from a different function module than above
                        //IFunctionTemplate ftemplateTable = repository.getFunctionTemplate("BAPI_CURRENCY_GETLIST");
                        //JCO.Function functionTable = ftemplateTable.getFunction();
                        //client.execute(functionTable);
                        JCO.Table table_return = function.getTableParameterList().getTable("RETURN");
                        Vector tbl = new Vector();
                        Vector row = new Vector();
                        Vector colNames = new Vector();
                        //Loop over all rows
                        do {
                        //Loop over all columns in the current row and add all those colums values to the current row
                        for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             row.add(field.getString());
                             System.out.println(field.getName() + ":\t" + field.getString());
                             } // end for
                             //Add this newly built row to the table     
                             tbl.add(row);
                             } while (table_return.nextRow());
                             table_return = null;
                             table_return = function.getTableParameterList().getTable("RETURN");
                             table_return.nextRow();
                             for (JCO.FieldIterator e = table_return.fields();
                             e.hasMoreElements();
                             JCO.Field field = e.nextField();
                             colNames.add(field.getName().toString());
                        //DefaultTableViewModel dtvModel = new DefaultTableViewModel(tbl, colNames);
                        //beanObj.setModel(dtvModel);
                             System.err.println("getting value for you from session in Get Data 1:-");
                             JCO.releaseClient(client);
                        //     return dtvModel;
                   catch (JCO.Exception ex) {
                     System.out.println("Caught an exception: \n" + ex.getMessage());
                   }catch (Exception e){
                        System.out.println("Final Message" + e.getMessage());

  • Getting Portal Runtime Error while accessing one link in Portal Page.

    Hi,
    Can anyone tell why I am getting below error while accessing one of the portal page link:
    " Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 01:19_27/02/09_0046_16441150
    Refer to the log file for details about this exception. "
    Also please let me know how to get rid of this if possible.
    Thanks in Advance
    Vaibhav Srivastava

    Thank you for your prompt reply.
    Could you please elaborate the same.
    I am getting Portal runtime error while I am acessing an iveiw in E-recruiting. We have setup the role and user in both portal and Backend. But still the error. Could you pls send me the setting you have done.
    Portal runtime ERROR
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 02:27_27/04/09_0042_113148050
    Refer to the log file for details about this exception.
    regards
    Justin

  • How to access the webservice in portal component

    hai
         how to access the webservice in portal component.
         anyone knows give the solution
    Rds
    Shanthakumar

    Hai
    Please check this link.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/connectivity&
    Regards

  • Crawler on DEV portal to index collaboration rooms on PROD portal

    Hi,
    We have two portal systems (HP-UX (IA64W) B.11.23)
    System1 / NW2004 SP17: DEV
    System2 / NW2004 SP17: PROD
    TREX is running on a separate Windows 2003 server. All crawler tasks are configured on our DEV system. The PROD portal uses the created index's.
    Unfortunately the DEV system (crawler) can't find and index our
    created collaboration rooms on the PROD portal. How can I configure the DEV portal or the crawler to find and index the content of the collaboration rooms on the PROD portal?
    Is this possible?
    Best Regards,
    Stefan

    Hi Luciana.
    Collaboration can run only on the central consumer portal (refer to SAP Note 1295708).
    Best regards,
    Aliaksandr Zhukau

  • Azure Sync not saving access key in web portal

    Azure Sync not saving access key in web portal.
    You generate a new key, then press Ok and the key cannot be used and does not display again.
    Could someone please have a look at this?

    Hello,
    After generate a new key on the Manage Access key page, you can click the clipboard symbol to copy the key to your clipboard, and then paste the key from your clipboard on the SQL Data Sync Client Agent.
    Reference:http://msdn.microsoft.com/en-us/library/windowsazure/jj823137.aspx
    If I have any misunderstadning, please post more details information or a screen shot about the issue.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Allowing Airwatch MDM access to the Captive-Portal guest users in pre-auth role for android and BB?

    Requirement:
    How to allow Airwatch MDM access to the Captive-Portal guest users in pre-authentication role for Android and Blackberry devices?
    What is Airwatch MDM?
    Airwatch MDM is Mobile Device Management. The Airwatch is an enterprise which helps to manage and secure data traveling through the mobile devices like Laptops, Tablets, Android, iPhones, iPads etc.
    Solution:
    Why we need to allow access to Airwatch MDM?
    The network administrator can force the guest users to register to Airwatch MDM before they get authenticated and access the internet. So that the network administrator could manage the guest devices through Airwatch Management tool. This can be achieved by CPPM server. To download the Airwatch MDM app and register with the Airwatch MDM server certain domains should be permitted in the captive portal pre-authentication role. This KB provides the configuration steps to allow the guest users to download the Airwatch MDM app and register with the Airwatch MDM server.
    Configuration:
    Below is the configuration
    Configuration steps:
    1. Create the following netdestinations
    netdestination Airwatch
      name *.awagent.com
      name *.awmdm.com
      name air-watch.com
    netdestination Google-Play
      name android.clients.google.com
      name .ggpht.com
      name gstatic.com
      name accounts.google.com
      name clients1.google.com
      name clients2.google.com
      name clients3.google.com
      name clients4.google.com
      name i.ytimg.com
      name google-analytics.com
      name .1e100.net
      name android.l.google.com
      name mtalk.google.com
      name clients.l.google.com
      name googleapis.com
      name gvt1.com
    netdestination BlackBerry
      name *.blackberry.com
    2. Now define the rules in the session acl and map it to the pre-authentication Role of the captive portal.
    ip access-list session Airwatch_Access
      any   alias Airwatch svc-http  permit
      any   alias Airwatch svc-https  permit
    ip access-list session Google-Play-Store
                   any   alias Google-Play any permit
    ip access-list session BlackBerry-Access
                   any   alias BlackBerry any permit
    3. Now map the session ACLs to captive-portal pre-authentication Role as follows
    user-role Guest-Pre-Auth-Role
     access-list session Airwatch_Access
     access-list session Google-Play-Store
     access-list session BlackBerry-Access
     access-list session logon-control
     access-list session captiveportal
    4. Now whitelist the list of domain names in the Captive Portal profle
    aaa authentication captive-portal Airwatch-Captive-Portal-Profile
    white-list Airwatch
    white-list Google-Play                                                                                ------------>Netdestinations where you defined the Domains.
    white-list BlackBerry
    Verification
    Now the user will be placed under the "Guest-Pre-Auth-Role" before the authentication. The user can now go the Google Play-Store or BlackBerry Appworld to download the Airwatch MDM and register to Airwatch Management Server.

    Thanks so much getting these names listed out. I have been working on this very issue for a few weeks and was basing my firewall rules on IP's. It was not going well. Now access is working and testing can commence!  Thanks,Chris

  • Accessing content in weblogic portal 8.1 sp2

    Hi,
    While accessing content in weblogic portal from the content repository, can
    i filter based on the content TYPE ? None of the standard tag libs (such as
    <cm:search>, <pz:contentSelector> ) allow me to do that.
    Please let me know if there is a way to do that.
    Regards,
    Arun.

    Thanks again Gregory !
    Regards,
    Arun.
    "Gregory Smith" <[email protected]> wrote in message
    news:40c083e6$1@mktnews1...
    Well, some of the important documentation is, unfortunately buried in
    the javadoc (http://e-docs.bea.com/wlp/docs81/javadoc/index.html). Look
    at com.bea.content.expression.ExpressionHelper for info on the query
    syntax, and com.bea.content.expression.Search of the standard property
    names that correspond to methods on Node.
    For getting the children of a Node, you can use the NodeOps API:
    RepositoryManager mgr = RepositoryManagerFactory.connect(session);
    NodeOps ops = mgr.getNodeOps();
    ops.getNodeChildren(parentNode.getId());
    In a search/contentselector you can use the cm_path property to limit a
    search to a particular branch, e.g.:
    cm_path like '/BEA Repository/mypath/*'
    But, you can't limit to just direct children of that path via search.
    Greg
    Arun A.G. wrote:
    thank you very much, Gregory !
    This solves some of the issues I was facing. However, I was not able to
    find
    this in any of the documentation. Please point me to it if itsmentioned.
    >>
    Also, Is there an API to fetch all the content under a specified node ?
    (<cm:getNode> expects the explicit path, but returns only that node.)
    Regards,
    Arun.
    "Gregory Smith" <[email protected]> wrote in message
    news:40bf4044$1@mktnews1...
    Use the cm_objectClass property name in the query, e.g.:
    color = 'red' && cm_objectClass = 'Car'
    For content selectors, content placeholders, and campaigns,
    cm_objectClass is available under the 'Standard' content Property Set.
    Greg
    Arun A.G. wrote:
    Hi,
    While accessing content in weblogic portal from the content repository,
    can
    i filter based on the content TYPE ? None of the standard tag libs(such as
    <cm:search>, <pz:contentSelector> ) allow me to do that.
    Please let me know if there is a way to do that.
    Regards,
    Arun.

Maybe you are looking for

  • Greek Character Display Problem

    Hi Server Side : We are using Oracle 8i . Database Character Set = UTF8. Client Side: Windows XP. Modified Control Panel->Regional Settings -> Advanced->Language for non-unicode program = Greek. Changed Alter session set NLS_Language = GREEK When we

  • I accidentally moved all my contacts to computer and out of iCloud. how do I put back?

    I thought I was saving a copy to my desktop and when it said replace I thought it meant replace the old copy on my desktop with the newer version and then the whole contacts are in a different look and I can't use it in various ways I used to be able

  • Validating xml with dtd

    Hi,          I have found a piece of code through google, to validate an xml file with an external dtd file. which is            function validateDocument()                 xmlDocumentObject = new ActiveXObject("microsoft.XMLDOM")                 xml

  • Mavericks  / Samsung ML-2250 printing failure,

    Hi all! Since I have installed Mavericks. My Samsung ML-2250 fails to print. The error in the job queue is : Stopped - "filter' failed. The error msg at this location is :  /var/log/cups/error_log. D [17/Nov/2013:21:32:40 +0000] D [17/Nov/2013:21:32:

  • Premier Pro and Canon XF 100 camera

    I need help understanding how upgrading to Premier Pro will help me more easily use the clips from my Canon XF100 video camera.  I now have to open the clips with the Canon Utility that comes with the camera, covert the files to MFX files, I then use