Object description using server api

Can someone provide me a sample or at least get me started on how to query an object's description using server api?
I'm trying to create an adaptive tag to output object descriptions for pages and communities.

I don't know if this would matter here, but I've noticed that you're reusing an identical UUID (clsID) in multiple possibly unrelated places. Maybe this is creating a conflict that corrects itself somehow when using the admin UI to re-save the web service. I'd look at that first.
If that isn't the issue, I'd try viewing the source and take a look at what the control for saving a web service does (WebServiceRepost) and see if it is doing anything additional/different from what you are doing in your code.

Similar Messages

  • How do I copy User Properties from one user to another using Server API

    Portal Version is 10GR3
    I have two Users in the portal and I want to copy all the properties of user1 to user2.
    the IPTProfileManager interface allows me to get all the properties of user 1. Accomplished through the use of
    IPTObjectProperties user1Props = profileManager.GetUserProperties(userId, false);
    IPTQueryResult qr = user1Props.GetPropertyData(PT_PROPIDS.PT_PROPID_OBJECTID |
                   PT_PROPIDS.PT_PROPID_NAME |
                   PT_PROPIDS.PT_PROPID_PROP_VALUE);
    I beleive this is correct...
    We now have all the properties in a Query Result. I'm lost as to how to get these values into user2's profile...
    -Or- is there a easier way????
    Any suggestions?
    Phil Orion
    Orion like the constellation, not the Irish guy.

    Every object in the Server API extends the PTObject, which has function calls GetObjectProperties().
    If you have the PTUser object you have to do the following:
    IPTObjectProperties props = getObjectProperties(); // in your case this should be something like PTUser.GetObjectProperties();
    Object[][] propData = new Object[PT_EDIT_PROPDATA_COLUMNS.PT_EDIT_PROPDATA_INVALID][1];
    propData[PT_EDIT_PROPDATA_COLUMNS.PT_EDIT_PROPDATA_PROPERTYID][0] = new Integer(#PropertyID#);
    propData[PT_EDIT_PROPDATA_COLUMNS.PT_EDIT_PROPDATA_VALUE][0] = "Property Value";
    props.SetPropertyData(propData);
    I don't forget on the end you have to call PTUser.Store() function
    cheers
    Edited by: Pelov on 14.07.2010 12:31

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Delete a collab project using Server API 5.0

    Is there a way to delete a collab project using the Server API 5.0? I know I can delete a project using the EDK but I need to delete a project using the Server API. Can anyone help please?
    Thanks in advance.

    Thanks Imah.
    The EDK java doc said I could use RemoteSessionFactory.getExplicitLoginContext to access Collaboration Server API but I am getting the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/plumtree/openfoundation/util/XPMalformedURLException
    Any idea why? I am using EDK 5.2.0
    I could open this URL ("http://hostname/ptapi/QueryInterfaceAPI.asmx") in a browser.
    The code is as followed:
    try {
    IRemoteSession rSession = RemoteSessionFactory.getExplicitLoginContext(new URL("http://hostname/ptapi/QueryInterfaceAPI.asmx"),"Administrator", "");
    } catch (Exception e){
    System.out.println(e.toString());
    Can anyone help please? Thanks.

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Displaying content item -(IContentItem) in portlet using Content Server API

    Hi,
    I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
    So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
    Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

    Hi Anand,
    I am facing the same problem on IBM WebSphere Portal 5.1.
    Did you find a solution to your problem ?
    Thanks
    Ganesh

  • How to write chart application using netcharts.server.api ?

    Hi to all.
    i need to write a chart application in Java, which makes use of netcharts.server.api.
    Iam having only jar files. Which are netcharts.jar, chartworks.jar, commons-httpclient.jar, commons-logging.jar and ncstoolkit.jar in my hand.
    I need to make use of above jars only to build line graph or charts or any thing.
    That application has to work in html or jsp or servlets, if possible in swings.
    can any buddy please help me in this regard and guide me.
    I am very much thank full for any reply.
    please help me.
    Thanks in advance.

    Hi su,
    Thanks for your reply.
    can you tell me in detail where you have used those jar files and how?
    Comming to my basic application,
    iam in the way to find first basic application using netcharts.server.api package.
    I came to know many things.
    I found the how to build application in JSP's
    But when iam executing that, it is throwing error like
    {color:#ff6600}netcharts.server.api.NSToolKitException: java.net.ConnectException: Connection refused: connect{color}
    at the time of calling
    {color:#ff6600}String thechart = toolKit.getChartAsImageAndMap(
    "/CDXExamples/barxDATAvariable.cdx";,
    chartParams,
    request,
    true);
    {color}at first i have created
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit("Examples");{color}
    toolkit object with out errors.
    But in other reference i found the code like
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit(NETCHARTS_SERVERNAME, 8001,"MyFirstProject");{color}
    Here it is saying
    replacing {color:#ff6600}NETCHARTS_SERVERNAME{color} with the machine name where NetCharts Server is installed:
    Iam getting doubt, is it necessary to install netcharts server to make use of netcharts.server.api classes?.
    can any buddy please help me in this regard.
    Thanks in advance.

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to access an External LDAP on a weblogic server using OPSS APIs.

    Hi,
    Can anyone let me know how I can access an External LDAP configured on a weblogic server using OPSS APIs( or alternative APIs).
    I'm currently using the below snippet and I'm getting only the Users and groups from the DefaultAutheticator on the weblogic server and not the external LDAP Server.
    I've verified the providers, users and groups on the weblogic server console and can see that external LDAP server content is being picked, but my below code does not query them.
    import oracle.security.idm.IMException;
    import oracle.security.idm.IdentityStore;
    import oracle.security.idm.Role;
    import oracle.security.jps.JpsContext;
    import oracle.security.jps.JpsContextFactory;
    import oracle.security.jps.JpsException;
    import oracle.security.jps.service.idstore.IdentityStoreService;
    List<Role> rowData = null;
    JpsContextFactory ctxf = JpsContextFactory.getContextFactory();
    JpsContext ctx = ctxf.getContext();
    IdentityStoreService storeService = ctx.getServiceInstance(IdentityStoreService.class);
    IdentityStore idStore = storeService.getIdmStore();
    rowData = this.getRoles(idStore, "*");
    Any help or pointers are highly appreciated.
    Thanks,
    Bhasker

    Can anyone please provide any suggestions. I trying to google around but still not able to find any solution.
    Thanks,
    Bhasker

  • Can I use UI-API connected company with DI-API business objects?

    Hi.
    I have to make some inventory transactions, by using DI-API business object Documents:
    SAPbobsCOM.Documents vInventoryGenEntry;
    vInventoryGenEntry = (SAPbobsCOM.Documents)
    oCompany.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);
    But, the Company object available on UI-API doesn't give me GetBusinessObject, that is necessary to use a business object.
    Then, I think it's necessary to make at least 2 connections:
    - DI-API connection, using SAPbobsCOM.Company()
    - UI-API connection, using SboGuiApi.Connect(sConnectionString)
    Is it true?
    I'm looking for a solution that uses just one connection.
    Is there another way to do that?
    Thanks.

    Hi!
    There is a way to get a "real" company object from the ui application object, using a method called "Single sign-on". Look for it in the documentation, that is just what you need.
    Hope it helps!
                        Jon Arranz

  • Guide procedures (callable objects ) using ABAP API.

    Hi,
    Is it possible to develop callable objects using ABAP APIs?
    IF yes how ?
    Regards
    Nisha

    hello Nisha,
    Plz see the basic information link on GP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831

  • Callable objects using ABAP API

    hi,
    Is it possible to develop Callable objects for MDM using ABAP APIs?
    Regards
    Nisha

    Hi Nisha,
    As far as I know, itu2019s not possible. You can use just RFC/BAPI as external services CO or ABAP Web Dynpro (this CO is limited regarding output parameters).
    MDM offers two APIS for Java development:
    1) MDM4J API, which is an old API and will be discontinued from MDM 7.1
    2) MDM Java API that is recommended
    With this API you can create Java Libraries or/and Web Services to re use into your CO.
    Best Regards,
    Pedro Nunes

  • Use LoginToken for Server API Session

    I get an Invalid pointererror when I try the code below. I'm trying to use the Login Token passed from the portlet as the token for the Server API Session I create.
    portletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    //Get Remote Session
    IRemoteSession prcSession = portletContext.GetRemotePortalSession();
    //Get UserLogin token from Portlet
    stringsUserLoginToken = prcSession.GetLoginToken();
    //Reconnect to portal session with token
    IPTSession oPTSession = PortalObjectsFactory.CreateSession();
    oPTSession.Reconnect(sUserLoginToken);

    We are using 5.0.3. I found I could use the Login Token passed from the portlet in a Server API Session by doing the following:
    IPTSession pSession = PortalObjectsFactory.CreateSession();
    pSession.Reconnect(sLoginToken);

  • How streaming an audio or video files from google drive using google api objective-c client?

       I have implemented streaming an audio or video files by mpmovieplayer from Dropbox. For this purpose I am using Dropbox sdk. Audio or video files are playing with no problem from dropbox in my app.
    But, I can not implement the same functionality from Google drive. I am using alternateLink,webcontentLink,EmbedLink,Exportlink that we get from google drive. But mpmovieplayer does not play audio or video. So how can get any link from google drive,by which i can streaming an audio or video file from google drive. I have listed all google drive files in a table view. I am using google api objective-c client. So please help me. Thanks in advance.

    Hello,
    I'm giving a try at your application and so far, it is great!
    I understand that you're working on a way to help moving back files to google drive. Actually, I can copy / paste, but it always renames the files, so I end up with both a "copy of" and my original file.
    could you save and overwite the original file when it already exists ? (perhaps an option in the settings) ?
    Thanks!

  • How to detect exchange server version using EWS API?

    Hello there,
    I am new to this EWS area and I am looking for a way to detect exchange server version information whether user mailbox is exchange 2007 or 2010 or 2013 etc. Apologize if we already have such question posted earlier, I am posting it here as I could now find
    any such forum.
    1. Is it possible to fetch this information using EWS API? I am using EWS 2.0 libraries for now.
    2. If yes, how can i get that information? can you please provide some sample?
    Thanks in advance.
    sureshh...

    1. On 2010 and above you can use Autodiscover to get the EWS Schema version this is most accurate method to use. It's import to understand the EWS Schema version vs just the Server there is a good write up in
    http://msdn.microsoft.com/en-us/library/office/dn741586%28v=exchg.150%29.aspx . Some EWS Managed API code to get the server version would look like
    AutodiscoverService adAutoDiscoverService = new AutodiscoverService();
    adAutoDiscoverService.Credentials = ncCred;
    adAutoDiscoverService.EnableScpLookup = true;
    adAutoDiscoverService.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
    adAutoDiscoverService.PreAuthenticate = true;
    adAutoDiscoverService.TraceEnabled = true;
    adAutoDiscoverService.KeepAlive = false;
    GetUserSettingsResponse adResponse = adAutoDiscoverService.GetUserSettings("[email protected]", (new UserSettingName[1] { UserSettingName.EwsSupportedSchemas }));
    This won't work on 2007 but the other method you can use is if you set the version to 2007_SP1 and make a call like binding to the Inbox folder and then check the result in ServerInfo http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.exchangeservicebase.serverinfo(v=exchg.80).aspx
    . (Note if your are going to use ServerInfo you do need to make a request like a FolderBind ).
    Cheers
    Glen

Maybe you are looking for

  • TP Unable to See Wifi networks for more than a few seconds

    I've read a bunch of wifi related posts on these forums but none seem to be the same problem as mine. My touchpad rarely, if at all, sees any networks. If it sees my network it usually loses it before I have a chance to finish typing in the password.

  • Klopfgeist not playing automatically in Mainstage 2.0.1

    Hey all - I'm really stuck. In Mainstage 2.0.1, I'm trying to get Klopfgeist running as a separate instrument on its own channel strip, alongside a few other playback channel strips in a given performance. Basically I want a metronome on its own chan

  • Doubt IN Pa0001 Table

    hi all I have created one HR report. In that report contain empno. field, i want to get cost center (KOSTL) from PA0001 table based on empno. But in Pa0001 has more than one record for particular employee. I want to get latest record. how can i get c

  • Error in Package DBMS_METADATA_UTIL unable to run expdp

    Dear All, My Database is 11gR2 on Linux. While running expdp I got this error: UDE-00018: Data Pump client is incompatible with database version 11.2.0.1.0 While looking in the details I found that package DBMS_METADATA_UTIL has errors. Error(362,16)

  • Why is this file so darn big?

    I needed to pull some video off a dvd. I used Toast and the file was 3.8 gig. When I exported the video to a DV quicktime file to open it with iMovie, it grew to a whopping 20 gig. Why is that? Should I convert the dv to a quicktime movie? Or do some