User Information checkboxes in remote web service

They have these checkboxes there for a reason - ease of property retrieval in a remote portlet. However, I'm unable to retrieve these values w/o using the IObjectManager and IExtendedData. If I'm using the .net app accel 1.1 and my portlet page is inheriting from the ALIPortletPage class, how the heck do I easily retrieve the user's email or full name or company name or any of the checkboxed values?
Right now I achieve this like this:
IRemoteSession currSession = RemoteSessionFactory.GetTokenContext(this.RemoteAPIEndpoint, User.LoginToken);
IObjectManager objMgr = currSession.GetObjectManager(ObjectClass.User) as IObjectManager;
IExtendedData extData = objMgr.QueryExtendedData(this.User.ID) as IExtendedData;
// employee id
extData.GetValue("Employee Id").ToString();
// company
extData.GetValue("Company").ToString();
This works fine, but there must be an easier way than this if they're explicity offering checkboxes at the web service level for the most used properties. Anyone?

Are you trying to get info about a random user? or the currently logged in user?
There appears to be a transformer tag to retrieve info about the logged in user:
The userInfo tag is replaced with the value of the specified User Information setting. Note that this tag uses camel case for the tag name (userInfo).
Example:
<pt:userInfo pt:name="FullName"/>
http://edocs.bea.com/en/alui/devdoc/docs6x/api_libraries/tagdocs/ali/6.5/transformer/userinfo.html

Similar Messages

  • 401 HTTP Response for remote web service portlet

    Hi, I am trying to configure IIS web page in ALUI as a remote web service portlet. I have used one of the help HTML pages of IIS server to configure portlet.
    http://localhost/IISHelp/iis/htm/core/iiwltop.htm
    However, I am getting 401 http response error (You are not authorized to view this page) when i view the portlet. The same URL above works fine if I open in a stand alone browser. Could any one of you help in resolving this please?
    Thanks
    Sampath

    Hi, thanks a lot for your help. I am using windows XP professional. When I set my directory security & grant anonymous access to IUSER the default help site also not coming up, i am geting 401 error.
    When I checked the option Integrated Windows Authentication, then in Internet Explorer the help pages are coming up with out asking for user name and password. I installed firefox and checked. In Firefox, a prompt was coming to fill user name and password. I filled in my local windows authentication details and the page was working.
    I provided the windows login details for the remote server in Administrator's basic acuthentication information. I was still getting the same error (401 error). Then I went to IIS, drectory security settings and checked Basic Authentication(password is sent in clear text) & unchecked Integrated Windows Authentication, the website pages in IIS were showing up in ALUI. WIth this, my problem is half solved.
    The next problem is, I have siebel analytics web application running on IIS. This website requires user name and password if i have to access any report (say). It automatically redirects to my login page. Now I do not want portal user to enter the login details again for accessing siebel reports. But since I have two authentications (now) one for IIS and one for Siebel reporting website, any one know how to configure this?
    I was trying to configure different authentication in web service that i was creating in ALUI, but siebel website authentication information I am providing in web service is overriding the IIS authentication and I am getting 401 error (initial problem). I appreciate any auggestions.
    Thanks a lot in advance.
    -sampath

  • How to get the ep user information data in the web dynpro?

    Hi all
      I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

    Lin,
    Two steps to achieve this:-
    <b>Step 1:</b> Add the following code in your view Controller:-
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser objUser = user.getSAPUser();
    wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
    wdContext.currentContextElement().setYYYY(objUser.getFirstName());
    wdContext.currentContextElement().setZZZZ(objUser.getLastName());
    where XXXX, YYYY , ZZZZ are the context names.
    getUniqueName : Gives Login id of Portal user.
    getFirstName : Gives First Name of the Portal user.
    getLastname : Gives Last Name of the Portal user.
    <b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
    The external jars are :
    <b>com.sap.security.api.jar
    com.sap.security.api.perm.jar</b>
    Finally rebuild your project and deploy.
    Regards,
    <b>Chintan Virani.</b>

  • Workflow : User Decision on Email using Web Services

    Hi,
    I have the requirement of sending User Decision on Email Using Web Services.
    Eg : I have created one ECR Using T-Code "CC31" and on status change "CC32" of this ECR, My workflow triggers. Now what i want is to send the User Decision on maintain User Email ID  as URL link. This link will contain the ECR Nos. There will be "N" nos of Links send on email depending on Requirement. By clicking on that Particular Link , Action taken should be updated in sap.
    URL Link is just like confirmation link send on our email id during user Registration on some Website or when we create our Gmail / Yahoo Account.

    Why not use the extended notifications? - it has an option to send links to approve/reject or any other option in the decision task and use a standard web service. See the document attached to note 1646056 - Workflow Quick Start Guide to Extended Notifications.

  • How to set up User id and Password for Web services or authentication

    Hi ,
    I am new to web services . I have created a new Web service in SAP , and while creating Service defination , set the Authentication as LOW for server proxy .Then created End-point in SOAMANAGER with USREID/PWS requried .This WSDL i am planning to share with Third party to call from Java application.
    But my web service checks for authorization which needs to be set up to allow the user id and pws .
    So question is how do i pass my user id and pws as i do not see this WSDL with User id and pws option displayed for me when i test this using SOAP UI .I saw some of WSDL with tag "AuthHeader" with user id and pws tags in them .So how could i get them ?
    Or requirement is that my Third party should be able to access my Web service in PRD and also be able to have authorization to auth object embedded in FM inside service defination .So how is this acheived ?
    Thanks,
    Sitaraman

    Hi,
    After creation of WSDL , you will get URL lkie http://idessapdev.ad.infosys.com:8000/index.html.
    For this URL your third party system need sto add id and pwd for accessing like http://idessapdev.ad.infosys.com:8000/index.html&userid = 111&pwd= wwgw.
    this is not the exact syntax. you can check with your third party system for this URL.
    Regards,
    Lokeswari.

  • Missing type information when importing external web service

    Hello,
    using the SAP NetWeaver Developer Studio SAP NetWeaver 7.1 Composition Environment SP06 PAT0003, I have imported a number of RFCs from an R/3. The import succeeded as expected (see [here|http://img25.imageshack.us/my.php?image=importrfc.png]) and I am able to invoke the RFCs as intended.
    Now, we have imported these RFCs into a PI 7.1 and published them as web services.
    However, when I import these web services rather than the RFCs, the type information for parameters is lost as shown [here|http://img25.imageshack.us/my.php?image=importwebservice.png]. The missing type information is included in the provided wsdl files, though.
    Note: Using the current version of the NWDS for the CE 7.1 EhP1 does not solve this problem!
    Does anyone has an idea what is going wrong?
    Best regards
    Alexander

    The type information is actually not missing. However, the used types carry no names. Therefore, the types are displayed as "anonymous" in the NWDS.

  • Providing user id and password in web service model

    hi,
    i hv created a web dynpro application using web service model. The WSDL link had user id and password.
    even i had to provide the user id and password at the time of coding.
    what is the disadvantage of using userid and password at llink and also at runtime?
    hw can it be avoided?
    regards,
    ankita

    Hi
    you can give user name and password in coding
    wdContext.currentXXElement().modelObject()._setUserName(uid);
    wdContext.currentXXElement().modelObject()._setPassword(pwd);
    Regards,
    Naga

  • How to access remote web service?

    I try the demo in get start document(chapter 18).but I can
    not get any data.
    Do I have to change settings?Do I have to use FDS?
    Thanks
    Mark

    You are in the wrong forum - web services are not available with Sun webserver. Speaking of examples to check out, I would recommend you to install Sun appserver 8.1 or 8.2 and check examples that come with it, specifically in "samples/webservices" and "samples/xml" directories.

  • Flex mobile project: web root and root path for a remote web service?

    Hi all,
    i'm trying to set up the testdrive tutorial for flex mobile project, with flash builder 4.5
    and php data.
    I've uploaded the files on my remote web space (e.g. http://mywebsite.org, and the
    test file is http://mywebsite.org/TestDrive/test/test.php... and it works
    correctly)... But when i'm setting properties of the project, i don't know what
    to write into the web root and root path fields... I thing root path is simply
    http://mywebsite.org... and whatever i write in the other fields (output folder
    too) i have errors when i click on "validate configuration"...
    What should i put into those fields? is zend framework (and gateway.php)
    strictly necessary?
    As you can see... i'm a bit confused....
    Many thanks for any help
    Bye
    Alex

    I thought it was a simple question...
    No advice?

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • OWSM how can i get user credentials from gateway in web service server

    I need username in web service server. Gateway has option like "Insert WSBASIC Credentials" and service definition in gateway has "forwardcredentials" option. how can i use these options? has some any idea or sample code.

    Hi Surya,
    You asked whether there are any other solutions other than JavaBean.
    There are ..
    It is a round about way. But should work good on WEB. This is particular to MS things.
    As you know you can use vb scripting to invoke all of this Ms things on WEB. So the trick is have a dynamic page called with your actual doc name as a parameter. Script and do whatever you want in this Dynamic method. And from within Forms call this Dynamic page using WEB.show_document( remember within Forms I can call any WEB viewable doc ). It should do the job.
    But ( And that is a big but...)..
    You need to take care of lot many things here.
    You must have a app server which would support scripting like VB. And you must have MS OFFICE in the server . I understand this works best with 2000.
    So finally it boils down to what I need and what I have. And Yes It requires a good effort.
    Great going??? :))
    Good Luck
    Vijay

  • Problem in passing/returning objects over dynamic web service call

    Hi Friends,
    I am beginner in java web service.
    Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call.
    The client can call the remote web service method in 2 ways.
    1. By generating client stubs using WSDL file
    - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss)
    - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls.
    2. Without generating client stubs (dynamic web service call)
    - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time
    - In this case, it allows only string as argument while passing & returning.
    Please let me know if you can help me on this.
    Regards,
    pani

    I'm not sure about your question, but this might help:
    [http://forum.java.sun.com/thread.jspa?threadID=5251188|http://forum.java.sun.com/thread.jspa?threadID=5251188]
    You might also want to read on JAXB.

  • I want to export acquired data via XML to a remote URL/web service. Is there some online reference for EXACTLY what XML features are available in 6.1?

    Is there any online reference to the XML methods available in 6.1?
    I would like to set up a LabView system that acquires data from local hardware, and then sends acquired data as XML "packets" to a remote web service. I can't seem to find any online reference to this when I search the site. I don't want the "gee golly 6.1 is cool" marketing stuff. Just a simple technical reference to abilities.

    If you're looking for more technical information about all the new features of 6.1, try the LabVIEW 6.1 Upgrade Notes. Here's what they say about the XML functions:
    "Use the Flatten to XML function located on the Functions»Advanced»Data Manipulation palette to convert any LabVIEW data type to the XML format according to the LabVIEW XML schema. Use the Unflatten from XML function located on the same palette to convert a data type in the XML format into LabVIEW data.
    For these conversions, LabVIEW uses a predefined XML schema that is described in labview\help\LVXMLSchema.xsd."
    Kelly Holmes
    LabVIEW Documentation
    Kelly H
    LabVIEW Documentation
    National Instruments

  • Update User Password via Web Services

    Hello. I am attempting to update the password for a user via the Rights Management web services, https://{mydomain}/soap/services/RightsManagementService?wsdl&lc_version=9.0.1, using .NET 4.0 (C#).
    Below is the function I have written. When I execute the code it always returns false. I have searched the documentation and forumns but have not found anything. Can someone provide any ideas on how I can successfully update a users password in LiveCycle via the exposed web services?
    public bool UpdateUserPassword(string userName, string password)
                bool result = false;
                WebServices.RightsManagement.UserImpl user = new WebServices.RightsManagement.UserImpl();
                user.userid = userName;
                user.canonicalName = userName;
                user.domainName = DefaultPolicySets.DefaultDomain;
                user.principalType = "USER";
                user.local = true;
                user.locked = false;
                user.disabled = false;
                user.system = false;
                Console.WriteLine(this.rmSvc.resetExternalUserPassword(user, password));
                return result;

    The answer to this question was to use another function exposed by the Directory Management Web services, {domain}/soap/services/DirectoryManagerService?WSDL&lc_version=9.0.1.
    The function in question is called updateLocalUser().
    You can find more information here, http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/idp/um/api/Directory Manager.html#updateLocalUser%28com.adobe.idp.um.api.infomodel.User,%20java.lang.String%29.

  • User profile vs Remote Desktop Services Profile

    On a Windows 2008 R2 Domain Controller, if you open properties of an user account, you'd see
    a Profile Tab as well as Remote Desktop Services Profile Tab.
    I found this very confusing, can any one tell be the key difference between those 2?
    If I don't specify Remote Desktop Services Profile path, when I logon to Remote Desktop Server, it seems take user's
    romaing profile.
    Anyway, please advice.
    Thank you.

    Hi,
    Thank you for posting in Windows Server Forum.
    The profile tab of the user properties window allows you to configure user profile, logon scripts and home folder details for the user object. It is very useful when you have to allow your user access the same environment and data irrespective of the machine
    he logs in from.
    Active Directory User properties – Profile tab
    Remote Desktop Services User Properties
    You can specify a Remote Desktop Services-specific profile path and home folder for a user connecting to an RD Session Host server. This profile and home folder will only be used for Remote Desktop Services sessions. You should assign a separate profile for
    Remote Desktop Services sessions because many of the common options that are stored in profiles, such as screen savers and animated menu affects, are not desirable when using Remote Desktop Services.
    Manage User Profiles for Remote Desktop Services
    http://technet.microsoft.com/en-us/library/cc742820.aspx
    User Profiles on Windows Server 2008 R2 Remote Desktop Services
    http://blogs.msdn.com/b/rds/archive/2009/06/02/user-profiles-on-windows-server-2008-r2-remote-desktop-services.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

Maybe you are looking for

  • Why xslt  mapping?

    I just want to know in what kind of mapping requirements we can go with xslt mapping which is not supported in graphical mapping? Please help me with few mapping requirements which is not supported in graphical mapping but we can achive using xslt ma

  • IO versus NIO

    Hi all, Wow a new look to this forum!!!! I was goin g through the IO and NIO packages in java.I understand that the new nio package as can do all the thing likethe old IO package but its a bit complex as compare to the old one.I am wondering mostly I

  • Which custom. steps for "Accounts Receivable Pledging Indicator" (KNB1)?

    Hi All, Could anyone show me the customizing steps to set the "Accounts Receivable Pledging Indicator" (KNB1-CESSION_KZ)? Thanks Galdalf

  • Border for Excel Cells generated using HTML

    Hi, I am generating html at server side and writing the content with content type application/xls, all the generated data downloads to me in excel sheet. Here in this excel document, I dont have borders for the cell where i dont have the data. But fo

  • Configuring Alert for Particular Interface

    Hi All, There are lots of post with regards to Alerts using RZ20 and ALRTCATDEF. However it would be of great help if I can get a blog link or sdn thread which can help me create Alerts and send to email in the below format. Subject: Of my choice Fro