We have our EMC content server storing files on an external storage device. Our webserver needs to be able to access and retrieve documents via the web. I can make the call from our webserver to EMC to get the document ID without any problems but when I try to invoke the the following code it fails saying that no endpoint is listening. Has anyone ever tried to retrieve via external files stores for the web? Any help would be greatly appreciated
Public Function GetDocumentAsStream(ByVal docID As String) As Byte()
Dim objID As ObjectIdentity
Dim idSet As ObjectIdentitySet
Dim cntntProfile As Profiles.ContentProfile
Dim opOpts As OperationOptions
Dim objService As IObjectService
Dim srvContext As IServiceContext
Dim dataPkg As DataPackage
Dim tmpFile As System.IO.FileInfo
Try
objID = New ObjectIdentity(New ObjectId(docID), repName)
idSet = New ObjectIdentitySet()
idSet.Identities.Add(objID)
cntntProfile = New Profiles.ContentProfile()
cntntProfile.FormatFilter = Profiles.FormatFilter.ANY
cntntProfile.PageFilter = Profiles.PageFilter.ANY
cntntProfile.PageModifierFilter = Profiles.PageModifierFilter.ANY
opOpts = New OperationOptions()
opOpts.ContentProfile = cntntProfile
srvContext = ContextFactory.Instance.NewContext()
srvContext.AddIdentity(New RepositoryIdentity(repName, uname, pwd, ctxtRoot))
objService = ServiceFactory.Instance.GetRemoteService(Of IObjectService)(srvContext, "core", ctxtRoot)
dataPkg = objService.Get(idSet, opOpts)