Exporting documents using the web service - Ernesto Machado
in

InfoPath Dev

Ernesto Machado

Exporting documents using the web service

The DBXL Administration Tool provides you controls to export the documents stored in your DBXL Document Types. However, this method may make InfoPath time out if you have a large number of documents (100+).
 
As a workaround for exporting a large number of documents, Qdabra provides the Migration Tool (Document Deployer), which allows you to export documents one by one, in the background.
 
However, this method operates in the background, exporting one document at a time. This might not be ideal for thousands of documents.
There is a third method that administrators can use to export a large number of documents. The web service used is the same as the Import/Export in DAT, but you can invoke these methods on the server by opening IE and browsing to the DbxlImportExport.asmx page.

  1. On the machine where DBXL is installed, open Internet Explorer.
  2. Navigate to the URL: http://<servername>/qdabrawebservice/DbxlImportExport.asmx
  3. Click on ExportDocuments.
  4. Enter the docTypeName and the folderPath for export.
  5. Click Invoke.

This will export the documents to folderPath specified. A new Internet Explorer window will open showing the results. For example:

<?xml version="1.0" encoding="utf-8" ?>
<StatusInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://qdabra.com/webservices/">
<Success>true</Success>
<Errors>
<ErrorInfo>
<Code>I0001</Code>
<Description>2 documents exported.</Description>
</ErrorInfo>
</Errors>
<ExecutionTime>00:00:00.1340000</ExecutionTime>
</StatusInfo>

Note that you might need to increase the executionTimeout element. For more, read this: http://msdn.microsoft.com/en-us/library/ms824641.aspx.

Published Nov 02 2010, 02:43 PM by ErnestoM
Filed under: ,

Comments

No Comments
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.