WIP: EDMI Service
This commit is contained in:
parent
a20c0eb4b0
commit
62e4e409a6
@ -52,7 +52,7 @@ Public Class Form1
|
|||||||
Await oStream.ReadAsync(oContents, 0, oFileInfo.Length)
|
Await oStream.ReadAsync(oContents, 0, oFileInfo.Length)
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
Dim oResult As EDMIServiceReference.DocumentResult2 = Await _Channel.ImportFileAsync(oFileInfo.Name, oContents, Environment.UserName)
|
Dim oResult As EDMIServiceReference.DocumentResult = Await _Channel.ImportFileAsync(oFileInfo.Name, oContents, Environment.UserName)
|
||||||
If oResult.OK Then
|
If oResult.OK Then
|
||||||
listboxLog.Items.Add($"File [{oFileInfo.Name}] with Id [{oResult.Document.FileId}] imported!")
|
listboxLog.Items.Add($"File [{oFileInfo.Name}] with Id [{oResult.Document.FileId}] imported!")
|
||||||
Else
|
Else
|
||||||
@ -121,14 +121,14 @@ Public Class Form1
|
|||||||
|
|
||||||
Dim oObjectId As Integer = TextboxObejctId.EditValue
|
Dim oObjectId As Integer = TextboxObejctId.EditValue
|
||||||
|
|
||||||
Dim oStream = Await _Channel.GetFileByObjectIdAsync(oObjectId)
|
Dim oResponse = Await _Channel.GetFileByObjectIdAsync(New EDMIServiceReference.DocumentStreamRequest() With {.ObjectId = oObjectId})
|
||||||
Dim oMemoryStream As New MemoryStream()
|
Dim oMemoryStream As New MemoryStream()
|
||||||
oStream.CopyTo(oMemoryStream)
|
oResponse.FileContents.CopyTo(oMemoryStream)
|
||||||
oMemoryStream.Position = 0
|
oMemoryStream.Position = 0
|
||||||
|
|
||||||
listboxLog.Items.Add("Stream read!")
|
listboxLog.Items.Add("Stream read!")
|
||||||
|
|
||||||
DocumentViewer1.LoadFile("textfile.png", oMemoryStream)
|
DocumentViewer1.LoadFile(oResponse.FileName, oMemoryStream)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Uh oh!")
|
MsgBox(ex.Message, MsgBoxStyle.Critical, "Uh oh!")
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
@ -5,6 +5,6 @@
|
|||||||
Renaming the file extension or editing the content of this file may
|
Renaming the file extension or editing the content of this file may
|
||||||
cause the file to be unrecognizable by the program.
|
cause the file to be unrecognizable by the program.
|
||||||
-->
|
-->
|
||||||
<GenericObjectDataSource DisplayName="DocumentResult2" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
<GenericObjectDataSource DisplayName="DocumentResultOld" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
<TypeInfo>DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResult2, Connected Services.EDMIServiceReference.Reference.vb.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
<TypeInfo>DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResultOld, Connected Services.EDMIServiceReference.Reference.vb.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||||
</GenericObjectDataSource>
|
</GenericObjectDataSource>
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
This file is automatically generated by Visual Studio .Net. It is
|
||||||
|
used to store generic object data source configuration information.
|
||||||
|
Renaming the file extension or editing the content of this file may
|
||||||
|
cause the file to be unrecognizable by the program.
|
||||||
|
-->
|
||||||
|
<GenericObjectDataSource DisplayName="DocumentStreamResponse" Version="1.0" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
|
<TypeInfo>DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentStreamResponse, Connected Services.EDMIServiceReference.Reference.vb.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</TypeInfo>
|
||||||
|
</GenericObjectDataSource>
|
||||||
@ -89,11 +89,14 @@
|
|||||||
<wsdl:message name="IEDMIService_ImportFile_OutputMessage">
|
<wsdl:message name="IEDMIService_ImportFile_OutputMessage">
|
||||||
<wsdl:part name="parameters" element="tns:ImportFileResponse" />
|
<wsdl:part name="parameters" element="tns:ImportFileResponse" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
<wsdl:message name="IEDMIService_GetFileByObjectId_InputMessage">
|
<wsdl:message name="DocumentStreamRequest">
|
||||||
<wsdl:part name="parameters" element="tns:GetFileByObjectId" />
|
<wsdl:part name="parameters" element="tns:DocumentStreamRequest" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
<wsdl:message name="IEDMIService_GetFileByObjectId_OutputMessage">
|
<wsdl:message name="DocumentStreamResponse">
|
||||||
<wsdl:part name="parameters" element="tns:GetFileByObjectIdResponse" />
|
<wsdl:part name="parameters" element="tns:DocumentStreamResponse" />
|
||||||
|
</wsdl:message>
|
||||||
|
<wsdl:message name="DocumentStreamResponse_Headers">
|
||||||
|
<wsdl:part name="FileName" element="tns:FileName" />
|
||||||
</wsdl:message>
|
</wsdl:message>
|
||||||
<wsdl:message name="IEDMIService_NewFileIndex_InputMessage">
|
<wsdl:message name="IEDMIService_NewFileIndex_InputMessage">
|
||||||
<wsdl:part name="parameters" element="tns:NewFileIndex" />
|
<wsdl:part name="parameters" element="tns:NewFileIndex" />
|
||||||
@ -155,8 +158,8 @@
|
|||||||
<wsdl:output wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse" message="tns:IEDMIService_ImportFile_OutputMessage" />
|
<wsdl:output wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse" message="tns:IEDMIService_ImportFile_OutputMessage" />
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
<wsdl:operation name="GetFileByObjectId">
|
<wsdl:operation name="GetFileByObjectId">
|
||||||
<wsdl:input wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId" message="tns:IEDMIService_GetFileByObjectId_InputMessage" />
|
<wsdl:input wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId" name="DocumentStreamRequest" message="tns:DocumentStreamRequest" />
|
||||||
<wsdl:output wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse" message="tns:IEDMIService_GetFileByObjectId_OutputMessage" />
|
<wsdl:output wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse" name="DocumentStreamResponse" message="tns:DocumentStreamResponse" />
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
<wsdl:operation name="NewFileIndex">
|
<wsdl:operation name="NewFileIndex">
|
||||||
<wsdl:input wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndex" message="tns:IEDMIService_NewFileIndex_InputMessage" />
|
<wsdl:input wsaw:Action="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndex" message="tns:IEDMIService_NewFileIndex_InputMessage" />
|
||||||
|
|||||||
@ -93,7 +93,7 @@
|
|||||||
<xs:element name="NewFileResponse">
|
<xs:element name="NewFileResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="NewFileResult" nillable="true" type="q4:DocumentResult" />
|
<xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="NewFileResult" nillable="true" type="q4:DocumentResultOld" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -108,7 +108,7 @@
|
|||||||
<xs:element name="UpdateFileResponse">
|
<xs:element name="UpdateFileResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="UpdateFileResult" nillable="true" type="q6:DocumentResult" />
|
<xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="UpdateFileResult" nillable="true" type="q6:DocumentResultOld" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<xs:element name="GetFileResponse">
|
<xs:element name="GetFileResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetFileResult" nillable="true" type="q8:DocumentResult" />
|
<xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetFileResult" nillable="true" type="q8:DocumentResultOld" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
<xs:element name="GetDocumentByDocumentIdResponse">
|
<xs:element name="GetDocumentByDocumentIdResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetDocumentByDocumentIdResult" nillable="true" type="q10:DocumentResult" />
|
<xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetDocumentByDocumentIdResult" nillable="true" type="q10:DocumentResultOld" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -164,7 +164,7 @@
|
|||||||
<xs:element name="GetDocumentByContainerIdResponse">
|
<xs:element name="GetDocumentByContainerIdResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetDocumentByContainerIdResult" nillable="true" type="q11:DocumentResult" />
|
<xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="GetDocumentByContainerIdResult" nillable="true" type="q11:DocumentResultOld" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
@ -180,24 +180,25 @@
|
|||||||
<xs:element name="ImportFileResponse">
|
<xs:element name="ImportFileResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="ImportFileResult" nillable="true" type="q12:DocumentResult2" />
|
<xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService" minOccurs="0" name="ImportFileResult" nillable="true" type="q12:DocumentResult" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="GetFileByObjectId">
|
<xs:element name="DocumentStreamRequest">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element minOccurs="0" name="ObjectId" type="xs:long" />
|
<xs:element minOccurs="0" name="ObjectId" type="xs:long" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="GetFileByObjectIdResponse">
|
<xs:element name="DocumentStreamResponse">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element xmlns:q13="http://schemas.microsoft.com/Message" name="GetFileByObjectIdResult" type="q13:StreamBody" />
|
<xs:element xmlns:q13="http://schemas.microsoft.com/Message" name="FileContents" type="q13:StreamBody" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
<xs:element name="FileName" nillable="true" type="xs:string" />
|
||||||
<xs:element name="NewFileIndex">
|
<xs:element name="NewFileIndex">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
</xs:complexContent>
|
</xs:complexContent>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="NonQueryResult" nillable="true" type="tns:NonQueryResult" />
|
<xs:element name="NonQueryResult" nillable="true" type="tns:NonQueryResult" />
|
||||||
<xs:complexType name="DocumentResult">
|
<xs:complexType name="DocumentResultOld">
|
||||||
<xs:complexContent mixed="false">
|
<xs:complexContent mixed="false">
|
||||||
<xs:extension base="tns:BaseResult">
|
<xs:extension base="tns:BaseResult">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
@ -60,26 +60,26 @@
|
|||||||
</xs:extension>
|
</xs:extension>
|
||||||
</xs:complexContent>
|
</xs:complexContent>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="DocumentResult" nillable="true" type="tns:DocumentResult" />
|
<xs:element name="DocumentResultOld" nillable="true" type="tns:DocumentResultOld" />
|
||||||
<xs:complexType name="DocumentResult2">
|
<xs:complexType name="DocumentResult">
|
||||||
<xs:complexContent mixed="false">
|
<xs:complexContent mixed="false">
|
||||||
<xs:extension base="tns:BaseResult">
|
<xs:extension base="tns:BaseResult">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="Contents" nillable="true" type="xs:base64Binary" />
|
<xs:element name="Contents" nillable="true" type="xs:base64Binary" />
|
||||||
<xs:element name="Document" nillable="true" type="tns:DocumentResult2.DocumentObject" />
|
<xs:element name="Document" nillable="true" type="tns:DocumentResult.DocumentObject" />
|
||||||
<xs:element name="HasContents" type="xs:boolean" />
|
<xs:element name="HasContents" type="xs:boolean" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:extension>
|
</xs:extension>
|
||||||
</xs:complexContent>
|
</xs:complexContent>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="DocumentResult2" nillable="true" type="tns:DocumentResult2" />
|
<xs:element name="DocumentResult" nillable="true" type="tns:DocumentResult" />
|
||||||
<xs:complexType name="DocumentResult2.DocumentObject">
|
<xs:complexType name="DocumentResult.DocumentObject">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element minOccurs="0" name="FileId" nillable="true" type="xs:string" />
|
<xs:element minOccurs="0" name="FileId" nillable="true" type="xs:string" />
|
||||||
<xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
|
<xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="DocumentResult2.DocumentObject" nillable="true" type="tns:DocumentResult2.DocumentObject" />
|
<xs:element name="DocumentResult.DocumentObject" nillable="true" type="tns:DocumentResult.DocumentObject" />
|
||||||
<xs:complexType name="IndexResult">
|
<xs:complexType name="IndexResult">
|
||||||
<xs:complexContent mixed="false">
|
<xs:complexContent mixed="false">
|
||||||
<xs:extension base="tns:BaseResult">
|
<xs:extension base="tns:BaseResult">
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<MetadataFile FileName="System.xsd" MetadataType="Schema" ID="e0db7004-6943-4cf8-b88f-4811ed14a341" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
<MetadataFile FileName="System.xsd" MetadataType="Schema" ID="e0db7004-6943-4cf8-b88f-4811ed14a341" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
||||||
<MetadataFile FileName="System.Data.xsd" MetadataType="Schema" ID="6c7bdb47-eea4-4d03-bc52-9747c865bbf0" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
<MetadataFile FileName="System.Data.xsd" MetadataType="Schema" ID="6c7bdb47-eea4-4d03-bc52-9747c865bbf0" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
||||||
<MetadataFile FileName="DigitalData.Modules.Filesystem.xsd" MetadataType="Schema" ID="cfa7fe70-b4f1-4a12-a957-d0134a8e6279" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
<MetadataFile FileName="DigitalData.Modules.Filesystem.xsd" MetadataType="Schema" ID="cfa7fe70-b4f1-4a12-a957-d0134a8e6279" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
||||||
<MetadataFile FileName="Message.xsd" MetadataType="Schema" ID="4c8d0244-6e40-4635-b3d5-0a75aad0332e" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
<MetadataFile FileName="Message.xsd" MetadataType="Schema" ID="2589e82f-d68f-4843-b153-a80edf895f82" SourceId="1" SourceUrl="net.tcp://172.24.12.39:9000/DigitalData/Services/Main/mex" />
|
||||||
</Metadata>
|
</Metadata>
|
||||||
<Extensions>
|
<Extensions>
|
||||||
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
|
<ExtensionFile FileName="configuration91.svcinfo" Name="configuration91.svcinfo" />
|
||||||
|
|||||||
@ -22,8 +22,8 @@ Namespace EDMIServiceReference
|
|||||||
System.SerializableAttribute(), _
|
System.SerializableAttribute(), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.ScalarResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.ScalarResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.NonQueryResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.NonQueryResult)), _
|
||||||
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResultOld)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult2)), _
|
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.IndexResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.IndexResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.TableResult))> _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.TableResult))> _
|
||||||
Partial Public Class BaseResult
|
Partial Public Class BaseResult
|
||||||
@ -92,9 +92,9 @@ Namespace EDMIServiceReference
|
|||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.TableResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.TableResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.BaseResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.BaseResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.NonQueryResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.NonQueryResult)), _
|
||||||
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResultOld)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult2)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult.DocumentObject)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentResult2.DocumentObject)), _
|
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.IndexResult)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.IndexResult)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(System.DBNull)), _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(System.DBNull)), _
|
||||||
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentObject))> _
|
System.Runtime.Serialization.KnownTypeAttribute(GetType(EDMIServiceReference.DocumentObject))> _
|
||||||
@ -128,9 +128,9 @@ Namespace EDMIServiceReference
|
|||||||
|
|
||||||
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
||||||
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
||||||
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResult", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResultOld", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
||||||
System.SerializableAttribute()> _
|
System.SerializableAttribute()> _
|
||||||
Partial Public Class DocumentResult
|
Partial Public Class DocumentResultOld
|
||||||
Inherits EDMIServiceReference.BaseResult
|
Inherits EDMIServiceReference.BaseResult
|
||||||
|
|
||||||
Private ContentsField() As Byte
|
Private ContentsField() As Byte
|
||||||
@ -181,14 +181,14 @@ Namespace EDMIServiceReference
|
|||||||
|
|
||||||
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
||||||
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
||||||
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResult2", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResult", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
||||||
System.SerializableAttribute()> _
|
System.SerializableAttribute()> _
|
||||||
Partial Public Class DocumentResult2
|
Partial Public Class DocumentResult
|
||||||
Inherits EDMIServiceReference.BaseResult
|
Inherits EDMIServiceReference.BaseResult
|
||||||
|
|
||||||
Private ContentsField() As Byte
|
Private ContentsField() As Byte
|
||||||
|
|
||||||
Private DocumentField As EDMIServiceReference.DocumentResult2.DocumentObject
|
Private DocumentField As EDMIServiceReference.DocumentResult.DocumentObject
|
||||||
|
|
||||||
Private HasContentsField As Boolean
|
Private HasContentsField As Boolean
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ Namespace EDMIServiceReference
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
<System.Runtime.Serialization.DataMemberAttribute(IsRequired:=true)> _
|
<System.Runtime.Serialization.DataMemberAttribute(IsRequired:=true)> _
|
||||||
Public Property Document() As EDMIServiceReference.DocumentResult2.DocumentObject
|
Public Property Document() As EDMIServiceReference.DocumentResult.DocumentObject
|
||||||
Get
|
Get
|
||||||
Return Me.DocumentField
|
Return Me.DocumentField
|
||||||
End Get
|
End Get
|
||||||
@ -233,7 +233,7 @@ Namespace EDMIServiceReference
|
|||||||
|
|
||||||
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
||||||
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _
|
||||||
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResult2.DocumentObject", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
System.Runtime.Serialization.DataContractAttribute(Name:="DocumentResult.DocumentObject", [Namespace]:="http://schemas.datacontract.org/2004/07/DigitalData.Services.EDMIService"), _
|
||||||
System.SerializableAttribute()> _
|
System.SerializableAttribute()> _
|
||||||
Partial Public Class DocumentObject
|
Partial Public Class DocumentObject
|
||||||
Inherits Object
|
Inherits Object
|
||||||
@ -462,22 +462,22 @@ Namespace EDMIServiceReference
|
|||||||
Function ExecuteNonQueryAsync(ByVal SQL As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.NonQueryResult)
|
Function ExecuteNonQueryAsync(ByVal SQL As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.NonQueryResult)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileResponse")> _
|
||||||
Function NewFile(ByVal FileName As String, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResult
|
Function NewFile(ByVal FileName As String, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResultOld
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileResponse")> _
|
||||||
Function NewFileAsync(ByVal FileName As String, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
Function NewFileAsync(ByVal FileName As String, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFileResponse")> _
|
||||||
Function UpdateFile(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResult
|
Function UpdateFile(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResultOld
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/UpdateFileResponse")> _
|
||||||
Function UpdateFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
Function UpdateFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileResponse")> _
|
||||||
Function GetFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As EDMIServiceReference.DocumentResult
|
Function GetFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As EDMIServiceReference.DocumentResultOld
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileResponse")> _
|
||||||
Function GetFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
Function GetFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/DeleteFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/DeleteFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/DeleteFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/DeleteFileResponse")> _
|
||||||
Function DeleteFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As Boolean
|
Function DeleteFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As Boolean
|
||||||
@ -487,31 +487,32 @@ Namespace EDMIServiceReference
|
|||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentIdRespo"& _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentIdRespo"& _
|
||||||
"nse")> _
|
"nse")> _
|
||||||
Function GetDocumentByDocumentId(ByVal DocumentId As Long) As EDMIServiceReference.DocumentResult
|
Function GetDocumentByDocumentId(ByVal DocumentId As Long) As EDMIServiceReference.DocumentResultOld
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentIdRespo"& _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByDocumentIdRespo"& _
|
||||||
"nse")> _
|
"nse")> _
|
||||||
Function GetDocumentByDocumentIdAsync(ByVal DocumentId As Long) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
Function GetDocumentByDocumentIdAsync(ByVal DocumentId As Long) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerIdResp"& _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerIdResp"& _
|
||||||
"onse")> _
|
"onse")> _
|
||||||
Function GetDocumentByContainerId(ByVal ContainerId As String) As EDMIServiceReference.DocumentResult
|
Function GetDocumentByContainerId(ByVal ContainerId As String) As EDMIServiceReference.DocumentResultOld
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerIdResp"& _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetDocumentByContainerIdResp"& _
|
||||||
"onse")> _
|
"onse")> _
|
||||||
Function GetDocumentByContainerIdAsync(ByVal ContainerId As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
Function GetDocumentByContainerIdAsync(ByVal ContainerId As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse")> _
|
||||||
Function ImportFile(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As EDMIServiceReference.DocumentResult2
|
Function ImportFile(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As EDMIServiceReference.DocumentResult
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFile", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/ImportFileResponse")> _
|
||||||
Function ImportFileAsync(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult2)
|
Function ImportFileAsync(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult)
|
||||||
|
|
||||||
|
'CODEGEN: Der Nachrichtenvertrag wird generiert, da der Wrappername (DocumentStreamRequest) von Nachricht "DocumentStreamRequest" nicht mit dem Standardwert (GetFileByObjectId) übereinstimmt.
|
||||||
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse")> _
|
||||||
|
Function GetFileByObjectId(ByVal request As EDMIServiceReference.DocumentStreamRequest) As EDMIServiceReference.DocumentStreamResponse
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse")> _
|
||||||
Function GetFileByObjectId(ByVal ObjectId As Long) As System.IO.Stream
|
Function GetFileByObjectIdAsync(ByVal request As EDMIServiceReference.DocumentStreamRequest) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentStreamResponse)
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectIdResponse")> _
|
|
||||||
Function GetFileByObjectIdAsync(ByVal ObjectId As Long) As System.Threading.Tasks.Task(Of System.IO.Stream)
|
|
||||||
|
|
||||||
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndex", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndexResponse")> _
|
<System.ServiceModel.OperationContractAttribute(Action:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndex", ReplyAction:="http://DigitalData.Services.EDMIService/IEDMIService/NewFileIndexResponse")> _
|
||||||
Function NewFileIndex(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As EDMIServiceReference.IndexResult
|
Function NewFileIndex(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As EDMIServiceReference.IndexResult
|
||||||
@ -520,6 +521,48 @@ Namespace EDMIServiceReference
|
|||||||
Function NewFileIndexAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.IndexResult)
|
Function NewFileIndexAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.IndexResult)
|
||||||
End Interface
|
End Interface
|
||||||
|
|
||||||
|
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
||||||
|
System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0"), _
|
||||||
|
System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced), _
|
||||||
|
System.ServiceModel.MessageContractAttribute(WrapperName:="DocumentStreamRequest", WrapperNamespace:="http://DigitalData.Services.EDMIService", IsWrapped:=true)> _
|
||||||
|
Partial Public Class DocumentStreamRequest
|
||||||
|
|
||||||
|
<System.ServiceModel.MessageBodyMemberAttribute([Namespace]:="http://DigitalData.Services.EDMIService", Order:=0)> _
|
||||||
|
Public ObjectId As Long
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub New(ByVal ObjectId As Long)
|
||||||
|
MyBase.New
|
||||||
|
Me.ObjectId = ObjectId
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
||||||
|
<System.Diagnostics.DebuggerStepThroughAttribute(), _
|
||||||
|
System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0"), _
|
||||||
|
System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced), _
|
||||||
|
System.ServiceModel.MessageContractAttribute(WrapperName:="DocumentStreamResponse", WrapperNamespace:="http://DigitalData.Services.EDMIService", IsWrapped:=true)> _
|
||||||
|
Partial Public Class DocumentStreamResponse
|
||||||
|
|
||||||
|
<System.ServiceModel.MessageHeaderAttribute([Namespace]:="http://DigitalData.Services.EDMIService")> _
|
||||||
|
Public FileName As String
|
||||||
|
|
||||||
|
<System.ServiceModel.MessageBodyMemberAttribute([Namespace]:="http://DigitalData.Services.EDMIService", Order:=0)> _
|
||||||
|
Public FileContents As System.IO.Stream
|
||||||
|
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub New(ByVal FileName As String, ByVal FileContents As System.IO.Stream)
|
||||||
|
MyBase.New
|
||||||
|
Me.FileName = FileName
|
||||||
|
Me.FileContents = FileContents
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
||||||
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")> _
|
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")> _
|
||||||
Public Interface IEDMIServiceChannel
|
Public Interface IEDMIServiceChannel
|
||||||
Inherits EDMIServiceReference.IEDMIService, System.ServiceModel.IClientChannel
|
Inherits EDMIServiceReference.IEDMIService, System.ServiceModel.IClientChannel
|
||||||
@ -599,27 +642,27 @@ Namespace EDMIServiceReference
|
|||||||
Return MyBase.Channel.ExecuteNonQueryAsync(SQL)
|
Return MyBase.Channel.ExecuteNonQueryAsync(SQL)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function NewFile(ByVal FileName As String, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.NewFile
|
Public Function NewFile(ByVal FileName As String, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResultOld Implements EDMIServiceReference.IEDMIService.NewFile
|
||||||
Return MyBase.Channel.NewFile(FileName, Contents)
|
Return MyBase.Channel.NewFile(FileName, Contents)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function NewFileAsync(ByVal FileName As String, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.NewFileAsync
|
Public Function NewFileAsync(ByVal FileName As String, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld) Implements EDMIServiceReference.IEDMIService.NewFileAsync
|
||||||
Return MyBase.Channel.NewFileAsync(FileName, Contents)
|
Return MyBase.Channel.NewFileAsync(FileName, Contents)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateFile(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.UpdateFile
|
Public Function UpdateFile(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As EDMIServiceReference.DocumentResultOld Implements EDMIServiceReference.IEDMIService.UpdateFile
|
||||||
Return MyBase.Channel.UpdateFile(DocObject, Contents)
|
Return MyBase.Channel.UpdateFile(DocObject, Contents)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.UpdateFileAsync
|
Public Function UpdateFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Contents() As Byte) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld) Implements EDMIServiceReference.IEDMIService.UpdateFileAsync
|
||||||
Return MyBase.Channel.UpdateFileAsync(DocObject, Contents)
|
Return MyBase.Channel.UpdateFileAsync(DocObject, Contents)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.GetFile
|
Public Function GetFile(ByVal DocObject As EDMIServiceReference.DocumentObject) As EDMIServiceReference.DocumentResultOld Implements EDMIServiceReference.IEDMIService.GetFile
|
||||||
Return MyBase.Channel.GetFile(DocObject)
|
Return MyBase.Channel.GetFile(DocObject)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.GetFileAsync
|
Public Function GetFileAsync(ByVal DocObject As EDMIServiceReference.DocumentObject) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld) Implements EDMIServiceReference.IEDMIService.GetFileAsync
|
||||||
Return MyBase.Channel.GetFileAsync(DocObject)
|
Return MyBase.Channel.GetFileAsync(DocObject)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@ -631,36 +674,52 @@ Namespace EDMIServiceReference
|
|||||||
Return MyBase.Channel.DeleteFileAsync(DocObject)
|
Return MyBase.Channel.DeleteFileAsync(DocObject)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetDocumentByDocumentId(ByVal DocumentId As Long) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.GetDocumentByDocumentId
|
Public Function GetDocumentByDocumentId(ByVal DocumentId As Long) As EDMIServiceReference.DocumentResultOld Implements EDMIServiceReference.IEDMIService.GetDocumentByDocumentId
|
||||||
Return MyBase.Channel.GetDocumentByDocumentId(DocumentId)
|
Return MyBase.Channel.GetDocumentByDocumentId(DocumentId)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetDocumentByDocumentIdAsync(ByVal DocumentId As Long) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.GetDocumentByDocumentIdAsync
|
Public Function GetDocumentByDocumentIdAsync(ByVal DocumentId As Long) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld) Implements EDMIServiceReference.IEDMIService.GetDocumentByDocumentIdAsync
|
||||||
Return MyBase.Channel.GetDocumentByDocumentIdAsync(DocumentId)
|
Return MyBase.Channel.GetDocumentByDocumentIdAsync(DocumentId)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetDocumentByContainerId(ByVal ContainerId As String) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.GetDocumentByContainerId
|
Public Function GetDocumentByContainerId(ByVal ContainerId As String) As EDMIServiceReference.DocumentResultOld Implements EDMIServiceReference.IEDMIService.GetDocumentByContainerId
|
||||||
Return MyBase.Channel.GetDocumentByContainerId(ContainerId)
|
Return MyBase.Channel.GetDocumentByContainerId(ContainerId)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetDocumentByContainerIdAsync(ByVal ContainerId As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.GetDocumentByContainerIdAsync
|
Public Function GetDocumentByContainerIdAsync(ByVal ContainerId As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResultOld) Implements EDMIServiceReference.IEDMIService.GetDocumentByContainerIdAsync
|
||||||
Return MyBase.Channel.GetDocumentByContainerIdAsync(ContainerId)
|
Return MyBase.Channel.GetDocumentByContainerIdAsync(ContainerId)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function ImportFile(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As EDMIServiceReference.DocumentResult2 Implements EDMIServiceReference.IEDMIService.ImportFile
|
Public Function ImportFile(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As EDMIServiceReference.DocumentResult Implements EDMIServiceReference.IEDMIService.ImportFile
|
||||||
Return MyBase.Channel.ImportFile(FileName, Contents, AddedWho)
|
Return MyBase.Channel.ImportFile(FileName, Contents, AddedWho)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function ImportFileAsync(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult2) Implements EDMIServiceReference.IEDMIService.ImportFileAsync
|
Public Function ImportFileAsync(ByVal FileName As String, ByVal Contents() As Byte, ByVal AddedWho As String) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentResult) Implements EDMIServiceReference.IEDMIService.ImportFileAsync
|
||||||
Return MyBase.Channel.ImportFileAsync(FileName, Contents, AddedWho)
|
Return MyBase.Channel.ImportFileAsync(FileName, Contents, AddedWho)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFileByObjectId(ByVal ObjectId As Long) As System.IO.Stream Implements EDMIServiceReference.IEDMIService.GetFileByObjectId
|
<System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
Return MyBase.Channel.GetFileByObjectId(ObjectId)
|
Function EDMIServiceReference_IEDMIService_GetFileByObjectId(ByVal request As EDMIServiceReference.DocumentStreamRequest) As EDMIServiceReference.DocumentStreamResponse Implements EDMIServiceReference.IEDMIService.GetFileByObjectId
|
||||||
|
Return MyBase.Channel.GetFileByObjectId(request)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFileByObjectIdAsync(ByVal ObjectId As Long) As System.Threading.Tasks.Task(Of System.IO.Stream) Implements EDMIServiceReference.IEDMIService.GetFileByObjectIdAsync
|
Public Function GetFileByObjectId(ByVal ObjectId As Long, <System.Runtime.InteropServices.OutAttribute()> ByRef FileContents As System.IO.Stream) As String
|
||||||
Return MyBase.Channel.GetFileByObjectIdAsync(ObjectId)
|
Dim inValue As EDMIServiceReference.DocumentStreamRequest = New EDMIServiceReference.DocumentStreamRequest()
|
||||||
|
inValue.ObjectId = ObjectId
|
||||||
|
Dim retVal As EDMIServiceReference.DocumentStreamResponse = CType(Me,EDMIServiceReference.IEDMIService).GetFileByObjectId(inValue)
|
||||||
|
FileContents = retVal.FileContents
|
||||||
|
Return retVal.FileName
|
||||||
|
End Function
|
||||||
|
|
||||||
|
<System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Function EDMIServiceReference_IEDMIService_GetFileByObjectIdAsync(ByVal request As EDMIServiceReference.DocumentStreamRequest) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentStreamResponse) Implements EDMIServiceReference.IEDMIService.GetFileByObjectIdAsync
|
||||||
|
Return MyBase.Channel.GetFileByObjectIdAsync(request)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetFileByObjectIdAsync(ByVal ObjectId As Long) As System.Threading.Tasks.Task(Of EDMIServiceReference.DocumentStreamResponse)
|
||||||
|
Dim inValue As EDMIServiceReference.DocumentStreamRequest = New EDMIServiceReference.DocumentStreamRequest()
|
||||||
|
inValue.ObjectId = ObjectId
|
||||||
|
Return CType(Me,EDMIServiceReference.IEDMIService).GetFileByObjectIdAsync(inValue)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function NewFileIndex(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As EDMIServiceReference.IndexResult Implements EDMIServiceReference.IEDMIService.NewFileIndex
|
Public Function NewFileIndex(ByVal DocObject As EDMIServiceReference.DocumentObject, ByVal Syskey As String, ByVal LanguageCode As String, ByVal Value As String) As EDMIServiceReference.IndexResult Implements EDMIServiceReference.IEDMIService.NewFileIndex
|
||||||
|
|||||||
@ -160,10 +160,11 @@
|
|||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
<wsdl:operation name="GetFileByObjectId">
|
<wsdl:operation name="GetFileByObjectId">
|
||||||
<soap12:operation soapAction="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId" style="document" />
|
<soap12:operation soapAction="http://DigitalData.Services.EDMIService/IEDMIService/GetFileByObjectId" style="document" />
|
||||||
<wsdl:input>
|
<wsdl:input name="DocumentStreamRequest">
|
||||||
<soap12:body use="literal" />
|
<soap12:body use="literal" />
|
||||||
</wsdl:input>
|
</wsdl:input>
|
||||||
<wsdl:output>
|
<wsdl:output name="DocumentStreamResponse">
|
||||||
|
<soap12:header message="i0:DocumentStreamResponse_Headers" part="FileName" use="literal" />
|
||||||
<soap12:body use="literal" />
|
<soap12:body use="literal" />
|
||||||
</wsdl:output>
|
</wsdl:output>
|
||||||
</wsdl:operation>
|
</wsdl:operation>
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Public Class Document
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
''' <param name="FilePath">The filename to import</param>
|
''' <param name="FilePath">The filename to import</param>
|
||||||
''' <returns>A document object</returns>
|
''' <returns>A document object</returns>
|
||||||
Public Async Function ImportFileAsync(FilePath As String, Optional [ReadOnly] As Boolean = False, Optional RetentionPeriod As Integer = 0) As Task(Of DocumentResult2)
|
Public Async Function ImportFileAsync(FilePath As String, Optional [ReadOnly] As Boolean = False, Optional RetentionPeriod As Integer = 0) As Task(Of DocumentResult)
|
||||||
Try
|
Try
|
||||||
Using oStream As New FileStream(FilePath, FileMode.Open)
|
Using oStream As New FileStream(FilePath, FileMode.Open)
|
||||||
Dim oContents As Byte() = {}
|
Dim oContents As Byte() = {}
|
||||||
@ -73,7 +73,7 @@ Public Class Document
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
''' <param name="FilePath">The filename to import</param>
|
''' <param name="FilePath">The filename to import</param>
|
||||||
''' <returns>A document object</returns>
|
''' <returns>A document object</returns>
|
||||||
Public Function ImportFile(FilePath As String) As DocumentResult2
|
Public Function ImportFile(FilePath As String) As DocumentResult
|
||||||
Try
|
Try
|
||||||
Dim oContents As Byte() = File.ReadAllBytes(FilePath)
|
Dim oContents As Byte() = File.ReadAllBytes(FilePath)
|
||||||
Dim oInfo As New FileInfo(FilePath)
|
Dim oInfo As New FileInfo(FilePath)
|
||||||
|
|||||||
@ -109,7 +109,10 @@
|
|||||||
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResult.datasource">
|
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResult.datasource">
|
||||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResult2.datasource">
|
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentResultOld.datasource">
|
||||||
|
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||||
|
</None>
|
||||||
|
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.DocumentStreamResponse.datasource">
|
||||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||||
</None>
|
</None>
|
||||||
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.IndexResult.datasource">
|
<None Include="Connected Services\EDMIServiceReference\DigitalData.Modules.EDMI.API.EDMIServiceReference.IndexResult.datasource">
|
||||||
|
|||||||
@ -137,7 +137,7 @@ Public Class EDMIService
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
#Region "Document (with FileContainer)"
|
#Region "Document (with FileContainer)"
|
||||||
Public Function NewFile(FileName As String, Contents() As Byte) As DocumentResult Implements IEDMIService.NewFile
|
Public Function NewFile(FileName As String, Contents() As Byte) As DocumentResultOld Implements IEDMIService.NewFile
|
||||||
Try
|
Try
|
||||||
Dim oContainer As FileContainer
|
Dim oContainer As FileContainer
|
||||||
Dim oContainerId As String
|
Dim oContainerId As String
|
||||||
@ -169,14 +169,14 @@ Public Class EDMIService
|
|||||||
_logger.Debug("File saved in Container!", FileName)
|
_logger.Debug("File saved in Container!", FileName)
|
||||||
|
|
||||||
Dim oDocument = New DocumentObject(oContainerId, oDocId, FileName)
|
Dim oDocument = New DocumentObject(oContainerId, oDocId, FileName)
|
||||||
Return New DocumentResult(oDocument)
|
Return New DocumentResultOld(oDocument)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return New DocumentResult(ex.Message)
|
Return New DocumentResultOld(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateFile(DocObject As DocumentObject, Contents() As Byte) As DocumentResult Implements IEDMIService.UpdateFile
|
Public Function UpdateFile(DocObject As DocumentObject, Contents() As Byte) As DocumentResultOld Implements IEDMIService.UpdateFile
|
||||||
Try
|
Try
|
||||||
TestFileExists(DocObject.ContainerId)
|
TestFileExists(DocObject.ContainerId)
|
||||||
|
|
||||||
@ -189,14 +189,14 @@ Public Class EDMIService
|
|||||||
oFileContainer.Save()
|
oFileContainer.Save()
|
||||||
|
|
||||||
|
|
||||||
Return New DocumentResult(DocObject)
|
Return New DocumentResultOld(DocObject)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFile(DocObject As DocumentObject) As DocumentResult Implements IEDMIService.GetFile
|
Public Function GetFile(DocObject As DocumentObject) As DocumentResultOld Implements IEDMIService.GetFile
|
||||||
Try
|
Try
|
||||||
TestFileExists(DocObject.ContainerId)
|
TestFileExists(DocObject.ContainerId)
|
||||||
|
|
||||||
@ -204,10 +204,10 @@ Public Class EDMIService
|
|||||||
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
||||||
Dim oContents As Byte() = oContainer.GetFile().Contents
|
Dim oContents As Byte() = oContainer.GetFile().Contents
|
||||||
|
|
||||||
Return New DocumentResult(DocObject, oContents)
|
Return New DocumentResultOld(DocObject, oContents)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return New DocumentResult(ex.Message)
|
Return New DocumentResultOld(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@ -243,13 +243,13 @@ Public Class EDMIService
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Function GetDocumentByDocumentId(DocumentId As Long) As DocumentResult Implements IEDMIService.GetDocumentByDocumentId
|
Public Function GetDocumentByDocumentId(DocumentId As Long) As DocumentResultOld Implements IEDMIService.GetDocumentByDocumentId
|
||||||
Try
|
Try
|
||||||
Dim oSQL = $"SELECT GUID, CONTAINER_ID, ORIGINAL_FILENAME FROM TBIDB_DOCUMENT WHERE GUID = {DocumentId}"
|
Dim oSQL = $"SELECT GUID, CONTAINER_ID, ORIGINAL_FILENAME FROM TBIDB_DOCUMENT WHERE GUID = {DocumentId}"
|
||||||
Dim oTable = Firebird.GetDatatable(oSQL)
|
Dim oTable = Firebird.GetDatatable(oSQL)
|
||||||
|
|
||||||
If oTable.Rows.Count = 0 Then
|
If oTable.Rows.Count = 0 Then
|
||||||
Return New DocumentResult("Document not found")
|
Return New DocumentResultOld("Document not found")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oRow As DataRow = oTable.Rows.Item(0)
|
Dim oRow As DataRow = oTable.Rows.Item(0)
|
||||||
@ -265,19 +265,19 @@ Public Class EDMIService
|
|||||||
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
||||||
Dim oContents As Byte() = oContainer.GetFile().Contents
|
Dim oContents As Byte() = oContainer.GetFile().Contents
|
||||||
|
|
||||||
Return New DocumentResult(oDocument, oContents)
|
Return New DocumentResultOld(oDocument, oContents)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Return New DocumentResult(ex.Message)
|
Return New DocumentResultOld(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetDocumentByContainerId(ContainerId As String) As DocumentResult Implements IEDMIService.GetDocumentByContainerId
|
Public Function GetDocumentByContainerId(ContainerId As String) As DocumentResultOld Implements IEDMIService.GetDocumentByContainerId
|
||||||
Try
|
Try
|
||||||
Dim oSQL = $"SELECT GUID, CONTAINER_ID, ORIGINAL_FILENAME FROM TBIDB_DOCUMENT WHERE CONTAINER_ID = '{ContainerId}'"
|
Dim oSQL = $"SELECT GUID, CONTAINER_ID, ORIGINAL_FILENAME FROM TBIDB_DOCUMENT WHERE CONTAINER_ID = '{ContainerId}'"
|
||||||
Dim oTable = Firebird.GetDatatable(oSQL)
|
Dim oTable = Firebird.GetDatatable(oSQL)
|
||||||
|
|
||||||
If oTable.Rows.Count = 0 Then
|
If oTable.Rows.Count = 0 Then
|
||||||
Return New DocumentResult("Document not found")
|
Return New DocumentResultOld("Document not found")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oRow As DataRow = oTable.Rows.Item(0)
|
Dim oRow As DataRow = oTable.Rows.Item(0)
|
||||||
@ -293,26 +293,26 @@ Public Class EDMIService
|
|||||||
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
Dim oContainer As FileContainer = FileContainer.Load(LogConfig, AppConfig.ContainerPassword, oContainerPath)
|
||||||
Dim oContents As Byte() = oContainer.GetFile().Contents
|
Dim oContents As Byte() = oContainer.GetFile().Contents
|
||||||
|
|
||||||
Return New DocumentResult(oDocument, oContents)
|
Return New DocumentResultOld(oDocument, oContents)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
Return New DocumentResult(ex.Message)
|
Return New DocumentResultOld(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Document"
|
#Region "Document"
|
||||||
Public Function ImportFile(FileName As String, Contents() As Byte, AddedWho As String) As DocumentResult2 Implements IEDMIService.ImportFile
|
Public Function ImportFile(FileName As String, Contents() As Byte, AddedWho As String) As DocumentResult Implements IEDMIService.ImportFile
|
||||||
Dim oDocumentType As String = "DummyDocumentType"
|
Dim oDocumentType As String = "DummyDocumentType"
|
||||||
Dim oRelativePath As String = EDMIPath.GetRelativePath(oDocumentType, FileName)
|
Dim oRelativePath As String = EDMIPath.GetRelativePath(oDocumentType, FileName)
|
||||||
Dim oAbsolutePath As String = EDMIPath.GetActivePath(oDocumentType, FileName)
|
Dim oAbsolutePath As String = EDMIPath.GetActivePath(oDocumentType, FileName)
|
||||||
Dim oDirectoryPath = EDMIPath.GetActivePath(oDocumentType)
|
Dim oDirectoryPath = EDMIPath.GetActivePath(oDocumentType)
|
||||||
Dim oDocument = New DocumentResult2.DocumentObject With {.FileName = FileName}
|
Dim oDocument = New DocumentResult.DocumentObject With {.FileName = FileName}
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Directory.CreateDirectory(oDirectoryPath)
|
Directory.CreateDirectory(oDirectoryPath)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return New DocumentResult2(ex.Message)
|
Return New DocumentResult(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
|
|
||||||
Try
|
Try
|
||||||
@ -337,16 +337,16 @@ Public Class EDMIService
|
|||||||
|
|
||||||
oDocument.FileId = oObjectId
|
oDocument.FileId = oObjectId
|
||||||
|
|
||||||
Return New DocumentResult2(oDocument)
|
Return New DocumentResult(oDocument)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return New DocumentResult2(ex.Message)
|
Return New DocumentResult(ex.Message)
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFileByObjectId(ObjectId As Int64) As Stream Implements IEDMIService.GetFileByObjectId
|
Public Function GetFileByObjectId(Data As Messages.DocumentStreamRequest) As Messages.DocumentStreamResponse Implements IEDMIService.GetFileByObjectId
|
||||||
Try
|
Try
|
||||||
Dim oSQL As String = $"SELECT DocRelativePath FROM VWIDB_DOC_DATA WHERE IDB_OBJ_ID = {ObjectId}"
|
Dim oSQL As String = $"SELECT DocRelativePath FROM VWIDB_DOC_DATA WHERE IDB_OBJ_ID = {Data.ObjectId}"
|
||||||
Dim oPath As String = MSSQL.GetScalarValue(oSQL)
|
Dim oPath As String = MSSQL.GetScalarValue(oSQL)
|
||||||
|
|
||||||
If IsNothing(oPath) Then
|
If IsNothing(oPath) Then
|
||||||
@ -357,8 +357,15 @@ Public Class EDMIService
|
|||||||
|
|
||||||
_logger.Debug("GetFileByObjectId: Loading file [{0}]", oFullPath)
|
_logger.Debug("GetFileByObjectId: Loading file [{0}]", oFullPath)
|
||||||
|
|
||||||
|
Dim oFileInfo As New FileInfo(oFullPath)
|
||||||
Dim oSource As FileStream = IO.File.Open(oFullPath, FileMode.Open)
|
Dim oSource As FileStream = IO.File.Open(oFullPath, FileMode.Open)
|
||||||
Return oSource
|
|
||||||
|
Dim oMessage As New Messages.DocumentStreamResponse() With {
|
||||||
|
.FileName = oFileInfo.Name,
|
||||||
|
.FileContents = oSource
|
||||||
|
}
|
||||||
|
|
||||||
|
Return oMessage
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Return Nothing
|
Return Nothing
|
||||||
|
|||||||
@ -103,13 +103,14 @@
|
|||||||
<Compile Include="AppConfig.vb" />
|
<Compile Include="AppConfig.vb" />
|
||||||
<Compile Include="Database\IDatabase.vb" />
|
<Compile Include="Database\IDatabase.vb" />
|
||||||
<Compile Include="Database\MSSQL.vb" />
|
<Compile Include="Database\MSSQL.vb" />
|
||||||
|
<Compile Include="Messages.vb" />
|
||||||
<Compile Include="Results\BaseResult.vb" />
|
<Compile Include="Results\BaseResult.vb" />
|
||||||
<Compile Include="Results\ContainerResult.vb" />
|
<Compile Include="Results\ContainerResult.vb" />
|
||||||
<Compile Include="Results\DocumentResult.vb" />
|
<Compile Include="Results\DocumentResultOld.vb" />
|
||||||
<Compile Include="Exceptions.vb" />
|
<Compile Include="Exceptions.vb" />
|
||||||
<Compile Include="Results\DatabaseResult.vb" />
|
<Compile Include="Results\DatabaseResult.vb" />
|
||||||
<Compile Include="EDMIService.vb" />
|
<Compile Include="EDMIService.vb" />
|
||||||
<Compile Include="Results\DocumentResult2.vb" />
|
<Compile Include="Results\DocumentResult.vb" />
|
||||||
<Compile Include="Results\IndexResult.vb" />
|
<Compile Include="Results\IndexResult.vb" />
|
||||||
<Compile Include="WindowsService.vb">
|
<Compile Include="WindowsService.vb">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
|
|||||||
@ -29,30 +29,30 @@ Interface IEDMIService
|
|||||||
|
|
||||||
#Region "Document (with FileContainer)"
|
#Region "Document (with FileContainer)"
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function NewFile(FileName As String, Contents As Byte()) As DocumentResult
|
Function NewFile(FileName As String, Contents As Byte()) As DocumentResultOld
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function UpdateFile(DocObject As DocumentObject, Contents As Byte()) As DocumentResult
|
Function UpdateFile(DocObject As DocumentObject, Contents As Byte()) As DocumentResultOld
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function GetFile(DocObject As DocumentObject) As DocumentResult
|
Function GetFile(DocObject As DocumentObject) As DocumentResultOld
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function DeleteFile(DocObject As DocumentObject) As Boolean
|
Function DeleteFile(DocObject As DocumentObject) As Boolean
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function GetDocumentByDocumentId(DocumentId As Int64) As DocumentResult
|
Function GetDocumentByDocumentId(DocumentId As Int64) As DocumentResultOld
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function GetDocumentByContainerId(ContainerId As String) As DocumentResult
|
Function GetDocumentByContainerId(ContainerId As String) As DocumentResultOld
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Document (New)"
|
#Region "Document (New)"
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function ImportFile(FileName As String, Contents As Byte(), AddedWho As String) As DocumentResult2
|
Function ImportFile(FileName As String, Contents As Byte(), AddedWho As String) As DocumentResult
|
||||||
|
|
||||||
<OperationContract>
|
<OperationContract>
|
||||||
Function GetFileByObjectId(ObjectId As Int64) As Stream
|
Function GetFileByObjectId(Data As Messages.DocumentStreamRequest) As Messages.DocumentStreamResponse
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region "Index"
|
#Region "Index"
|
||||||
|
|||||||
22
Service.EDMIService/Messages.vb
Normal file
22
Service.EDMIService/Messages.vb
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Imports System.IO
|
||||||
|
Imports System.ServiceModel
|
||||||
|
|
||||||
|
Namespace Messages
|
||||||
|
<MessageContract>
|
||||||
|
Public Class DocumentStreamRequest
|
||||||
|
<MessageBodyMember>
|
||||||
|
Public ObjectId As Int64
|
||||||
|
End Class
|
||||||
|
|
||||||
|
<MessageContract>
|
||||||
|
Public Class DocumentStreamResponse
|
||||||
|
<MessageHeader(MustUnderstand:=True)>
|
||||||
|
Public FileName As String
|
||||||
|
|
||||||
|
<MessageBodyMember(Order:=1)>
|
||||||
|
Public FileContents As Stream
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
Imports DigitalData.Modules.Filesystem
|
Imports System.Xml.Serialization
|
||||||
|
|
||||||
<Serializable>
|
<Serializable>
|
||||||
Public Class DocumentResult
|
Public Class DocumentResult
|
||||||
@ -23,4 +23,9 @@ Public Class DocumentResult
|
|||||||
Public Sub New(ErrorMessage As String)
|
Public Sub New(ErrorMessage As String)
|
||||||
MyBase.New(ErrorMessage)
|
MyBase.New(ErrorMessage)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Class DocumentObject
|
||||||
|
Public FileName As String
|
||||||
|
Public FileId As String
|
||||||
|
End Class
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<Serializable>
|
Imports DigitalData.Modules.Filesystem
|
||||||
Public Class DocumentResult2
|
|
||||||
|
<Serializable>
|
||||||
|
Public Class DocumentResultOld
|
||||||
Inherits BaseResult
|
Inherits BaseResult
|
||||||
|
|
||||||
Public Document As DocumentObject
|
Public Document As DocumentObject
|
||||||
@ -21,9 +23,4 @@ Public Class DocumentResult2
|
|||||||
Public Sub New(ErrorMessage As String)
|
Public Sub New(ErrorMessage As String)
|
||||||
MyBase.New(ErrorMessage)
|
MyBase.New(ErrorMessage)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Class DocumentObject
|
|
||||||
Public FileName As String
|
|
||||||
Public FileId As String
|
|
||||||
End Class
|
|
||||||
End Class
|
End Class
|
||||||
Loading…
x
Reference in New Issue
Block a user