diff --git a/core/trunk/core/class/web_service/cmisCatalog.xml b/core/trunk/core/class/web_service/cmisCatalog.xml index 575c2d70a14e57a0dc6e81ad104d2956044e0b9f..75e49bb743b26fd1b7f76cfdb33c11e3ef868cb8 100644 --- a/core/trunk/core/class/web_service/cmisCatalog.xml +++ b/core/trunk/core/class/web_service/cmisCatalog.xml @@ -2,7 +2,8 @@ <app:service xmlns:app="http://www.w3.org/2007/app" xmlns:atom="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/"> +xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" +xmlns:maarch="http://www.maarch.org"> <app:workspace> <atom:title>Maarch main Repository</atom:title> <cmisra:repositoryInfo> diff --git a/core/trunk/core/class/web_service/cmis_test/create_folder.atom.xml b/core/trunk/core/class/web_service/cmis_test/create_folder.atom.xml index 73ea8c0a4f1cffcf4c214167ab7d962ca4e8a2ef..aedeef56b22e89f69c136479fd506515b4cb2408 100644 --- a/core/trunk/core/class/web_service/cmis_test/create_folder.atom.xml +++ b/core/trunk/core/class/web_service/cmis_test/create_folder.atom.xml @@ -1,7 +1,8 @@ <?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/"> +xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" +xmlns:maarch="http://www.maarch.org"> <title>Someco</title> <cmisra:object> <cmis:properties> diff --git a/core/trunk/core/class/web_service/cmis_test/query.xml b/core/trunk/core/class/web_service/cmis_test/query.xml index 517fc5d6f1a2a8cb75b2bc89139bbe6fcbe5200e..334deddfa07f3eabd1cb93d2ceb0b553c250aa65 100644 --- a/core/trunk/core/class/web_service/cmis_test/query.xml +++ b/core/trunk/core/class/web_service/cmis_test/query.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" standalone="yes"?> -<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/"> +<cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:maarch="http://www.maarch.org"> <cmis:statement> SELECT cmis:objectId , maarch:type , maarch:entity , maarch:dest_user FROM cmis:document where maarch:dest_user is not null ORDER BY cmis:objectId asc </cmis:statement> <cmis:searchAllVersions>false</cmis:searchAllVersions> <cmis:includeAllowableActions>false</cmis:includeAllowableActions> diff --git a/core/trunk/core/class/web_service/cmis_test/test_rest.php b/core/trunk/core/class/web_service/cmis_test/test_rest.php index 1aad364c479cd5cfdac938080f2868c98d390ff6..eda2078607cb8863bedfc6f1282dab8a8e0a28aa 100644 --- a/core/trunk/core/class/web_service/cmis_test/test_rest.php +++ b/core/trunk/core/class/web_service/cmis_test/test_rest.php @@ -24,7 +24,7 @@ if (isset($_REQUEST['idResource']) && !empty($_REQUEST['idResource'])) { curl_setopt($curl, CURLOPT_URL, $url . '/'); if (($_REQUEST['method'] == 'post' || !isset($_REQUEST['method']))&& isset($_REQUEST['xmlFile'])) { - $xmlAtomFileContent = file_get_contents($_REQUEST['xmlFile']); + $xmlAtomFileContent = file_get_contents('core/class/web_service/cmis_test/' . $_REQUEST['xmlFile']); curl_setopt($curl, CURLOPT_POSTFIELDS, 'atomFileContent=' . $xmlAtomFileContent); curl_setopt($curl, CURLOPT_POST, 1); } diff --git a/core/trunk/core/class/web_service/cmis_test/testcreatefolder.atom.xml b/core/trunk/core/class/web_service/cmis_test/testcreatefolder.atom.xml index cc3bbf8d33346332d675f6f02394727ea0b42a4c..fbb0103f7d4e9b8c8d4841d44c52489515789f04 100644 --- a/core/trunk/core/class/web_service/cmis_test/testcreatefolder.atom.xml +++ b/core/trunk/core/class/web_service/cmis_test/testcreatefolder.atom.xml @@ -1,7 +1,8 @@ <?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/"> +xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" +xmlns:maarch="http://www.maarch.org"> <title>Test creation folder</title> <cmisra:object> <cmis:properties>