Martin,
To create a data-only document, I have not used C#/.NET, but have it working from Visual Foxpro (or any language that can manipulate an HTTP request object).
The resource in play is this one:
/DocuWare/Platform/FileCabinets/{cabinbet guid}/Documents/
and then once I have an HTTP request object instance established (in this case, "_DWPlatformService"), the code to POST the request looks like this:
_DWPlatformService.Open("POST", "<URL involving the resource listed above>")
* Need to use a Content-Type of "application/xml" otherwise the POST will simply create a document with the index data XML inside it.
_DWPlatformService.SetRequestHeader("Content-Type", "application/xml")
_DWPlatformService.Send(<POST data>)
The POST data looks something like this, for a cabinet including indexes COMPANY and SENDER as an example:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?>
<Document xmlns:s="http://dev.docuware.com/schema/public/services" xmlns="http://dev.docuware.com/schema/public/services/platform">
<Fields>
<Field FieldName="COMPANY"><String>Data Only Company</String></Field>
<Field FieldName="SENDER"><String>Data Only Sender</String></Field>
</Fields>
</Document>
This will create a data-only document in the desired file cabinet.
Thanks,
Joe Kaufman