How to POST (create) a folder using CMIS REST in Webcenter

Has anyone tried to create a new folder using CMIS REST/Atom calls in Webcenter ?
Here's what I try to do:
http://172.31.100.150:7001/cmisrestprelim/cmis/children/MyContentServer ==>POST (using the REST client plug-in in Firefox)
Content-Type=application/atom+xml
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"
xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/">
<title>mytestfolder</title>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectTypeId"><cmis:value>cmis:folder</cmis:value></cmis:propertyId>
</cmis:properties>
</cmisra:object>
</entry>
This piece of code should create a folder called "mytestfolder" in the root directory.
When I POST this, I get the following internal server error:
<pre>javax.servlet.ServletException: com.sun.jersey.api.container.MappableContainerException: com.bea.content.RepositoryException: Please specify a valid ID object. Make sure the repository name is not null.
     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:310)
     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:314)
     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
Anyone has an idea how to solve this ?

I must admit that I'm fairly new to all the CMIS and REST-things....
So there are a couple of things in your answer that are a bit hazy to me.
It looks like you are more familiar with all this.
How do I find a creatable folder ? And what should be the URI to POST a new folder ?
I try to POST a new folder using this URI:
http://172.31.100.150:7001/cmisrestprelim/cmis/children/MyContentServer/IDC:Folder%2F13
(IDC:Folder%2F13 is the /Contribution Folders/Documents folder in my repository)
This POST keeps me giving the following internal server error:
<pre>javax.servlet.ServletException: com.sun.jersey.api.container.MappableContainerException: com.bea.content.RepositoryException: Please specify a valid ID object. Make sure the repository name is not null.
     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:310)
     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:314)
     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:239)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at com.bea.content.manager.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:178)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
Thanks for helping me out.

Similar Messages

  • Post/Create a poll using Yammer REST API

    Hi everybody,
    I have been working on a project where there is a requirement to develop a custom web part that displays the feeds from Yammer. Also, the logged in user should be able to post messages, attachments, polls from the web part.
    I was able to post messages and attachments using rest api and with yammer embed. But I couldn't find any information/documentation on how to post/create a poll via Yammer API using JavaScript. I've browsed through the documentation provided by Yammer( https://developer.yammer.com/documentation/ )
    and googled a lot, but couldn't get any help.
    Any suggestions regarding this would be highly appreciated.
    Regards,
    Srivikas Nallamilli.
    -- Thanks & Regards, Srivikas.

    Hi,
    Use the same API that you use to fetch messages from yammer i.e https://www.yammer.com/api/v1/messages.json
    When you post a poll, above api will return json respose something as below:
    "external_references":[
    "meta":{
    "requested_poll_interval":60,
    "realtime":{
    "uri":"https://7-791.rt.yammer.com/cometd/",
    "authentication_token":<TOKEN>
    "channel_id":<CHANNEL ID>
    "last_seen_message_id":null,
    "current_user_id":1530316230,
    "followed_references":[
    "ymodules":[
    "id":12147685,
    "inline_html":"<INLINE HTML>",
    "viewer_id":1530316230
    "newest_message_details":null,
    "feed_name":"Company Feed",
    "feed_desc":"",
    "direct_from_body":false
    you will get the poll message in inline html section highlighted in code above.
    Let me know if it works.
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How to create a Folder using a SQL Query?

    Hi
    How can I create a Folder (eg. C:\MyNewFolder) using SQL Query?

    Hi,
    I added some code in order to get the result from the xp_cmdshell command
    This returns null if successfull, if an error occurs returns the error message. May be useful instead of getting an sql error
    Code Snippet
    declare @cmdpath nvarchar(60), @Location nvarchar(100), @message nvarchar(max)
    set @Location = N'C:\Temp\Temp5'
    set @cmdpath = 'MD '+ @Location
    Create table #result
    result nvarchar(255)
    insert into #result (result) exec master.dbo.xp_cmdshell @cmdpath
    select @message = ISNULL(@message + ' - ','') + result from #result where result is not null
    select @message
    drop table #result
    Eralper
    http://www.kodyaz.com

  • How to create a Folder using java.

    Hi All,
    I have a doubt. I want to create a folder using java.
    Inputs are the destination where the folder should be created and the name of the folder. Plz help me in this regard.
    thanks and regards,
    Vincent .R.

    check out javadoc for java.io
    File reldir=new File("NewDir");//relatively where your program runs
    reldir.mkdir();
    File absdir=new File("C:/NewDir");//absolute path
    reldir.mkdir();
    File newdir=new File(absdir,"SubDir");//defines another dir under absdir
    newdir.mkdir();
    Gil

  • How to create a folder using plsql

    hi all
    i want create a folder using plsql procedures .

    I am not sure weather you can create a folder on database server file system using pl/sql code but you certainly can create/read/write file system files using UTL_FILE package.
    'The Oracle supplied package UTL_FILE can be used to read and write files that are located on the server. It cannot be used to access files locally, that is on the computer where the client is running.'

  • Reg:how to post the parked documents using BDC

    Duplicate message in General deleted.  Please do not post the same question in more than one forum.
    Hi
    I am creating parked Documents using FV50. I am able to check them using FBV0, I am able to select and post the documents using the same transaction. Its working fine. However I want to post the selected parked documents using BDC. I am having problems as the output in FBV0 is in ALV report format. HAving problems selcting the parked documents to be posted. As there any way to post the selected parked documents using BDC.
    Please suggest me a solution for this.
    Thanks,
    Satish
    Edited by: Matt on Dec 3, 2008 7:40 PM

    Hi Rob,
    Thank you for ur reply, can u send that code how u post the parked documents using BDC for FBV0 transaction.  Please send the code.
    Thanks,
    Satish

  • How do I create a folder for private documents which can be password protected?

    how do I create a folder which can be password protected please?

    You can do this by creating a protected disk image.
    Instructions here http://www.macworld.com/article/154559/2010/10/password_protect_folders.html
    Or you can buy and use software like this one: http://www.apimac.com/mac/secretfolder/
    The disk image option is free and easy to do.

  • How do we create a vendor using portal?

    how do we create a vendor using portal.
    creation process needs to trigger workflow.
    Sonali

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • How can I creat a folder by jsp

    import java.io.*;
    class folder
         public static void main(String args[])
              folder foIns = new folder();
              foIns.makeDir("E:\\test");
         public static void makeDir(String dir)
    File d = new File(dir);
    if (!d.exists()) {
    d.mkdir();
    I can creat a folder by java , but how can I creat a folder by jsp??
    thanks all ^_^

    import java.io.*;
    class folder
         public static void main(String args[])
              folder foIns = new folder();
              foIns.makeDir("E:\\test");
         public static void makeDir(String dir)
    File d = new File(dir);
    if (!d.exists()) {
    d.mkdir();
    I can creat a folder by java , but how can I creat a
    folder by jsp??
    thanks all place this class file in web-inf/classes of your web application,and in jsp page use
    <jsp:useBean id="fold" class="your complete class name" scope="page"/>
    <%
    fold.makeDir("dir name");
    %>

  • HT2798 I have a Mac OS 10.6.8 server in my classroom that I have networked to each student's account.  How do I create a folder that allows them to place their finished assignments in it, but does not allow them to go in and remove anything from that fold

    I have a Mac OS 10.6.8 server in my classroom that I have networked to student accounts on the iMacs in the room.  How do I create a folder that allows studnts to place their finished assignments in it, but does not allow them to go in and remove anything from that folder?

    You want a "Drop Box" style folder. You should be able to achieve this by creating a folder and giving it permissions similar to the "Drop Box" folder in your users Public Folder (i.e. write only permissions.)

  • How do I create a folder in the root directory

    Hi
    How do I create a folder in the root directory?
    Once I do that I need to create a note book file in that folder
    Any help would be much appreciated
    Thanks
    Brian

    Hi Brian,
    Open Macintosh HD in the Finder, then SHIFT+CMD+n
    Root Directory is the top level of the drive.

  • How do I create a folder in mail?

    How do I create a folder within a mail account?

    If you are on iOS 5 and it's an IMAP type account then you should get an Edit button at the top of the list of folders that you currently have on your email account. If it's a POP type account or if you are still on iOS 4 then you won't get the Edit button.

  • How do I create a folder in notes

    How do I create a folder within notes on my ipad2?

    You cannot create folders in the Notes App on the iPad. Notes are tied to your mail accounts. You can tap on the Accounts button in the upper left corner of the app to switch from notes in one mail account to the another mail account.

  • How do I create a submenu using Muse

    How do I create a submenu using muse

    Hi,
    Kindly refer to the following links:
    Vertical Sub Menu
    Adobe Muse - Submenu - Sub Menu - Drop Down Menu - Navigation - YouTube
    Adobe Muse Getting Started - Adding A Navigation Bar - YouTube
    Regards
    Sonam

Maybe you are looking for

  • [Flat File Source [2]] Error: Cannot open the datafile "VendorPurchases20050512.txt".

    hi I'm trying to use foreachloop container in order to read the data that i have in several txt files and upload it into MRR table.  when i'm trying to run the package, i'm getting the following error:  [Flat File Source [2]] Warning: The system cann

  • Custom Transaction Types, Subject Profiles etc...

    Hi all, Did anyone worked on custom Transaction Type on SDCR?  I know that this is CRM specific stuff to configure, but want to check what are the implications in modifying exisiting SDCR..  Well, in the meanwhile, we need to work on custom Code Grou

  • PO change didnt transfer to corresponding SO via IDOC.

    Hi, I created an PO and using IDOC to create corresponding SO in the system. The first time,the PO created with 1 item and the IDOC is triggered and the corresponding SO wtih 1 item is generated by this IDOC successfully. But the second time, if i ch

  • Managed System Configuration - Introscope Agent Configuration Failed

    I get the following error message when carrying out step Byte Code Adapter Installation. Introscope Agent Configuration - Remote Operation Failed. The Wily agelet is running in 711 mode. VM Parameters update for node 268734950 Remote Operation Failed

  • Horizontal Scroll Text

    I found a cool new font and would like to scroll text like a news ticker. I have created my dynamic text box, set it up the way i want the text to look, and set it to scroll. I know how to write the code for a vertical scroll, how would i set it up t