Validating and Extracting Data from OBSSOCookie

Hello, I am looking for references on how to validate an OBSSO Cookie that is presented by a user (through their browser) and how to extract values from the cookie (using JAVA API calls in the Access Manager SDK).
I am not able to locate any references in the developers guide - can someone please assist or point me to some documentation to start?
Thanks in Advance.

Here's a snippet from when I did this to get the username from the cookie:
public String getUser(HttpServletRequest request, HttpServletResponse response) {
try {
String sdkLocation = System.getProperty("oam.sdk.location");
ObConfig.initialize(sdkLocation);
catch (ObAccessException ie) {
System.out.println("Initialize failed");
ie.printStackTrace();
Cookie cookie = getCookie(request, "ObSSOCookie");
ObUserSession userSession = null;
try {
userSession = new ObUserSession(cookie.getValue());
catch (Throwable t) {
t.printStackTrace();
System.out.println("Failed to create new user session");
try {
String DNarray[];
if (userSession.getStatus() == ObUserSession.LOGGEDIN) {
String userDN = userSession.getUserIdentity();
StringTokenizer userST = new StringTokenizer(userDN,",=");
DNarray = new String[userST.countTokens()];
for(int i=0;userST.hasMoreTokens();i++){
DNarray[i] = userST.nextToken();
userID = DNarray[1];
System.out.println("user ID is " + userID);
else {
System.out.println("Login failed. Return status = " + userSession.getStatus());
catch (com.oblix.access.ObAccessException obae) {
obae.printStackTrace();
obae.getMessage();
return userID;
}

Similar Messages

  • Need to pre-populate and Extract data from static PDF form

    Hi Jasmin or Jayan or anyone else that can answer.
    I have a requirement to use Digital Signatures.  Because of that, the forms must be static PDFs and the form variables will be “document form”.  I want to pre-populate the form via an SQL query and custom render process and render it as PDF so that the submitter can apply a digital signature when he/she is done and ready to submit for approvalSubsequent approvers will also digitally sign the form.  I know that I will specify the custom render to render only once and thereby preserve the signature(s) on the form.  I do, however, need to extract data from the form to control the business process.  I cannot access the data in the form the same way I do with an xdp and I also cannot pre-populate the same way I do with an xdp. 
    Any suggestions on how to attack this?

    Parth, one problem with your approach is he will submit PDF and therefore you won't be able to put the PDF in a variable that's suppose to contain just xml.
    The prepopulation should be the same. If you start off with an xdp, then you will call a render service that merges data with your xdp to create a PDF.
    Now when you submit, you will submit the entire PDF back in the Document Form variable. In Workbench, you can use the FormDataIntegration service to extract data from that PDF that's being stored under Document Form var/object/document and put it in an xml variable. Then you can just use xPath to do your condition.
    I'm assuming you'll just pass that same Document Form variable to the next step, because if you do any change to the PDF it'll brake the signature.
    Let me know if I missed anything.
    Jasmin

  • How to pass selection filters to logic and extract data from BI to BPC

    Hi everybody. I checked the forum and I found and tried some solutions but not matching my main aim.
    Scenario:
    In the input schedule I have a button which runs a data package to upload datas into BPC, coming from a BI cube.
    The pushbutton menu is ok. I tried also a solution suggested on the blogs and I can upload all transaction datas from BI to BPC successfully.
    But when I run the data load, I want to take from the BI cube ONLY the datas matching the CVW selected, not all the datas from the BI cube. Second needing is to upload during the run 2 keyfigures from BI to BPC with same selection filter.
    Example:
    - I select in the Current view  ENTITY:  ACME  and CATEGORY: CON
    - I want to upload the 0AMOUNT and 0QUANTITY from the BI cube to BPC of the 0COMPANY "ACME" and the 0VERSION: "CON"
    As I understand I can put in the Options of my transformation file using SELECTION , something to filter the datas, but I want that this is dependent from the current view selection. No extra prompts, and to upload the 2 keyfigures in the same process.
    Any idea is welcome.
    Thanks a lot in advance  for any help.
    Edited by: Walter Cista on May 29, 2010 9:29 AM
    Edited by: Walter Cista on May 30, 2010 7:14 PM

    Hi,
    thanks for the answer, but my situation is little bit different.
    I don't want to ask again with prompt to choose my ENTITY to the user, because I have on the main Input schedule, a menu button to choose ENTITY and so the user will just choose once.
    I also understood that the variables selected with the current view, can be found inside DEFAULT logic with [dimension].Currentmember, but I do not work with default logic. I have my own ZLOGIC, and during the call I would like to pass the ENTITY choosen by the user to the logic. In this way when I run my transformation to upload data from a BI cube to BPC cube, I only select a slice of datas, not all the datas in the cube. In short, if I can manage the [DIMENSION].CURRENTMEMBER I will only take from the BI cube the datas I want. As I know if in the TRASFORMATION OPTIONS, in SELECTION if I pass some datas, like ENTITY = ACME I upload to BPC only BI datas of company ACME.....
    So, I would like to do something like this.
    Any reply and help is welcome
    Walter

  • Error when extracting data from ETL - Missing messages and missing InfoIdoc

    Hi All,
    We are using BW 3.0 and extracting data from other source systems through Informatica Powercenter (ETL). The system is working fine but when we try to extract data on 31st Dec , we get the following error. Only this load gives the error and all the other load to other data targets are going fine. All the data are one-to-one mapped from ETL to BW.
    Error messages from Monitor -Status tab:-
       "InfoIdocs missing; external system
       Diagnosis :- InfoIDocs are missing. The IDocs are created in BW with non-SAP systems as source    
       systems that transfer the data and metadata to BW using BAPIs. Since the IDocs are missing, a   
       short dump in BW probably occurred.
       System response:  No selection information arrived from the source system"
    Error messages from Monitor -Details tab:-
        Missing message: Number of sent records,   Missing message: Selection completed
    Highly appretiate your suggestions.
    Vinod.CH

    Hi Rathy Moorthy,
    Thank you very much for your reply. The source system connections are OK and we are able to load data to other Data targets from ETL, we have issue only with this this particular load. The load extracts data and I have loaded the data from ETL to PSA and have checked the data content and it is correct. But when I update the same data to the target I get this error. I have also tried to update from PSA to target and also directly from ETL to target.
    Appretiate your suggestions.

  • How to Extract  data from a transaction..

    Hi All
    There are some transactions and report programs which are used daily to produce some results and the requirement is to extract that data into BW
    so how can we extract information from a transactions and programs
    Any help will be really appreciated and ofcourse rewarded ...
    Regards
    Lisa

    You can use the following methods
    Method 1:
    1> Create another ABAP program with logic to calculate all the fields, but instead of writing the result data to screenm, it should store it in a internal table and pass it to the extract structure.
    2>Create a InfoSet query based on your ABAP program and use that InfoSet
    3> Create a DataSource based on this InfoSet query and extract data from the DS to you ODS/Cube
    In this method there is no Intermediate storage used.
    Method 2:
    1> Modify the report/transaction program to store the required data into a Transparent Table (u can create one from SE11) in addition to displaying on the screen.
    2> Create a View on this transparent table (from SE11)
    3> Create a DataSource on that view and extract data from that into your ODS/Cube.
    Here, the required data is stored in the Table in addition to the DataTarget.
    But, to implement either of these solution, you will need a decent ABAP knowledge. Else, it will give you a tough time!
    Good luck!
    Regards,
    Sree

  • How can I extract data from a sound file in carbon

    hello,
    I am a student and I start recently learning carbon. I have to do a application which can read and extract data from a sound file and use that data to do some kind of visual representation of the file. I would like to know if someone can give some directions, tutorial,some code sample etc.
    thank you for your help
    chenita7

    hello orangekay
    My idea is to create an application that can read a sound file( AIFF, MP3 or other) in order to extract some kind of data ( numbers or any values) and use that data to represent the sound file visually.
    I dont know which kind of data can be extract from a sound file, and in which way i can manipulate that data to became a visual representation of the sound file. this is what I want to do as my second assignment for a subject at school, introduction to programming. has to be done based in carbon.
    regards
    chenita7

  • How to Create an R/3 source system and load data from there

    Hello All,
    Till now I have only worked with Flat files. I want to create an R/3 source system and extract data from there on to my Info Providers.
    Does anyone has detailed steps for that. I am using BW 3.5 system
    Thanks n Regards,
    Abhishek

    1. Type Transaction WE30. Check iDoc types
    2. Type Transaction SM59. Maintain RFC destinations
    a.) Open the RFC Destinations. b.) Find your Source System and double click on it. c.) Technical setting should contain information regarding yoursource system d.) Logon Information should contain source system client and name & password for you remote logon. We use RFC_SAB for BW logon to R/3 and RFC_AAE for R/3 logon to BW. Password for both is always xxxxxxx. e.) Execute your 'Test Connection' & 'Remote Logon'. You should NOT be prompted for a password, if you are then the logon info is incorrect. f.) Repeat above to verify RFCs for other systems (CRM etc)
    3. Type Transaction WE21. iDoc Processing Ports.
    a.) Select 'Ports' and then 'Transactional RFC'. b.) Click on the Port # for you source system. c.) Verify description & SAP R/3 version.(BW 2.1C should be release 4.x) d.) RFC Destination should be one created in SM59. If non-existent then create one
    4. Type Transaction SE16. Data browser (for R/3  BW Connections)
    5. Type Transaction SM30. Msg Types & Assignment to iDocs
    Enter 'EDIMSG' in the Table/View field. Click on the 'Enter Conditions' option for Restrict Data Range. Click 'Maintain'. Select Message Type. Then enter 'RSSEND' in "From' field. Verify that the Basic Type matches what is in your RSBASIDOCtable for each of your connections. If any are missing any entries you must create them as follows: Create another session and type Transaction WE30. Enter IDoc Type (ZSBAXXX) in Obj. Name field (Suggestion: Start new type with 'ZS' + Transfer Structure Prefix + (3)#'s) Select Create. Select "Create from Copy'. Enter 'RSSEND" in 'Copy From' field Enter Description (i.e. IDoc Type for BW Development) Execute (Green Check). Repeat for other missingentries.
    6. Go to the SM30 main screen. Clients Overview
    Enter 'T000' in the Table/View field. Click 'Maintain'. Verify correct Client and Description. If incorrect enter.
    8. On BW Type Transaction WE20. Partner Profiles
    9. On R/3 Type Transaction WE20. Partner Profiles
    10. Check all is correct

  • Extract data from SAP and send to external system via Webmethods & IDOC's

    Hi,
    We need to Extract data from SAP and send to an external system via Webmethods middlewear using IDOCs. I have never used webmethods before and would like to know more about how to implement this scenario. I have used IDOCS in an EDI scenario before but not used it along with WebMethods.
    Any pointers would be of great help. Thanks

    If you have already ABAP programs /BAPI's in place then try to develop RFC interface and write some back ground programs to scheudl BAPI's and develop scenario but you need to implement error handling , data validation in PI mapping level.
    or
    take help from ABAPer to design in ABAP like writing Proxy program to pull data and send it PI.
    if you are dealing with master data bit risky(correctness) but can be achived using PI.

  • How to extract data from xml and insert into Oracle table

    Hi,
    I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
    There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
    I need to extract the values of these columns and insert into the table
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
    <Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>

    Re: Insert from XML to relational table
    http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta=

  • How to extract data from generic view and function module

    hi experts,
    can anybody give me the steps to extract data from generic view and  functon modules.
    thanks and regards
    venkat

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    https://websmp103.sap-ag.de/~sapidb/011000358700007535452002
    Hope it Helps
    Chetan
    @CP..

  • Error While extracting data from FIAA and FIAP

    Hi Gurus,
    I am facing error while extracting data from R/3 Source. 0FIAA, 0FIAP datasources. I am getting the same error repeatedly. No data will come BW. When I checked in RSA3 I can extract records.
    Ther Error is as follows:
    Request still running
    Diagnosis
    No errors could be found. The current process has probably not finished yet.
    System response
    The ALE inbox of the SAP BW is identical to the ALE outbox of the source system
    and/or
    the maximum wait time for this request has not yet run out
    and/or
    the batch job in the source system has not yet ended.
    Current status
    No Idocs arrived from the source system.
    Kindly help. Your points are assured.
    Thanks and Regards
    Prasad

    Hello Prasad,
    Have you already checked what happened in the source system ?
    You should verify if a job is running in sm37, or if there is no dump runtime errors due to the extraction in st22.
    It could be a clue of what happened in R/3.
    Let us know,
    Regards,
    Mickael

  • Currency type 10,30 and 00 need to extract data from R/3 to BI

    Hi Experts,
    I am working ECC6.0 version with BI 7.0,
    I have a issue, when I extracting data from R/3 data source (0FI_AP_3) only currency type 10 comming but I need currency type 30 and 00 also....
    when I check in data source abap code it was hard coaded with 10 currenly only,
    can any help me to provide your inputs how currecy type 10, 30 and 00 also come to BI.
    Regards,
    Vijay

    Hi Vijay,
    0FI_AP_3 is Account payable -Actual line item data source, which was used for fetch actual vendor posting data.
    If you are looking for planning and budgeting data then you sud go for 0FI_AP_1 / 0FI_AP_6 / 0FI_AP_7 based on your requirement.
    Kindly let me know if you have any question on this.
    Regards,
    Ashish

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

  • Hi i am new to labview. i want to extract data from a text file and display it on the front panel. how do i proceed??

    Hi i am new to labview
    I want to extract data from a text file and display it on the front panel.
    How do i proceed??
    I have attached a file for your brief idea...
    Attachments:
    extract.jpg ‏3797 KB

    RoopeshV wrote:
    Hi,
    The below code shows how to read from txt file and display in the perticular fields.
    Why have you used waveform?
    Regards,
    Roopesh
    There are so many things wrong with this VI, I'm not even sure where to start.
    Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
    Not using Read From Spreadsheet File.
    Use of local variables to populate an array.
    Cannot insert values into an empty array.
    What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
    Also, how does this answer the poster's question?

  • How to Extract Data from SAP and Load it into Essbase

    Hi All,
    Can you recommend some ways to extract data from SAP and load it into Essbase?. I have no knowledge about SAP, not sure how I can perform this task. Can I use ODI for this job?
    Thanks

    hi,
    Not sure if this helps but give a try
    you can create connection from EAS to SAP .. using a plug-in .. if you have access to oracle Support go for [ID 968961.1]
    or
    below are steps
    1. In EASPATH\console, open components.xml in a text editor.
    2. Under <PluginList>, enter <Plugin archiveName="SAP" packageName="com.essbase.eas.sap.ui"/> before the closing </PlugIn> tag.
    3. Save and close the file.
    4. In EASPATH\console\bin, open admincon.lax in a text editor.
    5. Search for lax.class.path= and append ;..\lib\sap_client.jar;..\lib \sap_common.jar to the entry. Save and close the file.
    6. In EASPATH\server\bin, open adminsvr.lax in a text editor.
    7. Search for lax.nl.java.option.additional, and append -DRFC_INI=EASPATH\server\saprfc.ini. Save and close the file.
    8. Create a new environment variable, RFC_INI, with a value of EASPATH\server\saprfc.ini
    9. Copy librfc.dll andsapjcorfc.dll to EASPATH\server\bin. You may need to obtain these files from SAP.
    let me know if it works :)

Maybe you are looking for

  • SAP Crystal Reports connection to SAP R/3

    Hello Everybody, I install SAP BO Enterprise Edition XI 3.1 SBOP Rich Client Tools XI 3.1 SBOP Integration Tool Kit XI 3.1 Java Connector Crystal Reports 2011 I configured all the integration and it works fine, i can log on the Infoview with SAP ID.

  • What version of Firefox is on my computer?

    I can't get registered on a web site, and need to find the version of Firefox I have.

  • I cant remember the answers to my security questions..how can i reset it???

    I cant remember the answers to my security questions..how can i reset it???

  • Export pictures to PC

    Hi, I've taken a picture with the flash on my iPhone and the picture seems to come out with white eyes. I tried using the red eye tool that comes with iPhoto. When I exported the picture to my PC, the picture was not modified and still had white eyes

  • E4200 - a "fail" in my book

    Alright, in a nutshell, it sets up easily and as a router, it works pretty much as described. There were a couple of "ups and downs" the first day, but many fewer than I've had with previous Linksys routers. The interface will be very familiar to any