mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
38
source/sample/JavaCmisTest/.classpath
Executable file
38
source/sample/JavaCmisTest/.classpath
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="lib" path="lib/commons-logging-1.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/cxf-2.1.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/FastInfoset-1.2.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-activation_1.1_spec-1.0.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-annotation_1.0_spec-1.1.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-javamail_1.4_spec-1.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-jaxws_2.1_spec-1.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-servlet_2.5_spec-1.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jaxb-api-2.1.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jaxb-impl-2.1.7.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jaxb-xjc-2.1.7.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jetty-6.1.9.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/jetty-util-6.1.9.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/neethi-2.0.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/saaj-api-1.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/saaj-impl-1.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/spring-beans-2.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/spring-context-2.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/spring-core-2.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/spring-web-2.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/stax-utils-20060502.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/velocity-1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/velocity-dep-1.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/wsdl4j-1.6.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/wss4j-1.5.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/wstx-asl-3.2.4.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/xml-resolver-1.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/XmlSchema-1.4.2.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/xmlsec-1.3.0.jar"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
|
<classpathentry kind="lib" path="lib/cmis-types.jar"/>
|
||||||
|
<classpathentry kind="output" path="build"/>
|
||||||
|
</classpath>
|
19
source/sample/JavaCmisTest/.project
Executable file
19
source/sample/JavaCmisTest/.project
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>SimpleAlfrescoCmisServicesUsing</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
36
source/sample/JavaCmisTest/build.xml
Executable file
36
source/sample/JavaCmisTest/build.xml
Executable file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
|
||||||
|
<project name="SimpleAlfrescoCmisServicesUsing" default="build" basedir=".">
|
||||||
|
|
||||||
|
<property name="project.dir" value="." />
|
||||||
|
<property name="build.dir" value="${project.dir}/build" />
|
||||||
|
<property name="dist.dir" value="${build.dir}/dist" />
|
||||||
|
|
||||||
|
<path id="class.path">
|
||||||
|
<dirset dir="${build.dir}" />
|
||||||
|
<fileset dir="${project.dir}/lib" includes="**/*.jar" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<target name="build">
|
||||||
|
<delete dir="${build.dir}" />
|
||||||
|
|
||||||
|
<mkdir dir="${build.dir}" />
|
||||||
|
<mkdir dir="${build.dir}/classes" />
|
||||||
|
<mkdir dir="${dist.dir}" />
|
||||||
|
<mkdir dir="${dist.dir}/lib" />
|
||||||
|
|
||||||
|
<javac classpathref="class.path" srcdir="${project.dir}/src" destdir="${build.dir}/classes" />
|
||||||
|
|
||||||
|
<jar destfile="${dist.dir}/cmis-test-client.jar">
|
||||||
|
<fileset dir="${build.dir}/classes" />
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<copy file="${project.dir}/cmis-test.bat" todir="${dist.dir}" />
|
||||||
|
<copy todir="${dist.dir}/lib">
|
||||||
|
<fileset dir="${project.dir}/lib" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<delete dir="${build.dir}/classes" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
6
source/sample/JavaCmisTest/cmis-test.bat
Executable file
6
source/sample/JavaCmisTest/cmis-test.bat
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set CLASSPATH=cmis-test.jar
|
||||||
|
for %%i in (./lib/*.jar) do call set CLASSPATH=./lib/%%~i;%%CLASSPATH%%
|
||||||
|
|
||||||
|
java org.alfresco.cmis.ws.example.SimpleExecutableCmisServicesUtilizer %1 %2 %3
|
6
source/sample/JavaCmisTest/cmis-test.sh
Executable file
6
source/sample/JavaCmisTest/cmis-test.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export CLASSPATH=./cmis-test-client.jar
|
||||||
|
for jar in ./lib/*.jar; do export CLASSPATH=$CLASSPATH:$jar; done
|
||||||
|
|
||||||
|
java org.alfresco.cmis.ws.example.SimpleExecutableCmisServicesUtilizer $1 $2 $3
|
BIN
source/sample/JavaCmisTest/lib/FastInfoset-1.2.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/FastInfoset-1.2.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/XmlSchema-1.4.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/XmlSchema-1.4.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/cmis-types.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/cmis-types.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/commons-logging-1.1.1.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/commons-logging-1.1.1.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/cxf-2.1.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/cxf-2.1.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-activation_1.1_spec-1.0.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-activation_1.1_spec-1.0.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-annotation_1.0_spec-1.1.1.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-annotation_1.0_spec-1.1.1.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-javamail_1.4_spec-1.3.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-javamail_1.4_spec-1.3.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-jaxws_2.1_spec-1.0.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-jaxws_2.1_spec-1.0.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-servlet_2.5_spec-1.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-servlet_2.5_spec-1.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-stax-api_1.0_spec-1.0.1.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-stax-api_1.0_spec-1.0.1.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/jaxb-api-2.1.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/jaxb-api-2.1.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/jaxb-impl-2.1.7.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/jaxb-impl-2.1.7.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/jaxb-xjc-2.1.7.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/jaxb-xjc-2.1.7.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/jetty-6.1.9.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/jetty-6.1.9.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/jetty-util-6.1.9.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/jetty-util-6.1.9.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/neethi-2.0.4.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/neethi-2.0.4.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/saaj-api-1.3.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/saaj-api-1.3.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/saaj-impl-1.3.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/saaj-impl-1.3.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/spring-beans-2.0.8.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/spring-beans-2.0.8.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/spring-context-2.0.8.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/spring-context-2.0.8.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/spring-core-2.0.8.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/spring-core-2.0.8.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/spring-web-2.0.8.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/spring-web-2.0.8.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/stax-utils-20060502.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/stax-utils-20060502.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/velocity-1.4.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/velocity-1.4.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/velocity-dep-1.4.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/velocity-dep-1.4.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/wsdl4j-1.6.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/wsdl4j-1.6.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/wss4j-1.5.4.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/wss4j-1.5.4.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/wstx-asl-3.2.4.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/wstx-asl-3.2.4.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/xml-resolver-1.2.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/xml-resolver-1.2.jar
Executable file
Binary file not shown.
BIN
source/sample/JavaCmisTest/lib/xmlsec-1.3.0.jar
Executable file
BIN
source/sample/JavaCmisTest/lib/xmlsec-1.3.0.jar
Executable file
Binary file not shown.
22
source/sample/JavaCmisTest/readme.txt
Executable file
22
source/sample/JavaCmisTest/readme.txt
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
This simple example connects to the Alfresco CMIS Server and displays the names
|
||||||
|
of the folders within the Alfresco root folder called "Company Home".
|
||||||
|
|
||||||
|
The example utilizes the Alfresco CMIS Web Services interfaces.
|
||||||
|
|
||||||
|
The example is stand-alone and includes all of its dependencies.
|
||||||
|
|
||||||
|
Steps to execute the example...
|
||||||
|
|
||||||
|
Pre-requisites:
|
||||||
|
a) The Alfresco Server must be running for the test client to succeed.
|
||||||
|
b) ant is required to build the test client
|
||||||
|
|
||||||
|
1) Unpack JavaCmisTest.zip to <destdir>
|
||||||
|
2) Run <destdir>/ant
|
||||||
|
3) Run <destdir>cmis-test.bat http://<alfresco_host>:<alfresco_port> <username> <password>
|
||||||
|
|
||||||
|
Note: A cmis-test.sh also exists.
|
||||||
|
|
||||||
|
Upon successful completion, a list of folder names is presented.
|
||||||
|
|
||||||
|
The source code for the example is also included.
|
BIN
source/sample/WcfCmisTest/CmisTest.exe
Executable file
BIN
source/sample/WcfCmisTest/CmisTest.exe
Executable file
Binary file not shown.
38
source/sample/WcfCmisTest/CmisTest.exe.config
Executable file
38
source/sample/WcfCmisTest/CmisTest.exe.config
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<system.serviceModel>
|
||||||
|
<bindings>
|
||||||
|
<basicHttpBinding>
|
||||||
|
<binding name="RepositoryServiceSoapBinding" messageEncoding="Text">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
<binding name="NavigationServiceSoapBinding" messageEncoding="Text">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
<binding name="ObjectServiceSoapBinding" messageEncoding="Mtom">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
</basicHttpBinding>
|
||||||
|
</bindings>
|
||||||
|
<client>
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/RepositoryService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="RepositoryServiceSoapBinding"
|
||||||
|
contract="RepositoryServicePort" name="RepositoryServicePort" />
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/NavigationService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="NavigationServiceSoapBinding"
|
||||||
|
contract="NavigationServicePort" name="NavigationServicePort" />
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/ObjectService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="ObjectServiceSoapBinding"
|
||||||
|
contract="ObjectServicePort" name="ObjectServicePort" />
|
||||||
|
</client>
|
||||||
|
</system.serviceModel>
|
||||||
|
</configuration>
|
117
source/sample/WcfCmisTest/src/CmisTest.csproj
Executable file
117
source/sample/WcfCmisTest/src/CmisTest.csproj
Executable file
@@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProductVersion>9.0.21022</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{AA3B7140-D34D-430B-BAF8-29E8220263CA}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>CmisTest</RootNamespace>
|
||||||
|
<AssemblyName>CmisTest</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Configuration" />
|
||||||
|
<Reference Include="System.Core">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.Serialization">
|
||||||
|
<RequiredTargetFramework>3.0</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.ServiceModel">
|
||||||
|
<RequiredTargetFramework>3.0</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Web" />
|
||||||
|
<Reference Include="System.Web.Extensions">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Web.Services" />
|
||||||
|
<Reference Include="System.Xml.Linq">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data.DataSetExtensions">
|
||||||
|
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="NavigationService.cs" />
|
||||||
|
<Compile Include="ObjectService.cs" />
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="RepositoryService.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<WCFMetadata Include="Service References\" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Windows Installer 3.1</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
581
source/sample/WcfCmisTest/src/NavigationService.cs
Executable file
581
source/sample/WcfCmisTest/src/NavigationService.cs
Executable file
@@ -0,0 +1,581 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Runtime Version:2.0.50727.1433
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.cmis.org/ns/1.0", ClrNamespace="www.cmis.org.ns._1._01")]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.ServiceContractAttribute(Namespace="http://www.cmis.org/ns/1.0", ConfigurationName="NavigationServicePort")]
|
||||||
|
public interface NavigationServicePort
|
||||||
|
{
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'documentAndFolderCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="documentAndFolderCollection")]
|
||||||
|
getDescendantsResponse getDescendants(getDescendants request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'documentCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="documentCollection")]
|
||||||
|
getCheckedoutDocsResponse getCheckedoutDocs(getCheckedoutDocs request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'folderCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="folderCollection")]
|
||||||
|
getDocumentParentsResponse getDocumentParents(getDocumentParents request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'documentAndFolderCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="documentAndFolderCollection")]
|
||||||
|
getChildrenResponse getChildren(getChildren request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'folderCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="folderCollection")]
|
||||||
|
getFolderParentResponse getFolderParent(getFolderParent request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'documentCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(repositoryInfoType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeDefinitionType))]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="documentCollection")]
|
||||||
|
getUnfiledDocsResponse getUnfiledDocs(getUnfiledDocs request);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public enum typesOfObjectsEnum
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
FoldersAndDocumets,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
Folders,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
Documents,
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getDescendants", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getDescendants
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string folderId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public typesOfObjectsEnum type;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
public object depth;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=3)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
public getDescendants()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getDescendants(string folderId, typesOfObjectsEnum type, object depth, string filter)
|
||||||
|
{
|
||||||
|
this.folderId = folderId;
|
||||||
|
this.type = type;
|
||||||
|
this.depth = depth;
|
||||||
|
this.filter = filter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getDescendantsResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getDescendantsResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public documentOrFolderObjectType[] documentAndFolderCollection;
|
||||||
|
|
||||||
|
public getDescendantsResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getDescendantsResponse(documentOrFolderObjectType[] documentAndFolderCollection)
|
||||||
|
{
|
||||||
|
this.documentAndFolderCollection = documentAndFolderCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getCheckedoutDocs", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getCheckedoutDocs
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string maxItems;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string skipCount;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=3)]
|
||||||
|
public string folderID;
|
||||||
|
|
||||||
|
public getCheckedoutDocs()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getCheckedoutDocs(string filter, string maxItems, string skipCount, string folderID)
|
||||||
|
{
|
||||||
|
this.filter = filter;
|
||||||
|
this.maxItems = maxItems;
|
||||||
|
this.skipCount = skipCount;
|
||||||
|
this.folderID = folderID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getCheckedoutDocsResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getCheckedoutDocsResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public documentObjectType[] documentCollection;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public bool hasMoreItems;
|
||||||
|
|
||||||
|
public getCheckedoutDocsResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getCheckedoutDocsResponse(documentObjectType[] documentCollection, bool hasMoreItems)
|
||||||
|
{
|
||||||
|
this.documentCollection = documentCollection;
|
||||||
|
this.hasMoreItems = hasMoreItems;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getDocumentParents", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getDocumentParents
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string documentId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
public getDocumentParents()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getDocumentParents(string documentId, string filter)
|
||||||
|
{
|
||||||
|
this.documentId = documentId;
|
||||||
|
this.filter = filter;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getDocumentParentsResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getDocumentParentsResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public folderObjectType[] folderCollection;
|
||||||
|
|
||||||
|
public getDocumentParentsResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getDocumentParentsResponse(folderObjectType[] folderCollection)
|
||||||
|
{
|
||||||
|
this.folderCollection = folderCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getChildren", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getChildren
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string folderId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public typesOfObjectsEnum type;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=3)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string maxItems;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=4)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string skipCount;
|
||||||
|
|
||||||
|
public getChildren()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getChildren(string folderId, typesOfObjectsEnum type, string filter, string maxItems, string skipCount)
|
||||||
|
{
|
||||||
|
this.folderId = folderId;
|
||||||
|
this.type = type;
|
||||||
|
this.filter = filter;
|
||||||
|
this.maxItems = maxItems;
|
||||||
|
this.skipCount = skipCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getChildrenResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getChildrenResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public documentOrFolderObjectType[] documentAndFolderCollection;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public bool hasMoreItems;
|
||||||
|
|
||||||
|
public getChildrenResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getChildrenResponse(documentOrFolderObjectType[] documentAndFolderCollection, bool hasMoreItems)
|
||||||
|
{
|
||||||
|
this.documentAndFolderCollection = documentAndFolderCollection;
|
||||||
|
this.hasMoreItems = hasMoreItems;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getFolderParent", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getFolderParent
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string folderId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
public bool returnToRoot;
|
||||||
|
|
||||||
|
public getFolderParent()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getFolderParent(string folderId, string filter, bool returnToRoot)
|
||||||
|
{
|
||||||
|
this.folderId = folderId;
|
||||||
|
this.filter = filter;
|
||||||
|
this.returnToRoot = returnToRoot;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getFolderParentResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getFolderParentResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public folderObjectType[] folderCollection;
|
||||||
|
|
||||||
|
public getFolderParentResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getFolderParentResponse(folderObjectType[] folderCollection)
|
||||||
|
{
|
||||||
|
this.folderCollection = folderCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getUnfiledDocs", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getUnfiledDocs
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string filter;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string maxDocuments;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string skipCount;
|
||||||
|
|
||||||
|
public getUnfiledDocs()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getUnfiledDocs(string filter, string maxDocuments, string skipCount)
|
||||||
|
{
|
||||||
|
this.filter = filter;
|
||||||
|
this.maxDocuments = maxDocuments;
|
||||||
|
this.skipCount = skipCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getUnfiledDocsResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getUnfiledDocsResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("object", IsNullable=false)]
|
||||||
|
public documentObjectType[] documentCollection;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public bool hasMoreItems;
|
||||||
|
|
||||||
|
public getUnfiledDocsResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getUnfiledDocsResponse(documentObjectType[] documentCollection, bool hasMoreItems)
|
||||||
|
{
|
||||||
|
this.documentCollection = documentCollection;
|
||||||
|
this.hasMoreItems = hasMoreItems;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
public interface NavigationServicePortChannel : NavigationServicePort, System.ServiceModel.IClientChannel
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
public partial class NavigationServicePortClient : System.ServiceModel.ClientBase<NavigationServicePort>, NavigationServicePort
|
||||||
|
{
|
||||||
|
|
||||||
|
public NavigationServicePortClient()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public NavigationServicePortClient(string endpointConfigurationName) :
|
||||||
|
base(endpointConfigurationName)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public NavigationServicePortClient(string endpointConfigurationName, string remoteAddress) :
|
||||||
|
base(endpointConfigurationName, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public NavigationServicePortClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||||
|
base(endpointConfigurationName, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public NavigationServicePortClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||||
|
base(binding, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getDescendantsResponse NavigationServicePort.getDescendants(getDescendants request)
|
||||||
|
{
|
||||||
|
return base.Channel.getDescendants(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public documentOrFolderObjectType[] getDescendants(string folderId, typesOfObjectsEnum type, object depth, string filter)
|
||||||
|
{
|
||||||
|
getDescendants inValue = new getDescendants();
|
||||||
|
inValue.folderId = folderId;
|
||||||
|
inValue.type = type;
|
||||||
|
inValue.depth = depth;
|
||||||
|
inValue.filter = filter;
|
||||||
|
getDescendantsResponse retVal = ((NavigationServicePort)(this)).getDescendants(inValue);
|
||||||
|
return retVal.documentAndFolderCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getCheckedoutDocsResponse NavigationServicePort.getCheckedoutDocs(getCheckedoutDocs request)
|
||||||
|
{
|
||||||
|
return base.Channel.getCheckedoutDocs(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public documentObjectType[] getCheckedoutDocs(string filter, string maxItems, string skipCount, string folderID, out bool hasMoreItems)
|
||||||
|
{
|
||||||
|
getCheckedoutDocs inValue = new getCheckedoutDocs();
|
||||||
|
inValue.filter = filter;
|
||||||
|
inValue.maxItems = maxItems;
|
||||||
|
inValue.skipCount = skipCount;
|
||||||
|
inValue.folderID = folderID;
|
||||||
|
getCheckedoutDocsResponse retVal = ((NavigationServicePort)(this)).getCheckedoutDocs(inValue);
|
||||||
|
hasMoreItems = retVal.hasMoreItems;
|
||||||
|
return retVal.documentCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getDocumentParentsResponse NavigationServicePort.getDocumentParents(getDocumentParents request)
|
||||||
|
{
|
||||||
|
return base.Channel.getDocumentParents(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public folderObjectType[] getDocumentParents(string documentId, string filter)
|
||||||
|
{
|
||||||
|
getDocumentParents inValue = new getDocumentParents();
|
||||||
|
inValue.documentId = documentId;
|
||||||
|
inValue.filter = filter;
|
||||||
|
getDocumentParentsResponse retVal = ((NavigationServicePort)(this)).getDocumentParents(inValue);
|
||||||
|
return retVal.folderCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getChildrenResponse NavigationServicePort.getChildren(getChildren request)
|
||||||
|
{
|
||||||
|
return base.Channel.getChildren(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public documentOrFolderObjectType[] getChildren(string folderId, typesOfObjectsEnum type, string filter, string maxItems, string skipCount, out bool hasMoreItems)
|
||||||
|
{
|
||||||
|
getChildren inValue = new getChildren();
|
||||||
|
inValue.folderId = folderId;
|
||||||
|
inValue.type = type;
|
||||||
|
inValue.filter = filter;
|
||||||
|
inValue.maxItems = maxItems;
|
||||||
|
inValue.skipCount = skipCount;
|
||||||
|
getChildrenResponse retVal = ((NavigationServicePort)(this)).getChildren(inValue);
|
||||||
|
hasMoreItems = retVal.hasMoreItems;
|
||||||
|
return retVal.documentAndFolderCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getFolderParentResponse NavigationServicePort.getFolderParent(getFolderParent request)
|
||||||
|
{
|
||||||
|
return base.Channel.getFolderParent(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public folderObjectType[] getFolderParent(string folderId, string filter, bool returnToRoot)
|
||||||
|
{
|
||||||
|
getFolderParent inValue = new getFolderParent();
|
||||||
|
inValue.folderId = folderId;
|
||||||
|
inValue.filter = filter;
|
||||||
|
inValue.returnToRoot = returnToRoot;
|
||||||
|
getFolderParentResponse retVal = ((NavigationServicePort)(this)).getFolderParent(inValue);
|
||||||
|
return retVal.folderCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getUnfiledDocsResponse NavigationServicePort.getUnfiledDocs(getUnfiledDocs request)
|
||||||
|
{
|
||||||
|
return base.Channel.getUnfiledDocs(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public documentObjectType[] getUnfiledDocs(string filter, string maxDocuments, string skipCount, out bool hasMoreItems)
|
||||||
|
{
|
||||||
|
getUnfiledDocs inValue = new getUnfiledDocs();
|
||||||
|
inValue.filter = filter;
|
||||||
|
inValue.maxDocuments = maxDocuments;
|
||||||
|
inValue.skipCount = skipCount;
|
||||||
|
getUnfiledDocsResponse retVal = ((NavigationServicePort)(this)).getUnfiledDocs(inValue);
|
||||||
|
hasMoreItems = retVal.hasMoreItems;
|
||||||
|
return retVal.documentCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
643
source/sample/WcfCmisTest/src/ObjectService.cs
Executable file
643
source/sample/WcfCmisTest/src/ObjectService.cs
Executable file
@@ -0,0 +1,643 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Runtime Version:2.0.50727.1433
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
[assembly: System.Runtime.Serialization.ContractNamespaceAttribute("http://www.cmis.org/ns/1.0", ClrNamespace="www.cmis.org.ns._1._01")]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.ServiceContractAttribute(Namespace="http://www.cmis.org/ns/1.0", ConfigurationName="ObjectServicePort")]
|
||||||
|
public interface ObjectServicePort
|
||||||
|
{
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'failedToDelete' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="failedToDelete")]
|
||||||
|
deleteTreeResponse deleteTree(deleteTree request);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'allowableActionCollection' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlArrayItemAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="allowableActionCollection")]
|
||||||
|
getAllowableActionsResponse getAllowableActions(getAllowableActions request);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="NotInFolderException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
void moveObject(string objectId, string folderId, string sourceFolderId);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StorageException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StreamNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
void deleteContentStream(string documentId);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="TypeNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="objectId")]
|
||||||
|
string createFolder(string typeId, folderObjectType propertyCollection, string folderId);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
void updateProperties(string objectId, string changeToken, documentFolderOrRelationshipObjectType @object);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StorageException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StreamNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="TypeNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FolderNotValidException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="objectId")]
|
||||||
|
string createDocument(string typeId, documentObjectType propertyCollection, string folderId, contentStream contentStream, versioningStateEnum versioningState);
|
||||||
|
|
||||||
|
// CODEGEN: Parameter 'stream' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'.
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StorageException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StreamNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OffsetException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="stream")]
|
||||||
|
getContentStreamResponse getContentStream(getContentStream request);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="TypeNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="objectId")]
|
||||||
|
string createRelationship(string typeId, relationshipObjectType propertyCollection, string sourceObjectId, string targetObjectId);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StorageException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="StreamNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="AlreadyExistsException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
void setContentStream(string documentId, bool overwriteFlag, contentStream contentStream);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConstraintViolationException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
void deleteObject(string objectId);
|
||||||
|
|
||||||
|
[System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="InvalidArgumentException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="FilterNotValidException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="RuntimeException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ObjectNotFoundException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="PermissionDeniedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="OperationNotSupportedException")]
|
||||||
|
[System.ServiceModel.FaultContractAttribute(typeof(object), Action="", Name="ConcurrencyException")]
|
||||||
|
[System.ServiceModel.XmlSerializerFormatAttribute()]
|
||||||
|
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(objectTypeBase))]
|
||||||
|
[return: System.ServiceModel.MessageParameterAttribute(Name="object")]
|
||||||
|
documentFolderOrRelationshipObjectType getProperties(string objectId, versionEnum returnVersion, string filter);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public enum deleteWithMultiFilingEnum
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
unfile,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
deleteSingleFiledDocs,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
delete,
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="deleteTree", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class deleteTree
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string folderId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public deleteWithMultiFilingEnum unfileMultiFiledDocuments;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
public bool continueOnFailure;
|
||||||
|
|
||||||
|
public deleteTree()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public deleteTree(string folderId, deleteWithMultiFilingEnum unfileMultiFiledDocuments, bool continueOnFailure)
|
||||||
|
{
|
||||||
|
this.folderId = folderId;
|
||||||
|
this.unfileMultiFiledDocuments = unfileMultiFiledDocuments;
|
||||||
|
this.continueOnFailure = continueOnFailure;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="deleteTreeResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class deleteTreeResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("objectId", IsNullable=false)]
|
||||||
|
public string[] failedToDelete;
|
||||||
|
|
||||||
|
public deleteTreeResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public deleteTreeResponse(string[] failedToDelete)
|
||||||
|
{
|
||||||
|
this.failedToDelete = failedToDelete;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public enum allowableActionsEnum
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
viewContent,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
updateProperties,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
setContent,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
removeFromFolder,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
move,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
getRelationships,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
getProperties,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
getParents,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
getChilderen,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
getAllVersions,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
deleteVersion,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
deleteContent,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
delete,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
checkOut,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
checkIn,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
cancelCheckOut,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
addToFolder,
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getAllowableActions", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getAllowableActions
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string objectId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
public string asUser;
|
||||||
|
|
||||||
|
public getAllowableActions()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getAllowableActions(string objectId, string asUser)
|
||||||
|
{
|
||||||
|
this.objectId = objectId;
|
||||||
|
this.asUser = asUser;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getAllowableActionsResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getAllowableActionsResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlArrayItemAttribute("action", IsNullable=false)]
|
||||||
|
public allowableActionsEnum[] allowableActionCollection;
|
||||||
|
|
||||||
|
public getAllowableActionsResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getAllowableActionsResponse(allowableActionsEnum[] allowableActionCollection)
|
||||||
|
{
|
||||||
|
this.allowableActionCollection = allowableActionCollection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public partial class contentStream
|
||||||
|
{
|
||||||
|
|
||||||
|
private string mimeTypeField;
|
||||||
|
|
||||||
|
private string nameField;
|
||||||
|
|
||||||
|
private string uriField;
|
||||||
|
|
||||||
|
private byte[] streamField;
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=0)]
|
||||||
|
public string mimeType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.mimeTypeField;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.mimeTypeField = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=1)]
|
||||||
|
public string name
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.nameField;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.nameField = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(Order=2)]
|
||||||
|
public string uri
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.uriField;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.uriField = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", Order=3)]
|
||||||
|
public byte[] stream
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.streamField;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this.streamField = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public enum versioningStateEnum
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
checkedOut,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
checkedInMinor,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
checkedInMajor,
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getContentStream", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getContentStream
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
public string documentId;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=1)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string offset;
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=2)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
|
||||||
|
public string length;
|
||||||
|
|
||||||
|
public getContentStream()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getContentStream(string documentId, string offset, string length)
|
||||||
|
{
|
||||||
|
this.documentId = documentId;
|
||||||
|
this.offset = offset;
|
||||||
|
this.length = length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
[System.ServiceModel.MessageContractAttribute(WrapperName="getContentStreamResponse", WrapperNamespace="http://www.cmis.org/ns/1.0", IsWrapped=true)]
|
||||||
|
public partial class getContentStreamResponse
|
||||||
|
{
|
||||||
|
|
||||||
|
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://www.cmis.org/ns/1.0", Order=0)]
|
||||||
|
[System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
|
||||||
|
public byte[] stream;
|
||||||
|
|
||||||
|
public getContentStreamResponse()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public getContentStreamResponse(byte[] stream)
|
||||||
|
{
|
||||||
|
this.stream = stream;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", "3.0.4506.648")]
|
||||||
|
[System.SerializableAttribute()]
|
||||||
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.cmis.org/ns/1.0")]
|
||||||
|
public enum versionEnum
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
@this,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
latestMajor,
|
||||||
|
|
||||||
|
/// <remarks/>
|
||||||
|
latest,
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
public interface ObjectServicePortChannel : ObjectServicePort, System.ServiceModel.IClientChannel
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
|
||||||
|
public partial class ObjectServicePortClient : System.ServiceModel.ClientBase<ObjectServicePort>, ObjectServicePort
|
||||||
|
{
|
||||||
|
|
||||||
|
public ObjectServicePortClient()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectServicePortClient(string endpointConfigurationName) :
|
||||||
|
base(endpointConfigurationName)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectServicePortClient(string endpointConfigurationName, string remoteAddress) :
|
||||||
|
base(endpointConfigurationName, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectServicePortClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||||
|
base(endpointConfigurationName, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObjectServicePortClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
||||||
|
base(binding, remoteAddress)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
deleteTreeResponse ObjectServicePort.deleteTree(deleteTree request)
|
||||||
|
{
|
||||||
|
return base.Channel.deleteTree(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string[] deleteTree(string folderId, deleteWithMultiFilingEnum unfileMultiFiledDocuments, bool continueOnFailure)
|
||||||
|
{
|
||||||
|
deleteTree inValue = new deleteTree();
|
||||||
|
inValue.folderId = folderId;
|
||||||
|
inValue.unfileMultiFiledDocuments = unfileMultiFiledDocuments;
|
||||||
|
inValue.continueOnFailure = continueOnFailure;
|
||||||
|
deleteTreeResponse retVal = ((ObjectServicePort)(this)).deleteTree(inValue);
|
||||||
|
return retVal.failedToDelete;
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getAllowableActionsResponse ObjectServicePort.getAllowableActions(getAllowableActions request)
|
||||||
|
{
|
||||||
|
return base.Channel.getAllowableActions(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public allowableActionsEnum[] getAllowableActions(string objectId, string asUser)
|
||||||
|
{
|
||||||
|
getAllowableActions inValue = new getAllowableActions();
|
||||||
|
inValue.objectId = objectId;
|
||||||
|
inValue.asUser = asUser;
|
||||||
|
getAllowableActionsResponse retVal = ((ObjectServicePort)(this)).getAllowableActions(inValue);
|
||||||
|
return retVal.allowableActionCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void moveObject(string objectId, string folderId, string sourceFolderId)
|
||||||
|
{
|
||||||
|
base.Channel.moveObject(objectId, folderId, sourceFolderId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteContentStream(string documentId)
|
||||||
|
{
|
||||||
|
base.Channel.deleteContentStream(documentId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string createFolder(string typeId, folderObjectType propertyCollection, string folderId)
|
||||||
|
{
|
||||||
|
return base.Channel.createFolder(typeId, propertyCollection, folderId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void updateProperties(string objectId, string changeToken, documentFolderOrRelationshipObjectType @object)
|
||||||
|
{
|
||||||
|
base.Channel.updateProperties(objectId, changeToken, @object);
|
||||||
|
}
|
||||||
|
|
||||||
|
public string createDocument(string typeId, documentObjectType propertyCollection, string folderId, contentStream contentStream, versioningStateEnum versioningState)
|
||||||
|
{
|
||||||
|
return base.Channel.createDocument(typeId, propertyCollection, folderId, contentStream, versioningState);
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
getContentStreamResponse ObjectServicePort.getContentStream(getContentStream request)
|
||||||
|
{
|
||||||
|
return base.Channel.getContentStream(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] getContentStream(string documentId, string offset, string length)
|
||||||
|
{
|
||||||
|
getContentStream inValue = new getContentStream();
|
||||||
|
inValue.documentId = documentId;
|
||||||
|
inValue.offset = offset;
|
||||||
|
inValue.length = length;
|
||||||
|
getContentStreamResponse retVal = ((ObjectServicePort)(this)).getContentStream(inValue);
|
||||||
|
return retVal.stream;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string createRelationship(string typeId, relationshipObjectType propertyCollection, string sourceObjectId, string targetObjectId)
|
||||||
|
{
|
||||||
|
return base.Channel.createRelationship(typeId, propertyCollection, sourceObjectId, targetObjectId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContentStream(string documentId, bool overwriteFlag, contentStream contentStream)
|
||||||
|
{
|
||||||
|
base.Channel.setContentStream(documentId, overwriteFlag, contentStream);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void deleteObject(string objectId)
|
||||||
|
{
|
||||||
|
base.Channel.deleteObject(objectId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public documentFolderOrRelationshipObjectType getProperties(string objectId, versionEnum returnVersion, string filter)
|
||||||
|
{
|
||||||
|
return base.Channel.getProperties(objectId, returnVersion, filter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
namespace www.cmis.org.ns._1._01
|
||||||
|
{
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
|
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||||
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
|
||||||
|
[System.Runtime.Serialization.CollectionDataContractAttribute(Name="failedToDelete", Namespace="http://www.cmis.org/ns/1.0", ItemName="objectId")]
|
||||||
|
public class failedToDelete : System.Collections.Generic.List<string>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
118
source/sample/WcfCmisTest/src/Program.cs
Executable file
118
source/sample/WcfCmisTest/src/Program.cs
Executable file
@@ -0,0 +1,118 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Web.Services;
|
||||||
|
using System.Web.Services.Protocols;
|
||||||
|
using System.Net;
|
||||||
|
using System.ServiceModel;
|
||||||
|
using System.ServiceModel.Security;
|
||||||
|
using System.ServiceModel.Security.Tokens;
|
||||||
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
using System.Net.Security;
|
||||||
|
using System.ServiceModel.Channels;
|
||||||
|
using www.cmis.org.ns._1._01;
|
||||||
|
|
||||||
|
namespace CmisTest
|
||||||
|
{
|
||||||
|
class Program
|
||||||
|
{
|
||||||
|
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
RepositoryServicePortClient repositoryService = new RepositoryServicePortClient();
|
||||||
|
repositoryService.ClientCredentials.UserName.UserName = "admin";
|
||||||
|
repositoryService.ClientCredentials.UserName.Password = "admin";
|
||||||
|
|
||||||
|
NavigationServicePortClient navigationService = new NavigationServicePortClient();
|
||||||
|
navigationService.ClientCredentials.UserName.UserName = "admin";
|
||||||
|
navigationService.ClientCredentials.UserName.Password = "admin";
|
||||||
|
|
||||||
|
ObjectServicePortClient objectService = new ObjectServicePortClient();
|
||||||
|
objectService.ClientCredentials.UserName.UserName = "admin";
|
||||||
|
objectService.ClientCredentials.UserName.Password = "admin";
|
||||||
|
|
||||||
|
folderObjectType rootFolder = repositoryService.getRootFolder("*");
|
||||||
|
Console.WriteLine("Root folder OID = {0}\n", rootFolder.objectID);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
repositoryService.getRootFolder("a");
|
||||||
|
}
|
||||||
|
catch (FaultException<basicFault> e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
objectService.getProperties(rootFolder + "1", versionEnum.@this, "*");
|
||||||
|
}
|
||||||
|
catch (FaultException e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool hasMoreItems;
|
||||||
|
documentOrFolderObjectType[] rootFolderListing = navigationService.getChildren(rootFolder.objectID, typesOfObjectsEnum.FoldersAndDocumets, "*", null, null,
|
||||||
|
out hasMoreItems);
|
||||||
|
|
||||||
|
string guestFolderOID = null;
|
||||||
|
|
||||||
|
Console.WriteLine("Root folder listing: ");
|
||||||
|
foreach (documentOrFolderObjectType docFolder in rootFolderListing)
|
||||||
|
{
|
||||||
|
if (docFolder.name == "Guest Home")
|
||||||
|
{
|
||||||
|
guestFolderOID = docFolder.objectID;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine(docFolder.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (guestFolderOID != null)
|
||||||
|
{
|
||||||
|
Console.Write("\nGet children for bad OID, error : ");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
navigationService.getChildren(guestFolderOID + 1, typesOfObjectsEnum.FoldersAndDocumets, "*", null, null,
|
||||||
|
out hasMoreItems);
|
||||||
|
}
|
||||||
|
catch (FaultException e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
documentOrFolderObjectType[] guestFolderListing =
|
||||||
|
navigationService.getChildren(guestFolderOID, typesOfObjectsEnum.FoldersAndDocumets, "*", null, null,
|
||||||
|
out hasMoreItems);
|
||||||
|
|
||||||
|
string alfrescoTutOID = null;
|
||||||
|
|
||||||
|
Console.WriteLine("\nGuest folder listing: ");
|
||||||
|
foreach (documentOrFolderObjectType docFolder in guestFolderListing)
|
||||||
|
{
|
||||||
|
if (docFolder.name == "Alfresco-Tutorial.pdf")
|
||||||
|
{
|
||||||
|
alfrescoTutOID = docFolder.objectID;
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine(docFolder.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (alfrescoTutOID != null)
|
||||||
|
{
|
||||||
|
byte[] bytes = objectService.getContentStream(alfrescoTutOID, null, "100");
|
||||||
|
Console.WriteLine("\nAlfresco-Tutorial.pdf retrieved");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
36
source/sample/WcfCmisTest/src/Properties/AssemblyInfo.cs
Executable file
36
source/sample/WcfCmisTest/src/Properties/AssemblyInfo.cs
Executable file
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("CmisTest")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("UTL")]
|
||||||
|
[assembly: AssemblyProduct("CmisTest")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © UTL 2008")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
|
// to COM components. If you need to access a type in this assembly from
|
||||||
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
[assembly: Guid("43cb4231-e775-417e-bc2c-4fd2d6ed15ea")]
|
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values:
|
||||||
|
//
|
||||||
|
// Major Version
|
||||||
|
// Minor Version
|
||||||
|
// Build Number
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
// by using the '*' as shown below:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
1996
source/sample/WcfCmisTest/src/RepositoryService.cs
Executable file
1996
source/sample/WcfCmisTest/src/RepositoryService.cs
Executable file
File diff suppressed because it is too large
Load Diff
38
source/sample/WcfCmisTest/src/app.config
Executable file
38
source/sample/WcfCmisTest/src/app.config
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<system.serviceModel>
|
||||||
|
<bindings>
|
||||||
|
<basicHttpBinding>
|
||||||
|
<binding name="RepositoryServiceSoapBinding" messageEncoding="Text">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
<binding name="NavigationServiceSoapBinding" messageEncoding="Text">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
<binding name="ObjectServiceSoapBinding" messageEncoding="Mtom">
|
||||||
|
<security mode="TransportWithMessageCredential">
|
||||||
|
<transport />
|
||||||
|
<message clientCredentialType="UserName" />
|
||||||
|
</security>
|
||||||
|
</binding>
|
||||||
|
</basicHttpBinding>
|
||||||
|
</bindings>
|
||||||
|
<client>
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/RepositoryService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="RepositoryServiceSoapBinding"
|
||||||
|
contract="RepositoryServicePort" name="RepositoryServicePort" />
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/NavigationService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="NavigationServiceSoapBinding"
|
||||||
|
contract="NavigationServicePort" name="NavigationServicePort" />
|
||||||
|
<endpoint address="https://localhost:8443/alfresco/cmis/ObjectService"
|
||||||
|
binding="basicHttpBinding" bindingConfiguration="ObjectServiceSoapBinding"
|
||||||
|
contract="ObjectServicePort" name="ObjectServicePort" />
|
||||||
|
</client>
|
||||||
|
</system.serviceModel>
|
||||||
|
</configuration>
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user