Getting user OID info

Hello:
I need to get more info from a user inside a portlet. I can get username and DN from a user that has logged in portal from my portlet, but when I call another fuctions like getFirstName, getLastName or getPropertyValue I always get null values.
<br><br>
This is a piece of my code:
<br><br>
PortletRenderRequest pReq = (PortletRenderRequest)
request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
ProviderUser pUser = pReq.getUser();
<br><br>
<P> DisplayName = <%= pReq.getUser().getDisplayName() %>.</P>
<P> FirstName = <%= pReq.getUser().getFirstName() %>.</P>
<P> DN = <%= pReq.getUser().getUserDN() %>.</P>
<br><br>
Only getUserDN() and getName() works. I need to get more attributes from the OID and
<br><br>
Another 'extrange' thing is that I see no data (apart from USER_NAME or ID) into the WWSEC_PERSON view. Are this two things related? From PL/SQL I can call wwsec_api.person_info and it works OK, so I suppose that it is connecting to the directory correctly.
<br><br>
Thanks in advance,
Javier.

We use a procedure that runs every night to refresh the OID data into a table. Then we use the porta.wwctx_api.get_user function to pull information into a portal componet. Here is the procedure code followed by the table code:
CREATE OR REPLACE PROCEDURE wwsec_pers_closepf_proc2 IS
BEGIN
     DELETE closepf_person2;
     COMMIT;
          FOR i in (select ID from portal.WWSEC_PERSON$)
          LOOP
     DECLARE
          l_person_ID                number     := portal.wwsec_api.person_info(p_person_id => i.id).ID;
          l_person_USER_NAME      varchar2(256) := portal.wwsec_api.person_info(p_person_id => i.id).USER_NAME;
          l_person_EMPNO                varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).EMPNO;
          l_person_LAST_NAME           varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).LAST_NAME;
          l_person_FIRST_NAME      varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).FIRST_NAME;
          l_person_MIDDLE_NAME      varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).MIDDLE_NAME;
          l_person_KNOWN_AS           varchar2(80) := portal.wwsec_api.person_info(p_person_id => i.id).KNOWN_AS;
          l_person_EMAIL                varchar2(256) := portal.wwsec_api.person_info(p_person_id => i.id).EMAIL;
          l_person_WORK_PHONE      varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).WORK_PHONE;
          l_person_MOBILE_PHONE      varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).MOBILE_PHONE;
          l_person_PAGER                varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).PAGER;
          l_person_FAX                varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).FAX;          
          l_person_OFFICE_ADDR1      varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_ADDR1;
          l_person_OFFICE_ADDR2      varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_ADDR2;
          l_person_OFFICE_ADDR3      varchar2(60) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_ADDR3;
          l_person_OFFICE_CITY      varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_CITY;
          l_person_OFFICE_STATE      varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_STATE;
          l_person_OFFICE_ZIP      varchar2(30) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_ZIP;
          l_person_OFFICE_COUNTRY varchar2(256) := portal.wwsec_api.person_info(p_person_id => i.id).OFFICE_COUNTRY;                                        
          l_person_TITLE               varchar2(80) := portal.wwsec_api.person_info(p_person_id => i.id).TITLE;
          l_person_MANAGER           number     := portal.wwsec_api.person_info(p_person_id => i.id).MANAGER;
          l_person_DEFAULT_GROUP      number          := portal.wwsec_api.person_info(p_person_id => i.id).DEFAULT_GROUP;
          l_person_PMO_GROUP          boolean          ;--:= portal.wwsec_api.is_user_in_group(p_person_id => i.id, p_group_id => (23));
          l_person_GUID               varchar2(32);     
          v_pmo_group                    varchar2(5);
          CURSOR get_guid IS
               SELECT guid
               FROM orasso.wwsec_person$
               WHERE user_name = l_person_USER_NAME;
     BEGIN
          OPEN get_guid;
          FETCH get_guid INTO l_person_GUID;
          CLOSE get_guid;
          IF l_person_PMO_GROUP = TRUE THEN
               v_pmo_group := 'TRUE';
               ELSE v_pmo_group := 'FALSE';
          END IF;     
          INSERT INTO acquisitions.closepf_person2 (
               id,
               user_name,
               empno,
               last_name,
               first_name,
               middle_name,
               known_as,
               email,
               work_phone,
               mobile_phone,
               pager,
               fax,
               office_addr1,
               office_addr2,
               office_addr3,
               office_city,
               office_state,
               office_zip,
               office_country,
               title,
               manager,
               default_group,
               guid,
               pmo_group)
          VALUES      (
               l_person_ID,
               l_person_USER_NAME,
               l_person_EMPNO,
               l_person_LAST_NAME,
               l_person_FIRST_NAME,
               l_person_MIDDLE_NAME,
               l_person_KNOWN_AS,
               l_person_EMAIL,
               l_person_WORK_PHONE,
               l_person_MOBILE_PHONE,
               l_person_PAGER,
               l_person_FAX,
               l_person_OFFICE_ADDR1,
               l_person_OFFICE_ADDR2,
               l_person_OFFICE_ADDR3,
               l_person_OFFICE_CITY,
               l_person_OFFICE_STATE,
               l_person_OFFICE_ZIP,
               l_person_OFFICE_COUNTRY,                                                                                                     
               l_person_TITLE,     
               l_person_MANAGER,
               l_person_DEFAULT_GROUP,
               l_person_GUID,
               v_pmo_group);                                                                      
               EXCEPTION WHEN NO_DATA_FOUND
                    THEN
                         EXIT;
               COMMIT;
     END;
     END LOOP;
END;
CREATE TABLE CLOSEPF_PERSON2
ID NUMBER NOT NULL,
USER_NAME VARCHAR2(256),
EMPNO VARCHAR2(30),
LAST_NAME VARCHAR2(60),
FIRST_NAME VARCHAR2(60),
MIDDLE_NAME VARCHAR2(60),
KNOWN_AS VARCHAR2(80),
EMAIL VARCHAR2(256),
WORK_PHONE VARCHAR2(30),
MOBILE_PHONE VARCHAR2(30),
PAGER VARCHAR2(30),
FAX VARCHAR2(30),
OFFICE_ADDR1 VARCHAR2(60),
OFFICE_ADDR2 VARCHAR2(60),
OFFICE_ADDR3 VARCHAR2(60),
OFFICE_CITY VARCHAR2(30),
OFFICE_STATE VARCHAR2(30),
OFFICE_ZIP VARCHAR2(30),
OFFICE_COUNTRY VARCHAR2(256),
TITLE VARCHAR2(80),
MANAGER NUMBER,
DEFAULT_GROUP NUMBER,
GUID VARCHAR2(32),
LASTUPDATED DATE DEFAULT sysdate,
USER_LOGIN VARCHAR2(5)
Thanks,
Martin

Similar Messages

  • Where can I get user mapping info?

    Dear all,
    I have to implement a simple audit report that displays the mapping of an EP user name and the related SAP user name that he/she use during certain time. Where can I get that kind of information?
    Please help.
    Rgds,
    Adhimas

    Hello Adhimas,
    as I answerd you in the other thread I think that you can use the Export Function of the J2EE Usermanagement at http://your-portal/useradmin. You can give also points for this answer ;-).
    Regards
    Gregor

  • Java code to get user mapping info

    I am writing a Java Servlet that needs to read the username and password to a user mapping system.  Can anyone post a code example that will accomplish this?  I have already been looking through the forums, so please don't post links to other forum entries.

    hello Pfister,
       I'll send you one article link , just go thru it ,
    you can many examples from basics. if you get any errors just take that error no. which displayed , you can find the solution for that error in the link.
    This link you can see one good example:
    http://www.onjava.com/pub/a/onjava/excerpt/java_cookbook_ch18/index.html?page=5
    Regards,
    Varun

  • Oas webforms - getting user state info

    hi
    OAS4 does a great job of providing WebForms and i've found all sorts of documentation about these forms being state-based but how is it possible to determine the username of the user accessing a particular form (from within the form)? And, what other state information can be accessed or stored across forms?
    thanks in advance
    Buck
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Uncle Buck ([email protected]):
    hi
    OAS4 does a great job of providing WebForms and i've found all sorts of documentation about these forms being state-based but how is it possible to determine the username of the user accessing a particular form (from within the form)? And, what other state information can be accessed or stored across forms?
    thanks in advance
    Buck<HR></BLOCKQUOTE>
    Uncle Buck, did you ever get an answer to this. I have the same problem and have been unable to find an answer. My email is [email protected] Any help from ANYBODY would be helpful. I have a Oct 1st deadline and no answers.
    null

  • How i get user info from ldap using java after authenticating user with SSO

    Hi
    I have one jsp/bean application as a partner application with SSO.
    It works fine.
    Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
    using SSO java APIs i only get username, userDN, subscriber info.
    To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
    so here i my question, how do i get user password after he has logged in thro SSO.
    regards..
    and thanking u in advance
    samir

    Valentina,
    there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
    --Olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HT1918 how  can i get the user manual  info back  which has  been  erased  from my  settings  icon  pafe  after  a restore from itunes

    how  can i   get  my user  manual info  back onto  my  settings   menu 
    this  heading  did  not  appear  on the settings  menu following  a  restore  necessitated  bt  a  freezing screen  glitch  thanks

    I'm not entirely sure what you are referring to, there isn't a user manual section in the iPad's Settings app. If you want an iPad then you can either download it from here : http://support.apple.com/manuals/ipad/
    Or if you download the iBooks app then there should be a copy in the ibookstore in it

  • Get user info step

    Hello I to know how work the step Get user Info.
    anyone can help me?

    If you are sending XML payloads to CAD, you are probably using IPC, correct?
    The best way you can handle this then is have the CAD login action "register" the login with your IPC server.
    Here's a video I made, showing how CAD can talk to an IPC server (written in ruby).
    http://www.youtube.com/watch?v=88E-z0ShlFE
    Here is a forum thread where I gave away the code:
    https://supportforums.cisco.com/message/3041806#3041806

  • Getting user info with integrated dot net app.

    To start, I know nothing about SAP integration. This has been thrown at me to try to resolve.
    I need to integrate a dot net app into SAP. I need to know who the user is that is accessing my .ascx page.
    I found this:
            Dim userInfo As Map = DirectCast(Request.getAttribute(PortletRequest.USER_INFO), Map)
            lblUserID.Text = DirectCast(userInfo.[get]("user.name.given"), String)
    And This:
    <portlet-app>
    <user-attribute>
    <description>User Given Name</description>
    <name>user.name.given</name>
    </user-attribute>...
    Any help would be appreciated, and again, if you can help I will need complete help, because as Sgt Schultz would always say..
    I know nooooothing...
    Edited by: Raymond Blair on Dec 15, 2008 5:40 PM

    Hello Raymond,
    For developing .NET applications I would recommend you to evaluate [PDK for .NET|https://www.sdn.sap.com/irj/sdn/dotnet?rid=/webcontent/uuid/40be5378-bfa9-2b10-399b-ba5719c0b5b8] ( Portal Development Kit for Microsoft .NET ). As a part of its installation, you get documentation integrated into Visual Studio help. It contains a set of very helpful tutorials.
    Best Regards,
    Rima.

  • Downloaded 3.6 version of firefox and it changed my favorites, quicken, other files back to 1.5 yrs ago. How do I get back the info it has erased or hidden from me???

    Question
    Today downloaded 3.6 version of firefox and it changed my favorites, quicken, other files back to 1.5 yrs ago. How do I get back the info it has erased or hidden from me???

    What do you mean by '''''"changed my favorites, quicken, other files back to 1.5 yrs ago"'''''? More detail please.
    <br />
    You have an item installed that is considered malware/spyware/adware. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Ask Toolbar Plugin Stub for 32-bit Windows
    Unfortunately, it is becoming more and more common for these kinds of "extras" (toolbars, security scanners, etc.) to be added to your browser/system/desktop when adding or updating other software, some from very well-know software vendors. You must carefully read information before downloading any "free" software and be very alert during the install process for any opportunity to opt-out of "extras" being installed.
    '''<u>If you have the Ask Toolbar</u>'''<br />
    * First try to disable or uninstall the Ask Toolbar in Firefox via "Tools -> Add-ons -> Extensions". See: [[Uninstalling add-ons]]<br />
    *In some cases, you may need to uninstall the Ask Toolbar using Windows Control Panel .
    **See [http://support.mozilla.com/en-US/kb/Cannot+uninstall+an+add-on#Uninstall_from_Windows_Control_Panel Cannot uninstall an add-on - Uninstall from Windows Add/Remove Programs].
    '''<u>You '''MAY''' need to reset your homepage</u>''' if an Ask search page opens when first starting Firefox. Firefox can open multiple home pages. Home pages are separated by the "|" symbol.
    *See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    '''<u>You ''MAY'' need to reset a preference</u>''' if searches from the URL/location bar take you to an Ask search page.<br />
    To reset the preference related to Ask search from the URL/location bar via about:config, specifically the keyword.URL preference -<br />
    *Open a new tab or window.
    *Type '''''about:config''''' in the URL/address bar and press the Enter key
    *If you see a warning, accept it (promise to be careful)
    *Filter = keyword.url
    *Right-click on the preference below the Filter, and choose Reset
    *Restart Firefox (File > Restart Firefox)
    *See: http://kb.mozillazine.org/Keyword.URL for details.
    Also see:<br />
    * http://kb.mozillazine.org/Problematic_extensions#Ask_Toolbar
    * http://kb.mozillazine.org/Uninstalling_toolbars
    <br />
    '''Other issues that need your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    **New Adobe Reader X (version 10) with Protected Mode just released 2010-11-19
    **See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    *Shockwave Flash 10.1 r82
    *Next Generation Java Plug-in 1.6.0_19 for Mozilla browsers
    **4 updates behind
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''. Note separate links for:
    #**Plugin for Firefox and most other browsers
    #**ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    #*Also see "Manual Update" in this article: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How can I get sso login info ''urlc'' in a portlet?

    For partner-app, when the user tries to access the app through a direct url, the user will be directed to the portal's sso login page. After the portal's sso authenticates the user, it will redirect the user back to the app with the authentication information (urlc to be more specific) appended to the url. The app then can use this urlc information to call the sso-sdk api to get user info and to set cookie etc.
    Instead of having the user to access the app directly by typing the url in the browser, I create a "gateway" portlet to display a link to the app and inport the portlet in a portal page. When the user gets to this portal page, the user has already logged in, therefore when the user clicks on the link, the user should not be redirected to portal's sso login page. In order to do that, I have to insert the urlc information in the link. My question is, how can it get the urlc information, therefore when I create the link dymanically in the gateway portlet, I can insert it into it? FYI - I am writing the gateway portlet in java. Is there any java api in the jpdk that I can use to get the urlc information?
    Thanks
    Vince

    The easiest way would be to set a SESSION of the username, and then insert the contents of that SESSION into the classified table's username field. You need to register a SESSION on every page of your site by placing <?php session_start(); ?> at the top of every page (in code view). This must be the very first line of code. Using SESSIONS is very handy because it stores any information that you want in a cookie - except that this is stored on the server (not the user's hard drive) and is destroyed when the user quits the browser.
    <br />
    <br />Here's a couple of different ways to get you started
    <br />
    <br />
    <code>
    <br /><?php session_start(); ?>
    <br /><?php require_once('Connections/conn.php'); ?>
    <br /><?php<br /> // check to see if the username session is set<br><br /> if(!isset($_SESSION['username'])) {<br />  // it's not, register the username session<br />  $_SESSION['username'] = $username;<br /> }<br /> <br /> // or grab the username from the $_POST of the login form<br /> $username = trim($_POST['username']);<br /> $_SESSION['username'] = $username;<br /> <br /> // insert into classifieds table<br /> $sql = mysql_query("INSERT INTO classifieds (username) VALUES('".$_SESSION['username']."')") or die(mysql_error());<br />?>
    <br />
    </code>

  • Rebate, see rebate payments in user defined info structure (SIS)

    Hi Gurus...i hope you can help me
    The client need to see the rebate payments for each material in a user define info structure (S500) where the material is a characteristic of the infostructure and the payment is a ratio
    I get to show the accrued value per material but no the payment
    If the system show me the accrued value for at material level in a infostructure..i supose is possible to show the payment value?
    I did create a S520 info structure as copy of S060, but when i try to create a update rule for the payment ratio the system show me the follow message
    "Only source fields from MC communications structures allowed"
    please let me kow how i did wrong....
    tx a lot

    Payments of rebates in SAP ERP are credit notes (billing documents).
    Therefore you should see them in the sales infosystem as billing documents.
    If you add the billing document type in the sales infostructure as a characteristic, then you will be able to report on rebate payments because they always have a specific billing document type.

  • How do you resolve the issue with an error message on the Mac mini server stating Unable to get users

    How do you resolve an issue when creating groups on a Mac Mini Server when this error message appears.
    "Unable to get Users & Groups State, The Open Directory master was created, but a problem was encountered trying to refresh the state of the server. Check log files for more info."

    Most likely, the Server was not configured correctly - DNS is a common issue, If DNS is not configured properly, OD will not be happy. You can run
    sudo changeip -checkhostname
    in Terminal to see of DNS is up and running.
    Here's a great tutorial (not mine) for setting up OS X Servers. The page says it's for a typical school environment, but it can be applied in many other environments.
    http://www.wazmac.com/servers_network/fileservers/osxserver_setup/index.htm
    hth
    Jeff

  • Unable to get Http Header info in webservice Handler

    Hi,
    I have been trying to get the Header info in my custom Handler unsuccessfully
    for the past few days.
    Upon web search, I am constantly redirected to use a Servlet filter to get the
    headers. I have to use the Weblogic Native SOAP engine and not any Servlet Filters.
    In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
    which returns the HttpServletRequest and then I can get the headers off that.
    I can't find something similar in WebLogic. Any ideas?
    Any help in helping me track this problem down would be much appreciated.
    Thanks,
    Sridhar.

    Yes, you are correct that you are taking a risk by using the "__BEA_PRIVATE_BINDING_PROP"
    property, on the MessageContext object. The mechanism I provided is the recommended
    (and supported) way to get the HTTP headers, as it only uses "documented" class.
    Some developers think you are trying to "hide" something with undocumented classes,
    but I don't think this is the case with BEA. There are good reasons and the point
    you made about the likelihood of an unannouced future change breaking your code,
    is probably pretty high on the list :-)
    Getting the REMOTE_ADDR (or REMOTE_HOST) would most likely require the "undocumented"
    approach you've taken. You could get the HttpServletRequest from this same HttpServerBinding
    object, and call the getRemoteAddr() method on it. However, I really, really,
    really think you should consult our "fantabulous" BEA support department, to see
    if doing this will be supported.
    Regards,
    Mike Wooten
    "Sridhar" <[email protected]> wrote:
    >
    Michael,
    Thanks a bunch for your reply. I have been going crazy over this and
    your reply
    made my day.
    I still have a slight problem with this though. This does not seem to
    give me
    the Client IP etc. Any ideas to get that?
    Thanks again for the code. It was a great help.
    Sridhar.
    PS BTW, I found another way of getting the same info:
    HttpServerBinding httpBinding = (HttpServerBinding) messageContext.getProperty("__BEA_PRIVATE_BINDING_PROP");
    Enumeration headerEnum = httpBinding.getRequest().getHeaderNames();
    while (headerEnum.hasMoreElements()) {
    String header = (String) headerEnum.nextElement();
    System.out.println("header = " + header);
    System.out.println("header Value = " + httpBinding.getRequest().getHeader(header));
    But, I am guessing BEA doesn't want me to go this route as they might
    change the
    implementation and my code will immediately break.
    "Michael Wooten" <[email protected]> wrote:
    Hi Sridhar,
    You should be able to get at the HTTP Headers that were sent by theconsumer
    of
    your web service, by using the following code in your JAX-RPC handler:
    import java.util.Iterator;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.soap.MimeHeaders;
    import javax.xml.soap.MimeHeader;
    import javax.xml.soap.SOAPMessage;
    public boolean handleRequest(MessageContext mc)
    SOAPMessageContext messageContext = (SOAPMessageContext) mc;
    try
    SOAPMessage original = messageContext.getMessage();
    MimeHeaders mimeheaders = original.getMimeHeaders();
    MimeHeader mimeheader = null;
    Iterator iter = mimeheaders.getAllHeaders();
    for (; iter.hasNext();)
    mimeheader = (MimeHeader) iter.next();
    System.out.println("name=" + mimeheader.getName() + ", value="
    + mimeheader.getValue());
    catch (Exception e)
    e.printStackTrace();
    throw new JAXRPCException(e);
    Here's the output from the System.out.println():
    name=Content-Type, value=text/xml
    name=SOAPAction, value=""
    name=User-Agent, value=Java1.4.1_05
    name=Host, value=localhost:7001
    name=Accept, value=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    name=Connection, value=Keep-Alive
    name=Content-Length, value=505
    Regards,
    Mike Wooten
    "Sridhar" <[email protected]> wrote:
    Hi,
    I have been trying to get the Header info in my custom Handler unsuccessfully
    for the past few days.
    Upon web search, I am constantly redirected to use a Servlet filterto
    get the
    headers. I have to use the Weblogic Native SOAP engine and not any
    Servlet
    Filters.
    In Axis, I can do a (HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST)
    which returns the HttpServletRequest and then I can get the headersoff
    that.
    I can't find something similar in WebLogic. Any ideas?
    Any help in helping me track this problem down would be much appreciated.
    Thanks,
    Sridhar.

  • Getting User-Agent through J2ME Client

    Hi, i think most of the developers here might have come across this problem.
    I have a servlet that will get the client's User-Agent headers value when the client access it. When i access the servlet through a phone browser, the header will give me the phone's user agent. But when i access the same servlet through my J2ME client, the header will return a value of 'UNTRUSTED/1.0' string which doesn't contain any user agent info.
    I understand that in JSR implementation the 'UNTRUSTED' string will be appended to the User Agent header, but the original user agent value is not there. Does anyone knows what is the reason behind this?
    Thanx.
    FooShyn

    first:
    - do not multipost the same message
    second:
    - did you put headers on your connection in your application?
    - and the only useragent that you can get is the useragent defined in the app...
    for example:
    try {
          c = (HttpConnection)Connector.open(url);
          c.setRequestMethod(HttpConnection.GET);
          c.setRequestProperty("IF-Modified-Since", "10 Nov 2000 17:29:12 GMT");
          c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
          c.setRequestProperty("Content-Language",      "en-CA");
          os = c.openOutputStream();
    ...taken from http://developers.sun.com/techtopics/mobility/midp/articles/network/ThirdExample.java

  • Getting User Accounts on Target Systems.

    Hi All,
    I want to get the user account info on the target system for an OIM user. I am trying to find the tables in which this info is stored. But as each target resource will have its own table for storing their respective user account information, so getting this result in a query for a user will not be possible.(Getting the target account info for all traget resources for that user.)
    Can anyone suggest me a Thor API for getting this info.
    TIA,
    Andy

    Thnx Kevin,
    But as each resource has it own table to store their respective user accounts information. So how we can join these tables dynamically?. Can you just let me know the tables I can refer in the OIM DB. I have used so far ORC, OIU and OST tables for fetching the resource info. But any of these tables doe not contain the user account info on that particular resource. Any sample will be helpful...
    TIA,
    ANdy

Maybe you are looking for