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

Someone has already tried to create a new folder using calls to the CMIS REST/Atom in Webcenter?

Here's what I'm trying to do:
http://172.31.100.150:7001 / cmisrestprelim, cmis, children, MyContentServer == > POST (using the REST client plugin Firefox)

Content-Type = application/atom + xml

<? XML version = "1.0" encoding = "utf-8"? >
< Xmlns = "http://www.w3.org/2005/Atom" entry
xmlns:cmisra = "http://docs.oasis-open.org/ns/cmis/restatom/200908/".
xmlns:CMIS = "http://docs.oasis-open.org/ns/cmis/core/200908/" >
mytestfolder < title > < /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 this POST, 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 that the name of the repository 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)
to 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)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
...........

Someone has any idea how to solve this problem?

The entry atom you post must have an createable (cmis:objectTypeId) file type, for example:


xmlns:cmisra = "http://docs.oasis-open.org/ns/cmis/restatom/200908/".
xmlns:CMIS = "http://docs.oasis-open.org/ns/cmis/core/200908/" >
mytestfolder


/ usbohp380-10 / IDC:Folder


To search for a folder can be created, you'll want to do a GET on a URI as follows:
http://172.31.100.150:7001/cmisrestprelim/cmis / typesChildren/MyContentServer/cmis:folder
Which returns an atom feed with entries atom.
Each of these entries will be a child type in cmis:folder, and when you inspect each entry, you will be looking for a w /.
true

I have never had much luck using web browsers for strolling through the AtomPub type links.
There might be a rest client tool or a tool customer atom that will allow you to see the actual xml text that is returned.

If you're going to do a lot w / CMIS, it would be interesting to look at the specifications:
http://docs.oasis-open.org/CMIS/CMIS/v1.0/CS01/CMIS-spec-v1.0.html
And documentation accompanying Oracle:
http://www.Oracle.com/technetwork/middleware/WebCenter/documentation/e15813-01-128494.PDF

Tags: Fusion Middleware

Similar Questions

  • How to create a folder compressed uncompressed, not on my desk?

    How to create a folder compressed uncompressed, not on my desk?

    How to create a folder compressed uncompressed, not on my desk?
    When I right click on my desktop the popup resulting menu, which allows me to choose things that I can choose, and when I select 'New' the new popup window gives me another window of things that I can select. Not the case in this window possible selections are there a selection to create a folder that is not "compressed or" zipped ". I want a regular folder, not a compressed folder! I don't want zipped files, whenever I want to create a folder! If I want to create a compressed folder, I want you to leave a way for me to do that, I have my own reasons why I want to use the files uncompressed graciously... I'm used to be able to make the files uncompressed on this computer. I don't know what or how this change came to be. I want to just return to the way it was before.  Also, I want to know what it takes to keep it (the change) doesn't happen, or what I did to get there.

    How to create a folder compressed uncompressed, not on my desk?

    How to create a folder compressed uncompressed, not on my desk?
    When I right click on my desktop the popup resulting menu, which allows me to choose things that I can choose, and when I select 'New' the new popup window gives me another window of things that I can select. Not the case in this window possible selections are there a selection to create a folder that is not "compressed or" zipped ". I want a regular folder, not a compressed folder! I don't want zipped files, whenever I want to create a folder! If I want to create a compressed folder, I want you to leave a way for me to do that, I have my own reasons why I want to use the files uncompressed graciously... I'm used to be able to make the files uncompressed on this computer. I don't know what or how this change came to be. I want to just return to the way it was before.  Also, I want to know what it takes to keep it (the change) doesn't happen, or what I did to get there.

    Microsoft did not change this, Chrome has done. Compressed files shouldn't be there, but you have lost the regular folder option. It is an update of Chrome, (mid), is responsible. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    If still no joy, see the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • How to create screen saver using the java bean

    Hi all

    can someone knows how to create screen saver using java beans?

    Thanks in advance.
    Sarah

    It is a strange requirement, but you can go

    A TIME-NEW-FORM-INSTANCE:

    DECLARE timer_id Timer;
     one_minute NUMBER(5) := 60000;
    BEGIN
     timer_id := CREATE_TIMER('chnage_color', one_minute, REPEAT);
    END; 
    

    WHEN-TIMER-EXPIRED:

    DECLARE
         RandomR NUMBER(10):=dbms_random.value(1,256);
         RandomG NUMBER(10):=dbms_random.value(1,256);
         RandomB NUMBER(10):=dbms_random.value(1,256);
    BEGIN
    
     SET_CANVAS_PROPERTY('CANVAS2',BACKGROUND_COLOR, 'R'||RandomR||'G'||RandomG||'B'||RandomB);
    END; 
    
  • How to create a folder 'network '.

    Can someone tell me how to create a network folder.  The cmdlet New-file that does not provide an option, but still under the vSphere 5.1 Webclient which is an option.

    I am trying to automate the creation of files, dvSwitches and dvPortGroups.  Can do the rest, I can't understand how to create the network folder that is really the first thing I want to do.

    Any help would be greatly appreciated.

    See you soon

    Ant

    Hello, IMMIAnt-

    You can use the place setting - new-folder.  To create a network folder in a given datacenter, do something like:

    ## new network folder in the given datacenterNew-Folder testInNetwk -Location (Get-Datacenter myDC0 | Get-Folder network -NoRecursion)
    

    And, to create a right to file in the root (not in a data center), you can do:

    ## folder at the root of the vCNew-Folder testFolder -Location (Get-Folder -NoRecursion)
    

    What to do what you are after?

  • How to create new folder Mozilla Thunderbird

    I just started using it for my emails. I have my original files from windows live, but cannot see how to create another new. Help would be very appreciated.

    Right click on a folder in the folder - new folder (or subfolder) pane

  • How to create a certificate using the keytool / terminal?

    I have problems with the creation of certificates using the Terminal. I use the instructions below and exactly all the information required. When he asks me to type 'Yes' and confirm, the whole process starts right at the beginning over and over and I have to type in the same things. Do I did wrong? How can I confirm the information I typed in?

    I'm trying to create a certificate to sign the apps for GooglePlay and Amazon. I use professional DPS.

    Thanks for the help!

    Directions for use:

    (Mac OS) Create a certificate using Keytool

    Open Terminal, located in Applications > utilities.

    Type (or paste) the following line (replace "myname.key.p12" with the actual name of your certificate):

    1

    keytool - genkey - v - keystore myname.key.p12 - alias alias_name - keyalg RSA - keysize 2048 - stores pkcs12-validity 10000

    The "10000" specification sets the expiration date after 22 October 2033.

    Enter and enter a password. Until the Viewer constructor supports the creation of custom Android applications, it is necessary to share this password with Adobe. Create a password that you can share.

    Follow the prompts to specify the certificate information.

    When you are prompted to confirm the choice, enter Yes and press return to use the same password.

    A certificate is created in your quick location, such as your user name folder. Copy the certificate file to a known location. Note the password as well.

    It could be access question. Enable the root user, and then try again.

  • How to create a folder that is NOT a SMART FOLDER?

    (1) how can I create a folder that is NOT a smart folder?

    (2) how can I get a folder to display the NUMBER of items it contains?

    https://support.Apple.com/kb/PH22185?viewlocale=en_US & local = en_US click the blue details.   It's Apple records guide.

  • BlackBerry smartphone how to create a folder in 9860

    Hi all

    Can someone tell me if we have an option to create a folder, if so, please guide me on this

    Concerning

    Austin

    Hi Austin

    Click the 'documents' black. If you have not yet created all the files, I think it will open under the folder titled 'Up', which turns blue upward.

    Now click on the button on the left under the BB side on this.  Select "Add folder..."

    You now have the first branch of your tree - call professional docs.  Back to the top, add a folder - call this second branch "Personal docs.  You can create subfolders within those, always using to add a folder.

  • How to create the custom using Javascripts in PLM for Agile process validator

    I have already created customized using ASP.Net validators. But now I need to create custom using Javascript validator.

    Please provide me the details

    1. how to create custom validator and where to create?

    2 provide me with code samples for custom validators javascripts

    Thank you

    Floquet

    I am currently using 6.1.1.5

  • How to create the report using the procedure.

    Hi all

    I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.

    CREATE OR REPLACE PROCEDURE headcsv_prc2

    AS

    CURSOR cr_header

    IS

    SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."

    FM.formula_vers AS "FORMULA_VERSION."

    FM.formula_desc1 AS "FORMULA_DESC."

    DECODE (fm.formula_status,

    100, 'new ',.

    400, "approved for use in the laboratory."

    700, "allow the general."

    800, "We Hold."

    900, "frozen."

    1000, "obsolete/archived.

    ) AS "FORMULA_STATUS."

    DECODE (fd.line_type, '1', msib.segment1).

    DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.

    DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."

    DECODE (by_product_type,

    "W', 'waste."

    "R',"rework. "

    "Y', 'Yield."

    The of ', 'Sample. "

    NULL VALUE

    ) AS "BY_PRODUCT_TYPE".

    Of org_organization_definitions ood,.

    fm_form_mst fm,

    fm_matl_dtl fd,

    mtl_system_items_b msib

    WHERE ood.organization_id = fm.owner_organization_id

    AND fm.owner_organization_id = msib.organization_id

    AND msib.organization_id = fd.organization_id

    AND fd.organization_id = ood.organization_id

    AND fm.formula_id = fd.formula_id

    AND msib.inventory_item_id = fd.inventory_item_id

    - and fm. FORMULA_NO like '% THE % '.

    AND fd.line_type IN ('1 ', ' 2', '-1' ")

    Ood.organization_code GROUP,

    FM.formula_no,

    FM.formula_vers,

    FM.formula_desc1,

    FM.formula_status,

    FD.line_type,

    MSIB. Segment1,

    by_product_type

    ORDER BY fm.formula_no, fm.formula_vers;

    BEGIN

    Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')

    || ','

    || INITCAP ('NAME FORMULA')

    || ','

    || INITCAP ('FORMULA VERSION')

    || ','

    || INITCAP ('FORMULA DESC')

    || ','

    || INITCAP ('FORMULA STATUS')

    || ','

    || INITCAP ('PRODUCT')

    || ','

    || INITCAP ('INGREDIANT")

    || ','

    || INITCAP ("PER PRODUCT")

    || ','

    || INITCAP ('PER TYPE OF PRODUCT")

    );

    FOR ch IN cr_header

    LOOP

    Dbms_output.put_line (ch.organization_code

    || ','

    || ch.formula_name

    || ','

    || ch.formula_version

    || ','

    || '"'

    || ch.formula_desc

    || '"'

    || ','

    || ch.formula_status

    || ','

    || ch. Product

    || ','

    || ch.ingrediant

    || ','

    || ch.by_product

    || ','

    || ch.by_product_type

    );

    END LOOP;

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.

    || SQLERRM

    );

    END;

    EXEC HeadCSV_Prc2



    Thank you

    Rambeau

    Hi Christian,

    In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.

    I recommend you research the Apex and then enter your so-called "higher authorities" how things work.

    Concerning

    André

  • How to create vSwitch distributed using vicfg-vswitch?

    I was looking for to vSphere command-line Interface documentation to create the vswitches distributed using the CLI.

    http://www.VMware.com/support/developer/VCLI/

    But I couldn't find a way. So I would like to know, is it possible to create a dvSwitches using the CLI?

    If it is not possible through CLI, then what is the opposite?

    Unfortunately, my development environment is always downwards, otherwise I can whip up a small example.

    But when you say it is no examples around, there are actually many examples using the SDK including the vSphere SDK for Perl. If you look at the source code of the any orders vCLI, you will notice that they are all written in Perl, and it is not surprising, he uses the vSphere SDK for Perl. Yes, there may be no examples for each use unique case or operation that can be performed against a host ESX/ESXi and vCenter, which is the same for given PowerCLI, the functionality is there in the API.

    If you are new to VMware SDK/API and is interested to develop or create your own scripts, I'd take a glance at this document first - Getting Started with vSphere SDK - Update for SDK 4.1 release. Depending on your comfort level, you will choose an appropriate SDK (vSphere SDK for Perl, PowerCLI, VI Java, c#, .NET, etc.) to the script or program in. Some SDK will be easier to learn as PowerCLI, VMware has done a great job using the Powershell language to abstract much of the complexity of the vSphere API made it really simple to jump to the right, if you still need to understand what is happening and how the operations are actually called. The default value 100-200 + cmdlets cover most of the basic use cases, but once you start getting into more complicated scenarios, then you need to really understand the vSphere API to extend the functionality, including things like creating a vDS and distributed of the exchanges, etc.

    Here is a guide on getting started with vSphere SDK for Perl - Getting Started with vSphere SDK for Perl and here a collection of vSphere SDK for Perl scripts that I've written scripts repository vGhetto. Another excellent resource is the forums for developers as well as for the vSphere various API/SDK - http://communities.vmware.com/community/developer

    Bottom line is, everything that can be done via vSphere Client can be done using the API vsphere and with one of the vSphere SDK, it can still be trivial, but the functionality is there, you can simply create it if there isn't an example/sample code.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to create this site using Dreamweaver?

    I just finished a course of the basics of Dreamweaver and I would like to enter into a more advanced stage.

    This is the site I want to create:

    www.safaribig5.com

    Could someone please help me understand whether it is possible to create a website using Dreamweaver? If so, HOW?

    Thank you.

    The cursor is a plugin called Galleria

    http://Galleria.IO/

    The image gallery is a plugin called Flowslider jQuery

    http://www.flowslider.com/

    The page is a fundamental provision of 2 columns fixed centered width.

    http://ALT-Web.com/templates/CSS-Basic-2-column-layout.shtml

    Having said all that, you need to learn the theory of web design of base first and all that you can in HTML & CSS. He had to learn.

    HTML CSS & Web Design theory tutorials.

    http://www.html.NET/

    http://w3schools.com/

    http://www.csstutorial.NET/

    http://webdesign.tutsplus.com/sessions/Web-design-theory/

    Nancy O.

  • How to CREATE a DIRECTORY using local directory

    Hi all

    I want to get some data to the local computer from the remote database service, so I use a stored procedure to get these date and save them in a file before you perform the procedure, I have to CREATE a DIRECTORY ensures that the path of the file.

    I use to CREATE a DIRECTORY on the local computer OCCI using, as: "CREATE or REPLACE DIRECTORY MSGDIR AS 'C:\test'" and I can't find the file in C:\test, I found the answer on the internet about this problem, it seems that use to CREATE a DIRECTORY on the database of service rather than on the local computer.

    Anyone know how to CREATE the local directory to use?
    Or give me advice to get the data to the local computer in my case?

    Best regards.
    It looks that CREATE DIRECTORY use the directory on the database service rather than local machine.
    

    Exactly. Where it States Furthermore?

    Anybody knows how to CREATE DIRECTORY use local directory?
    Or have any advice to get data to local machine in my case?
    

    1 all simply cannot do it. It is not possible, because this would be a serious security breach.
    2 of course, you can share the directory on the server to the network and configure a share on your local machine.
    It's so simple, most people think about it.
    You might also consider using Apex or utl_http directly.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • [Windows 7] missing drivers on your laptop Pavilion G6

    Data sheet: Pavilion G6 - 1160 his Windows 7 64 bit Hi I have recently reinstalled windows after the replacement of a damaged hard drive but could not connect to the internet. After a brief period of head scratching that I worked on that I was missin

  • Unable to backup on drive F or deletion of the D drive.

    When I try a backup of my F drive, the program uses by default the D drive (which is now complete.  I tried repeatrdly to backup the disk F stand alone without success.  Also I don't know the way to delete the files from D drive. I use a laptop Dell

  • Installed Windows Vista Home premium sp2 by using the recovery disk, need to activate product key

    Hi- I recently partion on my computer hp laptop and installed windows vista family premium with the recovery disk I got with the laptop I have this laptop for about 4 years, I have the product ID-89578-oem-7332157-00204. If possible can I get the pro

  • error code 800705B 3

    Had to reboot the computer and now when I try to load the service Pack1 I get error code 800705B 3. Tried all of the fixes in the troubleshooting guide but don't be loading not always.

  • OpenManage Essentials "Devices" tab missing

    Hello I have installed OpenManage Essentials of this year beginning. He worked a much brought us good value. Now about three weeks ago the tab "devices"in the web application under the menu "Manage" suddenly disappeared. I can still search for device