Sharing reference for IUserPhotoService

Hi,
I am looking for the correct sharing reference for IUserPhotoService?
PORTAL:sap.com/?
IUserPhotoService service = (IUserPhotoService) WDPortalUtils.getServiceReference(IUserPhotoService.KEY);
Regards,
Ladislav

Hi,
when i searched in  www.SAPJARFINDER.com i found this information:
IUserPhotoService (class/interface/exception) | List classes of namespace | No javadoc available | No Code Samples available 
JAR: kmc.people.shared.photo_api.jar | Explore JAR
Engine path: j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.kmc.people\lib\kmc.people.shared.photo_api.jar
Engine version: NW2004s_SPS13
Namespace: com.sap.netweaver.kmc.people.photo.service.IUserPhotoService
i guess instead of using shared refrences you have to use library references because jar is not situated under sap.com folder .and try to put <kmc.people.shared.photo_api> value.
if it does not work then check the library name in visual admin.
Correction:
try to put PORTAL:sap.com/com.sap.netweaver.kmc.people value under shared reference ,if this does not work then try the above.
Also make sure the jar exist on server and service is active/running.
Siddharth
Edited by: Siddharth Jain on Jul 16, 2009 1:22 PM

Similar Messages

  • Sharing Reference for Task API

    Hi,
    Does anyone know what sharing reference to use when using the Task API (com.sap.ip.collaboration.task.api.ITask, etc)?
    Thanks,
    Dick

    Hi Dick,
    for general advice, see Can't find them...
    Answer here is: The class can be found within coll.shared.task_api.jar, which is to be found under WEB-ING/portal/portalapps/com.sap.netweaver.coll.shared/lib.
    So the SharingReference has to point to: com.sap.netweaver.coll.shared
    Hope it helps
    Detlev

  • IMPORTANT: JARs and Sharing References: New Reference

    Hi Portal Developers,
    A new reference is available that lists ALL public portal APIs, and provides the following information:
    Class/interface name
    Package name
    JAR file for compilation
    Location of JAR file
    Required sharing reference for portalapp.xml (runtime reference)
    The list is provided as a spreadsheet in XML, enabling you to sort and filter as needed, and to get a quick overview of the available classes, packages and JARs.
    Click <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f08f37c1-992c-2a10-35a6-fbb1600aff51">here</a> for the spreadsheet.
    The spreadsheet also provides similar information for using the built-in tag libraries.
    Feel free to respond to this post, or email the author, if you have any suggestions.
    Daniel Wroblewski

    Hi Daniel,
    > Despite its existence, people still ask for JARs and sharingreferences
    I think the reason is more that these people do not know ClassLocator instead of not wanting to use it... These who have used it once within the SAP/Java/Portal world will <i>never</i> give it away again...
    > The spreadsheet does help with the sharing reference,
    > as well as listing the built-in tag libraries.
    As said before, I didn't want to say <i>anything</i> against your sheet, I would never say anything against anything produced by yours
    > Hope to see you at Tech Ed, Munich. We can have a debate on this there.
    That seems to be a promise that you will be there   Very nice to hear, and I'll be there, too!
    Best regards
    Detlev

  • Hello, I have two questions on time capsule  I can only have it on my external hd files and free up my internal memory to my mac  I can use an external hard drive, in my case a lacie rugged as shared memory for my two computers

    Hello, I have two questions on time capsule  I can only have it on my external hd files and free up my internal memory to my mac  I can use an external hard drive, in my case a lacie rugged as shared memory for my two computers

    I have a mackbook pro and an iMac if I buy a time capsule 2tb airport, I can use it with time machine and what would be the best way to use it.
    There is no particular setup required for TM.. both computers will create their own backup sparsebundle which is like a virtual disk.. Pondini explains the whole thing if you read the reference I gave you.
    and how to use time capsule airport whit other external hd to use my old lacie airport with the new time capsule
    Up to you.. you can plug the external drive into the TC and enjoy really slow file transfers or you can plug it into your computer and use it as external drive.. which is faster than the TC.. and TM can include it in the backup.
    Again everything is explained in the reference.. you are not reading it.

  • Sharing mappings for single dimensions between locations

    Dear all,
    In our application we want to load data into essbase as well as into HFM, so we are using the two different adaptors. We though about using on the one hand locations with the essbase adaptor and on the other hand locations with the HFM adaptor.
    The account mapping table is the same regardless of loading into HFM or Essbase. The problem now is, that once a mapping in the account dimension is changed in an essbase location, it should also be automatically changed for the corresponding HFM location. The solution seems to be the creation of a location with a third adaptor that contains the HFM dimensions (until UD4) as well as the additional dimensions (UD5 - ...) for Essbase. This location is then the parent location for the HFM as well as for the Essbase locations. However, according to my understanding, this third adaptor can only be connected with one system (lets say Essbase). This means that once a mapping tabel for the HFM-UD3 is updated, it will result in an error, as FDQM can not find the corresponding UD3 member in Essbase.
    1. Is there a solution for this problem, so that for some dimensions the mapping table refers to essbase metadata while for others the mapping table refers to HFM metadata?
    or:
    2. Does anyone has a proposal for an approach to share the mapping tables of certain dimensions between different locations with different adaptors?
    Any comments are very much appreciated.
    Thanks a lot in advance,
    Chris

    Hi Chris,
    You put some good thoughts in here. Have you tried to use a parent location with the 3rd adapter yet? Depending on whether the adapter of the parent or the child location has priority this might work or not. Give it a try, might be a great reference for the rest of us, so thanks for sharing your results.
    The only other solution I see would be to add some scripting to sync the dimensions that you need.
    Regards,
    Matthias

  • Wildcard in sharing reference?

    Hi,
    We are about to start developing quite a few webservice consumers on the portal, and I would like to make a generic iview which reads the name of a service from a property value and outputs all methods it contains.
    But in order to get the service I need a sharing reference, even for future services!
    Is there any way to say, I want a sharing reference to all services ?
    Or am I destined to write my own classloader and hack things

    Hi Dagfinn,
    using a wildcard * in the SharingReference doesn't work, at least not in the example I tried.
    I would guess you need to implement your own classloader.
    Regards
    PD

  • Sharing References

    Hi all,
    I have a Web Dynpro application, and I want to use the PortalRuntime class to get a reference to a Portal Service.
    At runtime, when the PortalRuntime class is referenced by my code, I get 
    java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime
    I've been searching for hours what sharing reference I must use to be able to use this class, without success.
    I've two questions:
    1. What sharing reference should I use (exactly)? Or is it sth. else I need?
    2. Why don't I find any information that tells me how to find out what sharing reference to use for a certain class? Isn't there a list of all available standard SAP sharing references?
    Many thanks,
    Jeroen

    I don't really understand what you mean
    e.g. I have this class that reads documents through the KM API
    import java.io.IOException;
    import org.apache.commons.io.IOUtils;
    import com.sapportals.portal.security.usermanagement.IUser;
    import com.sapportals.portal.security.usermanagement.UserManagementException;
    import com.sapportals.wcm.repository.IResource;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceException;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.util.content.ContentException;
    import com.sapportals.wcm.util.content.IContent;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.wcm.util.usermanagement.WPUMFactory;
    public final class KmService {
      private static final KmService KM_SERVICE = new KmService();
      private static final String PATH =
        "/documents/templates/";
      private static final String USER = "cmadmin_service";
      private KmService() {
      static KmService getInstance() {
        return KM_SERVICE;
      byte[] getTemplate(String id)
        throws UserManagementException, ResourceException, ContentException, IOException {
        if (id.indexOf('/') != -1) {
          throw new IllegalArgumentException("Template names containing "/" not allowed!");
        IUser user = WPUMFactory.getServiceUserFactory().getServiceUser(USER);
        ResourceContext resourceContext = new ResourceContext(user);
        IResource resource =
          ResourceFactory.getInstance().getResource(
            RID.getRID(PATH + id),
            resourceContext);
        IContent content = resource.getContent();
        return IOUtils.toByteArray(content.getInputStream());
    Do note that I had to create a separate External Library DC that contains the necessary jar files (portal APIs are not available as DCs, so you need to extract them from the server). My Web Dynpro DC then uses the API PP of the External Library DC. My External Library DC currently contains bc.rf.framework_api.jar, bc.sf.framework_api.jar, bc.sf.service.cache_api.jar, bc.util.public_api.jar and com.sap.security.api.ep5.jar (I also need it to use the KM cache service).
    There's an interesting post concerning this subject: Re: Portal Development via NWDI / massive ShowStoppers
    Kind regards,
    /Sigiswald

  • Naming Sharing Reference of a WD

    Hi forum:
        How can i to know the naming of a WD, for use like a Sharing Reference in another WD ?
    Thnks
    Josue

    Hallo Josue,
    deployable object names (correspond to Web Dynpro DCs) are named like this:
    <b><vendor-name>/<name segment 1>~<name segment 2>...</b>
    <u>Example:</u>
    <b>DC-name: sap.com/wd/test/ui
    Deployable Object Name: sap.com/wdtestui</b>
    You can list all deployed DC via the telnet console of your SAP J2EE engine:
    1) Open telnet via SAPMMC: tree node <i><system name> - <hostname></i> - open context menu and then select item <i>All Tasks -> Telnet</i>
    2) enter login and password
    3) enter jump 0
    4) enter "add deploy"
    5) enter shell command "list_app"
    You can then see all deployed applications/dcs with their deployable object names.
    Regards, Bertram

  • Sharing reference to UINavigationCommand

    Hi,
    I need the class com.sapportals.wcm.rendering.uicommand.cm.UINavigationCommand which is in the jar km.appl.ui.flex.uicommand_core.jar
    What is the correct sharing reference ? I can't find this anywere. Is there some sort of convention for sharing references? (f.e. "strip the .jar and your good to go")
    Thanks in advance,
    Pieter

    Hi,
    Go to SAP Netweaver Administartor -> System Management -> Applications -> Search for the application and click on the START button.
    If it doesn't worked, check the default trace file. Also check whether u made any naming error in the application.
    Regards
    Deb

  • Error while updating a custom Windows Azure Diagnostics configuration xml from powershell. "Invalid update to extension reference for role"

    I am attempting to upload a manually edited WADConfig xml to my VM. The WAD service is functioning correctly, I needed to add some custom WinEventLogs. The prescribed steps result in an error.
    What am I overlooking?
    I am following these instructions:
    Step 5: Remotely install Diagnostics on your Azure Virtual Machine
    azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/#virtual-machine
    $storage_name = "wadexamplevm"
    $key = "<StorageAccountKey>"
    $config_path="c:\users\<user>\documents\visual studio 2013\Projects\WadExampleVM\WadExampleVM\WadExample.xml"
    $service_name="wadexamplevm"
    $vm_name="WadExample"
    $storageContext = New-AzureStorageContext
    -StorageAccountName $storage_name -StorageAccountKey $key
    $VM1 = Get-AzureVM
    -ServiceName $service_name -Name $vm_name
    $VM2 = Set-AzureVMDiagnosticsExtension
    -DiagnosticsConfigurationPath $config_path
    -Version "1.*"
    -VM $VM1 -StorageContext $storageContext
    $VM3 = Update-AzureVM
    -ServiceName $service_name -Name $vm_name
    -VM $VM2.VM
    Unfortunately, I am receiving this error:
    Update-AzureVM : BadRequest: Invalid update to extension reference for role: XXXXXX and reference: IaaSDiagnostics.
    What's missing from the above script?

    Hi,
    Since Azure SDK 2.5 uses the extension model the diagnostics extension, the configuration and the connection string to the diagnostic storage are no longer part of the deployment package and cscfg. All the diagnostics configuration is contained within the
    wadcfgx. The advantage with this approach is that diagnostics agent and settings are decoupled from the project and can be dynamically enabled and updated even after your application is deployed. 
    Due to this change some existing workflows need to be rethought – instead of configuring the diagnostics as part of the application that gets deployed to each environment you can first deploy the application to the environment and then apply the diagnostics
    configuration for it.  When you publish the application from Visual Studio this process is done automatically for you. However if you were deploying your application outside of VS using PowerShell then you have to install the extension separately through
    PowerShell.
    There PowerShell cmdlets for managing the diagnostics extensions on a Cloud Service are -
    Set-AzureServiceDiagnosticsExtension
    Get-AzureServiceDiagnosticsExtension
    Remove-AzureServiceDiagnosticsExtension
    You can use the Set-AzureServiceDiagnosticsExtension method to enable diagnostics extension on a cloud service. One of the parameters on this cmdlet is the XML configuration file. This file is slightly different from the diagnostics.wadcfgx file. You can
    create this file from scratch by either following the article that you are referring to or  you can modify the wadcfgx file and pass in the modified file as a parameter to the powershell cmdlet.
    To modify the wadcfgx file –
    Make a copy the .wadcfgx.
    Remove the following elements from the Copy:
    <DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
       <PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
         <StorageAccount name=" " endpoint="https://core.windows.net/" />
       </PrivateConfig>
       <IsEnabled>false</IsEnabled>
    </DiagnosticsConfiguration>
    Make sure the top of the file still has xml version and encoding –
       <?xml version="1.0" encoding="utf-8"?>
    Effectively you are stripping down the Wadcfgx to only contain the <PublicConfig> section and the <?xml> header. You can then call the PowerShell cmdlet along with the appropriate parameters for the staging slots and roles:
    $storage_name = ‘
    <storagename>’
    $key= ‘<key>’
    $service_name = '<servicename>'
    $public_config = '<thepublicconfigfrom_diagnostics.wadcfgx>'
    $storageContext = New-AzureStorageContext –StorageAccountName $storage_name –StorageAccountKey $key
    Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $public_config –ServiceName $service_name -Slot ‘Staging’ -Role ‘WebRole1’
    Hope this helps !
    Regards,
    Sowmya

  • Get Specific References for all Controls

    Using slightly modified code from here, I am generating an array of all control references on my main front panel which is then passed through to a number of subVIs. Although this functionality does work, it would be preferable to get specific references to the controls (for example, Boolean RefNum instead of Control RefNum). 
    Getting these specific references seems possible using To More Specific Class and Class Specifier constants. However, data storage becomes an issue because I can no longer use arrays (as they are a different data type). I am not sure if there is another way to pass this data on. I have experimented casting the RefNums to Variants, but to get the data from the variant, I have to know what RefNum type I am expecting which sort of defeats the purpose of doing this in the first place.
    A secondary problem is keeping the names of the references. The Control RefNums do not have names associated with them nor do I know how to assign names to them. I've again tried using variants and using the OpenG Set Data Name function, but this crashes LabVIEW without any indication of why.
    I've attached a version of my code that tries assign names using OpenG Set Data Name and build a variant array. To run it, simple add the VI as a subVI to a VI that has some boolean controls on the Front Panel. Apologies for the rough state of the code - I'm still in the process of figuring out how to make it work so things are a bit messy.
    Solved!
    Go to Solution.
    Attachments:
    Get Specific Control Refs.vi ‏28 KB

    I don't know if you'll get much better.  There is really no way I know of to have some fully flexible way of building named clusters of references based on any given front panel set you feed to it.
    I tend to do things the manual way (as there are also a bunch of references to front panel elements I wouldn't need).  I would do all the bundling work in a subVI.
    I'm attaching a zip file that contains the key VI's (unless I missed something) on the first project where I really tried to abstract out the reference building.  The files are LV9.
    On my main VI, I have the subVI called Build UI References early in the VI during an initialization phase.  I pass the reference to the main VI into that subVI that builds all the references.  I worked it as a master cluster that contains elements that are arrays of references of related controls.  It uses another subVI called Get References and Label Names that I created to help find controls.  I still need to use More Specific Class to get the property references, but I don that only once at the beginning.  I then pass that cluster wire out and to anywhere in my VI that would need access to the references for front panel elements.
    I use arrays of strings to supply the names I need to build and bundle the references.  This lets me ignore controls I don't care about.  The disadvantages to my system is that if I change the name of any control, I need to update the name within this subVI.  And if I want to add any controls, not only do I need to add the label names for the searching functions, I also need to update my typedef cluster (and you definitely want this to be a typedef) to add a spot to store the new reference.
    I hope this gives you some ideas.  It worked for me and I will likely use the scheme on another project (or even rewrite past projects using this scheme.)  If there are any ideas for improvements, I'd be happy to hear them.
    Attachments:
    Build UI refs.zip ‏83 KB

  • Getting Menu Reference for a VI other than the current one

    Is there any way to get a Menu reference for a VI that isn't the current VI? There's Current VI's Menubar, but that only works on the current VI. I'd like something that does the same thing, but accepts a VI reference to a higher-level VI. I would expect to find a Property Node entry for it, but there doesn't seem to be one. This is for 8.2.

    eaolson wrote:
    A functional global is what I wound up using. It just seems odd to me that there's no other way to get access to that reference.
    It also seems counter-intuitive to me that a Shortcut Menu reference is only valid inside that particular frame of the Event Structure that caught it. If you're using a producer-consumer architecture, you can not send that refnum off to the consumer loop for handling; it can only used within that frame of the Event Structure.
    I am not sure what you mean. The refnum seems to be accessible from everywhere .
    As i wrote above:
    You can store the Menu Reference to a global variable for example, and you can read it, in any vi you want, just like all variables.
    Note: Do not try to use a property note. Use the menu functions

  • Open VI reference for VITs and VIs

    Hi
    I have a VIT and I get the reference using the Open VI reference. When I change (rename) this back to a VI, and get the reference for it, its much faster. Does the open VI reference takes longer for VITs than VIs in obtaining a reference?
    Another question  is the same VIT, takes lesser time to get the reference using the Open VI reference in LabVIEW 8.5.1. It takes longer in LV8.6. Why is this happening? 
    Thanks
    Vaa San.

    The two main differences between a VI and a VIT are that   VITs are never run, but are templates that generate a VI instance immediately that has all the properties, attributes and limitations of a VI.  A VI on the other hand has only one instance (unless you make it reentrant)
    ·         A VI generated by a VIT is debuggable just like a VI in that you can trace the execution along the wires. In general, a VIT creates a copy of the VI in memory when you open a reference to it. Creating that copy takes time, which affects performance when doing recursion. That copy is then a standard VI in every sense, except it is not a file. Also, if you don't close these references, they will take up space in your RAM. Reentrant VIs can currently only do real recursion in 8.5 and if they are part of a class. If you open a VIT, you don't open the actual file, but a clone. This way you can open it multiple times. Each time you open it, you get a clone. This is especially useful when you open the VIT with VI Server. VIT's are useful to make an interface window once, and use it multiple times in your program. If the code should run multiple times, but doesn't have a user interface, use reentrant VI’s instead. As far as having the project open, a VI will reload all instances related to the project therefore causing the Vi to load slower. Best Regards,
    Juan Galindo
    Applications Engineer
    National Instruments

  • Is is possible to use creative cloud as a shared volume for collaboration between incopy & indesign?

    I'm a designer student and as a designer, I constantly have to make decks for presentations.  I typically work in a group of six and because I'm confident with graphic design, I tend to be the leader of these tasks.  I've found the best workflow for slide creation is Indesign.  Unfortunatly, I'm just an awful writer— so when I heard about Incopy's collabrative features(saw the post from indesign's facebook page) I saw oppertunity and got very excited.  My teamates and I typically all have subscriptions to adobe cc because of this, I was wondering (since I havent used it at all) if the storage given out from adobe cc was able to be that shared volume that is required for the live link between incopy stories and indesign layouts.
    Therefore,
    Is is possible to use creative cloud as a shared volume for collaboration between Incopy & Indesign?
    If this needs any further clarification I'll gladly write a more detailed question — lastly, if this is not possible might you suggest an alternative?  Please assume that we go to school together but we work offsite also.

    You will not be able to use the Files page at https://creative.adobe.com/files for collaboration in this way. But you can share individual files in this way.
    When folder sharing is available this will be possible.

  • Screen Sharing works for alien hosts but not for LAN hosts

    Hello!
    I am having a really strange problem in a customer network. The network is a local private network with one MacOS Server 10.6.8 and around 12 iMacs running MacOS 10.6.8. The server is running headless in cellar so the user maintain the backup via screen sharing from an iMac to the server.
    Since a few weeks they can not login to the server via screen sharing from any local host BUT I can login from my MBP (alien) via ARD or Screen Sharing without any problem. Even hosts connected to the network via VPN can connect to the server via screen sharing.
    In short:
    Every local host gets a message that login is not possible and my MBP and VPN-hosts get connected without any problems with the same credentials.
    At the local clients I get this message in system.log:
    Oct 28 09:33:41 verwaltung1 LKDCHelper[228]: Starting (uid=501)
    Oct 28 09:33:48 verwaltung1 com.apple.launchd.peruser.501[166] (com.apple.Kerberos.renew.plist): Throttling respawn: Will start in 530 seconds
    Oct 28 09:34:17 verwaltung1 /System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/Ma cOS/AppleVNCServer[195]: CGSKeyTranslateInitialize: KLGetCurrentKeyboardLayout or KLGetKeyboardLayoutProperty is not available, fall back to USA keymap
    and at the server I get:
    Oct 28 09:33:48 solserv AppleVNCServer[11503]: no such user: adminloc@LKDC:SHA1.DE03ABCC86F74D11AD139E44388D6B94155B4D9E: 2
    When I connect from VPN or my MBP I get no messages in system.log.
    I tried to kickstart ARD at the server but it does not change anything, I bound the clients to OpenDir of the server with no effect also.
    I do not have any idea what is happening here. Every help is welcome,
    Christop

    Hello MrHoffmann!
    changeip says "The names match. There is nothing to change."
    To give more infos, the server and all the clients are connected to the same network switch, all belong to 192.168.183/24 and when I use my MBP, it is connected via WLAN and gets an IP-address from this server with an IP from this range. my MBP is in the same broadcast domain.
    VPN clients connect via PPTP to the gateway (192.168.183.1) and get IP addresses assigned from 192.168.183.48-52.
    There is no routing between the clients and the server.
    There is no other problem - every client reaches the server for file serivces (AFP/SMB), smtp, imap, DHCP and DNS.
    BTW. screen sharing from the clients worked without a problem when I first setup the network about 1 year ago, but since a few weeks no client that belongs to this network can use screen sharing except for my MBP when I am at customer site.
    History:
    The new SLS is a replacement for an old Windows 2000 Server. Both servers ran in parallel for some time but within different IP-networks (all Macs at 192.168.183/24 - all Windows at 192.168.2/24) the gateway routed between both networks. But now it is time to switch off every windows computer because every service now runs at the SLS. AFAIK the windows 2000 Server is the last Windows machine in the network. We switched off DHCP at the windows server and switched on DHCP at the SLS a few weeks ago. Hm .... maybe there is something wrong? But the clients have fixed ip-addresses.
    Still wondering what is going on here, bye,
    Christoph

Maybe you are looking for