Reading Session information from Cookie MYSAPSSO2

Hi All
I have a requirement where i need to get the portal session in my webdynpro component.
My portal runtime and webdynpro runtime are different.
My both runtimes are configured for accepting sap logon tickets.
I observerd that  portal is sending the cookie MYSAPSS02 to webdynpro when ever a webdynpro component is called from portal.
I also read that this cookie contains the portal session info.
I want to read the session value from this cookie. How can i do this?
Thanks in advance
NagaKishore

I have post the similar problem.
here is the url /thread/40387 [original link is broken]
But i still haven't worked it out
hope i'ts helpful for you.

Similar Messages

  • Not reading profile information from cookies..?

    Hi All,
    i' working on soflogin. When i loggedin to site, it is sending 3 cookies to browser, each for sessionId, profileId, and hashKe. Upto here it is working well. But , when i restart the browser without loggin out, it is not able to pick the cookies from browser, resulting in failure of the soft login. I also wrote the code to consider cookies for softlogin as follows,
    <dsp:droplet name="Compare">
              <dsp:param name="obj1" bean="Profile.securityStatus" />
              <dsp:param name="obj2" bean="PropertyManager.securityStatusCookie" />
              <dsp:oparam name="lessthan">
                   <!-- New user or unrecognized member -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="false" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="equal">
                   <!-- User auto-logged in with cookie -->
                   <c:set var="showLoginForm" value="true" scope="request" />
                   <c:set var="useDefaultProfileValues" value="true" scope="request" />
              </dsp:oparam>
              <dsp:oparam name="greaterthan">
                   <!-- User logged in with login/password -->
                   <c:set var="showLoginForm" value="false" scope="request" />
              </dsp:oparam>
         </dsp:droplet>
    And based on the value of showLoginForm variable , i'm displaying the loginPage.. But it is still showing the login page with empty fields instead of login with previous loggedin user login value.. (expected result)
    Thanks,
    VishnuVardhan

    Before reading these values, check in the browser if you have the cookies present before and after restart.
    Otherwise you need to look at the configurations to set the cookie.
    Peace
    Shaik

  • Can Audit Vault be used for getting detailed read type information from the siebel database?

    Can Audit Vault be used for getting detailed read type information from the siebel database?

    Kramer wrote:
    saurabh wrote:
    check below cmd to see where archive are generated.
    SQL> archive log list
    And also check the following
    SQL> select flashback_on from v$database;
    Hi
    Here is the out put
    SQL>  select flashback_on from v$database;
    FLASHBACK_ON
    NO
    SQL>  archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     11
    Next log sequence to archive   12
    Current log sequence           12
    The flashback is not enabled. But archive log list shows archive destination is specified to use_db_recovery_file_dest.  And I checked the log_archive_dest_10 still empty
    Flashback off or on has nothing to do with it. 

  • Read header information from an e-mail that is an attachment to another e-mail

    I've written a macro using VBA code within Outlook 2010 that will extract header information from an e-mail and then save it to a csv file.  The code works well, but unfortunately, the header information I need is within e-mails that are sent to
    me as attachments.  Which means that I am opening the attachment and then running the macro to get the header information.  Is there a way for VBA to open the attached e-mail and read its header?
    Ideally, I would like to write code that will cycle through all of the e-mails in a folder, open the e-mails that are attachments and save off the header information.
    Any help or suggestions would be greatly appreciated.
    Thank you for your time.

    You should try the Exchange Development forum
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Reading Webservice information from ABAP Program

    Hi All,
    How to read a webservice information from a ABAP program ?
    Are there any webservices available in ABAP which can do this .
    Gopal.

    Hi,
    The following code will call the web service and fill the data into internal table which was received from the Web service. This code will send & Receive the data from ABAP to Webservice.
    Change the Header detail as per your Webservice.
    REPORT  ZWORKORDER.
    TYPES: BEGIN OF OUTTAB1 ,
      JOBCODE(20),
      COMPONENTCODE(20),
      ACCURATEHOURS(20),
      ACCURATECOST(20),
      LENGTH TYPE I,
       END OF OUTTAB1 .
    DATA: OUTTAB TYPE  TABLE OF OUTTAB1.
    DATA: TAB TYPE OUTTAB1.
    DATA: WF_O LIKE LINE OF OUTTAB .
    DATA: XSLT_ERR TYPE REF TO CX_XSLT_EXCEPTION .
    DATA: RLENGTH TYPE I,
          TXLEN TYPE STRING  .
    DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
    DATA: WF_STRING TYPE STRING .
    DATA: WF_STRING1 TYPE STRING .
    DATA: WF_PROXY TYPE STRING ,
          WF_PORT TYPE STRING .
    CLEAR WF_STRING .
    Form the input string to send the Input Data to Web service.
    CONCATENATE
    '<?xml version="1.0" encoding="utf-8"?>'
    '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    '  <soap:Body>'
    '    <GetWorkOrder xmlns="http://*******erica.net/webservices/">'
    '      <nWorkOrder>2</nWorkOrder>'
    '      <nDistributorCode>4871</nDistributorCode>'
    '      <model>HM400</model>'
    '     <type>1 </type>'
    '    </GetWorkOrder>'
    '  </soap:Body>'
    '</soap:Envelope>'
    INTO WF_STRING .
    CLEAR :RLENGTH , TXLEN .
    RLENGTH = STRLEN( WF_STRING ) .
    MOVE: RLENGTH TO TXLEN .
    CLEAR: WF_PROXY, WF_PORT .
    CALL METHOD CL_HTTP_CLIENT=>CREATE
      EXPORTING
        HOST    = '192.168.1.41' "'http://****merica.net/webservices'
        SERVICE = '8080'
        SCHEME  = '1'
      IMPORTING
        CLIENT  = HTTP_CLIENT.
    HTTP_CLIENT->PROPERTYTYPE_LOGON_POPUP = HTTP_CLIENT->CO_DISABLED.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~request_method'
        VALUE = 'POST'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~server_protocol'
        VALUE = 'HTTP/1.1'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = '~request_uri'
        VALUE = '/service/accurate/workorder.asmx?'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'Content-Type'
        VALUE = 'text/xml; charset=utf-8'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'Content-Length'
        VALUE = TXLEN.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
      EXPORTING
        NAME  = 'SOAPAction'
        VALUE = 'http://********merica.net/webservices/GetWorkOrder'.
    CALL METHOD HTTP_CLIENT->REQUEST->SET_CDATA
      EXPORTING
        DATA   = WF_STRING
        OFFSET = 0
        LENGTH = RLENGTH.
    Send the Input Data to Web service.
    CALL METHOD HTTP_CLIENT->SEND
      EXCEPTIONS
        HTTP_COMMUNICATION_FAILURE = 1
        HTTP_INVALID_STATE         = 2.
    Receive the Input from Web Serice.
    CALL METHOD HTTP_CLIENT->RECEIVE
      EXCEPTIONS
        HTTP_COMMUNICATION_FAILURE = 1
        HTTP_INVALID_STATE         = 2
        HTTP_PROCESSING_FAILED     = 3.
    CLEAR WF_STRING1 .
    WF_STRING1 = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
    DATA: LENGTH TYPE I.
    LENGTH = STRLEN( WF_STRING1 ).
    DATA: VALUE_FIELD TYPE NAME_KOMP.
    DATA: VALUE TYPE REF TO DATA.
    FIELD-SYMBOLS: <FS_CONVERTED_DATA>.
    DATA: TAB1 TYPE TABLE OF STRING.
    DATA: FROM_LENGTH TYPE I VALUE 1.
    DATA: TO_LENGTH TYPE I.
    DATA: DIFF TYPE I.
    DATA: START TYPE I VALUE 1.
    DO.
    JOBCODE.
      SEARCH WF_STRING1 FOR 'JobCode=' . "STARTING AT START .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 8.
      SEARCH WF_STRING1 FOR 'JobDescription=' ."STARTING AT START ..
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-JOBCODE.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
    COMPONENT CODE
      SEARCH WF_STRING1 FOR 'ComponentCode=' .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 14.
      SEARCH WF_STRING1 FOR 'ComponentDescription=' .
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-COMPONENTCODE.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
    AccurateHours
      SEARCH WF_STRING1 FOR 'AccurateHours=' .
      IF SY-SUBRC <> 0.
        EXIT.
      ENDIF.
      FROM_LENGTH = SY-FDPOS .
      FROM_LENGTH = FROM_LENGTH  + 14.
      SEARCH WF_STRING1 FOR 'AccurateCost='.
      TO_LENGTH = SY-FDPOS .
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATEHOURS.
      TO_LENGTH = DIFF + TO_LENGTH.
    AccurateCost
      SEARCH WF_STRING1 FOR 'AccurateCost='.
      FROM_LENGTH =  SY-FDPOS.
      FROM_LENGTH =  FROM_LENGTH + 13.
      SEARCH WF_STRING1 FOR '/>'.
      TO_LENGTH = SY-FDPOS.
      DIFF = TO_LENGTH - FROM_LENGTH .
      MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATECOST.
      TO_LENGTH = DIFF + TO_LENGTH.
      SHIFT WF_STRING1 BY TO_LENGTH PLACES.
      APPEND TAB TO OUTTAB.
    ENDDO.
    WRITE: (10) 'JOBCODE'.
    WRITE (20) 'COMPONENTCODE'.
    WRITE (30) 'ACCURATEHOURS'.
    WRITE (40) 'ACCURATECOST'.
    LOOP AT OUTTAB INTO TAB.
      WRITE:/ TAB-JOBCODE .
      WRITE (20) TAB-COMPONENTCODE.
      WRITE (30) TAB-ACCURATEHOURS.
      WRITE (40) TAB-ACCURATECOST.
    ENDLOOP .
    It is better to create a proxy, it then puts a level of abstraction between in that coding. All you need to do is then access the proxy class.
    Besides that i think you can do it by configuring the ITS and calling the webservice by means of using BSP applications in ABAP
    <b>I believe you need to create a proxy in order to consume your web service.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
    Reward points</b>
    Regards

  • How to read my information from a html file?

    Hi
    I saved an html file from a website.
    How can I read my information (For example the first URL) from the html file?
    following code reads line by line:
    using (StreamReader reader = new StreamReader(Application.StartupPath + @"\x.htm"))
    String line = String.Empty;
    while ((line = reader.ReadLine()) != null)
    MessageBox.Show(line);

    How about this...
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Diagnostics;
    namespace ReadFromHtml
    class Program
    static void Main(string[] args)
    using (StreamReader reader = new StreamReader(Environment.CurrentDirectory + @"..\..\..\page1.html"))
    String line = String.Empty;
    while ((line = reader.ReadLine()) != null)
    if (line.Trim().StartsWith("<a"))
    Console.WriteLine(line.Trim());
    break;
    Console.ReadLine();
    <!DOCTYPE html>
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <title>mobile craigslist</title>
    </head>
    <body>
    <h1>PAGE1.HTML</h1>
    <hr />
    <a href="http://mobile.craigslist.com">mobile craigslist</a>
    <hr />
    </body>
    </html>
    UML, then code

  • Reading PFCT information from the buffer

    Hello All,
    We have a requirement where we need to put some authority checks on Partner Function deletion for a Shipto Party (Relationship Category CRMH02). We tried to put the check in DCHCK event, but I am not able to read PFCT from buffer unless the sales area has already been selected.
    Please let me know if u have an idea about any such API which can read the buffer data for PFCT even when the sales area is not selected
    Rgds
    Priyanka

    Thanks,
    Yes I can use the java.util.SimpleTimeZone to set and manipulate the timezone
    information, but my problem is:
    I need a technique that allows me to get the time zone of the machine(browser)
    from which the request to my application is sent from.
    The same way you do this with an HttpServletRequest object:
    request.getLocale(); What do you do if you need the the timezone too?
    Message was edited by:
    Mauvv

  • Read System Information from the Client

    Hi,
    i am looking for a java native interface that allows me to read the client's system information like it can be done with the sigar lib.
    http://support.hyperic.com/confluence/display/SIGAR/Home
    Does anyone know if there are alternative native libraries available?!
    Thanks in advance,
    Patrick

    I'm doing exactly the same in both projects.The OS loads the library into the process space.
    You know it works in java. Thus it means specifically that it is an environment problem. It is not a java problem and it is not a library problem.
    The problem is that the library fails to load.
    General reasons for loading failures. There might be others.
    - It isn't a library. Can't be this because you got it to work already.
    - It has dependencies, other libraries, that don't exist or are not in the shared library path.
    - It isn't in fact the same as the other webstart app. Different location, different coniguration, permissions problem, something else.

  • Read color information from images.

    Can anyone explain getpixel() to me. I don't understand the manual with all it's Databuffer talk.
    Can I load an image and get straight access to it's pixels or is there something i have to do to the image before i can get access to it?
    Thank you.

    You can use the java.awt.image.PixelGrabber to get the pixels. And with the MemoryImageSource it is possible to work on the pixel array, and have the component you draw the image on updated.
    There is an example in the API for MemoryImageSource.

  • How to create cookies in webdynpro and How to read from cookies

    Hi all
    Please let us know how to create cookies and how to store and retrieve the data from cookies in webdynpro.
    we have the following requirement in each and every webdynpro form we have dropdownbox UI element , when ever a user logins into portal then he will select his state from the dropdownbox UI element then when even again the same user logs into portal and select the state field then the previously existing value which ever used in cookies that should be selected as dropdownbox.
    can you please send sample codes how to create and read the data from cookies in webdynpro?
    if you have any useful links or documents on this cookies in webdynpro then it would be great help to us.
    Thanks in advance.
    Regards
    Kalki reddy

    Hi,
    Have a look at the following thread:
    Re: How to use Cookies in Web DynPro?
    This may help you.
    Regards.
    Rajat

  • Read/write calendar information from outlook/yahoo server

    Hi,
    my requirement is read calendar information from outlook/yahoo server.
    pls tellme any opensource (java) available for this.pls any sites theoratically/practically explained on this.
    pls help me on this.
    regards
    karthik

    I posted this question a while ago and didn't receive any responses but there are a lot of people who have viewed it and 10 have said they have the same question so I thought I would update you that I added my nanny to my exchange server account (created an email for her) and I send all invites to that email address and they work.  So sending invites from an exchange server account to a non-exchange server account apparently is a bug so to solve it, get on an exchange server I guess.

  • Looking for resource: accessing session info from JPS portlets

    Hi! The Portal Developer's Guide 10g Release 10.1.4, section 7.2.5 shows how to access session information from PDK portlets. I'm looking for information (tutorials, books) on how to do this from JPS portlets in the Oracle Portal environment.
    Thx!

    If u are using JSPProvider, then for getting the Session variable, peruse the below points:
    JSPProvider p=(JSPProvider)pageContext.getAttribute("JSPProvider");
    Session ses=p.getSession();

  • Need help with reading RSS feed from SSIS

    Hi all,
    I am trying to read RSS feed from SSIS by using the Script Component. So far I am able to read some information from the RSS feed from the following items included in the code, Title, PublishDate, LastUpdateTime, Id and Summary.
    There are still more item but I am unable to identify the proper data type for the following:
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    When I define the data for item.Content as Unicode String in the column properties for the Output column I get the following error message:
    Error 1 Cannot implicitly convert type 'System.ServiceModel.Syndication.SyndicationContent' to 'string'
    And the same error for the other three variables.
    I am using HTTP Connection manager to read the xml link.
    I tried to google around for some help but I could not find more information about the datatype.
    I appreciate any help if someone can point me to the right solution for reading RSS feed from SSIS.
    Code:
    /* Microsoft SQL Server Integration Services Script Component
    * Write scripts using Microsoft Visual C# 2008.
    * ScriptMain is the entry point class of the script.*/
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System.ServiceModel.Syndication;
    using System.Xml;
    using System.Text;
    [Microsoft.SqlServer.Dts.Pipeline.SSISScriptComponentEntryPointAttribute]
    public class ScriptMain : UserComponent
    private string url = string.Empty;
    private SyndicationFeed feed = null;
    private XmlReader reader = null;
    public override void PreExecute()
    base.PreExecute();
    // Get the URL from the Http Connection Manager.
    // Note, we're not actually using the connection manager's connection object,
    // just it's URL setting. This is because using the .NET connection classes
    // give us more flexibility.
    reader = XmlReader.Create(Connections.HttpConnection.ConnectionString);
    feed = SyndicationFeed.Load(reader);
    public override void PostExecute()
    base.PostExecute();
    reader.Close();
    public override void CreateNewOutputRows()
    if (feed != null)
    foreach (var item in feed.Items)
    Output0Buffer.AddRow();
    Output0Buffer.Title = item.Title.Text;
    Output0Buffer.PublishDate = item.PublishDate;
    Output0Buffer.LastUpdatedTime = item.LastUpdatedTime;
    Output0Buffer.Link = item.Id;
    //Output0Buffer.Description = item.Content;
    //Output0Buffer.Category = item.Categories;
    //Output0Buffer.Comments = item.Summary;
    //Output0Buffer.Source = item.SourceFeed;
    Output0Buffer.FeedImage.AddBlobData(ConvertToBytes(item.Summary));
    string authorName = string.Empty;
    if (item.Authors.Count > 0)
    // take the first author
    authorName = item.Authors[0].Name;
    Output0Buffer.Author = authorName;
    Output0Buffer.SetEndOfRowset();
    private byte[] ConvertToBytes(TextSyndicationContent content)
    if (content != null && !string.IsNullOrEmpty(content.Text))
    // convert the string buffer to UTF8 so we can store it in an NTEXT column
    var encoding = new UTF8Encoding();
    return encoding.GetBytes(content.Text);
    return new byte[0];
    Thanks in return.

    You need to make it running outside SSIS 1st. I just do not see why you need to publish it here at the moment.
    And to solve it, doesn't C# has the
    VAR datatype so you do not have to guess.
    Arthur
    MyBlog
    Twitter

  • How can I extract information from a web page

    I wanna read some information from a webpage, and then put those information together into a table. Since I only know the url, not the file path, when I use BufferedReader(new FileReader(FilePath)), there is a FileNotFoundException. How can I do that? Thanks a lot.

    You can do it in following way....
    First you need to create the object of URL by specifying the URL name.
    URL myurl = new URL("http://www.xyz.com/index.html"); //specify your URL path here
    URLConnection conn = null;
    DataInputStream data = null;
    String line;
    StringBuffer buf = new StringBuffer();
    try {
    conn = myurl.openConnection();
    conn.connect();
    data = new DataInputStream(new BufferedInputStream(
    conn.getInputStream()));
    while ((line = data.readLine()) != null) {
    buf.append(line + "\n");
    data.close();
    catch (IOException e) {
    System.out.println("IO Error:" + e.getMessage());
    So, at the end, you have the data in your string buffer...you can use it wherever u want.
    Hope this helps

  • Reading a value from PL/SQL region

    Hello,
    I hope to receive help from you!
    I have a PL/SQL dynamic region in which I create several items using htmldb_item.text function.
    e.g.
    htp.p(htmldb_item.text(1,'AAA',40,2000));
    Then I want to read the values of these items from another PL/SQL region. If I write
    htp.p(htmldb_application.g_f01(1));
    I get an error.
    If I try to read the value of an item from an After Submit Process, everything is OK.
    Is it possible to receive a value of an item in a PL/SQL region?
    Thanks,
    Nadja

    The other PL/SQL region should read the information from the source (table or view). If I understand your right, you are trying to "read" the information from your first PL/SQL block on load?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for