投稿済み Tue, 13 Feb 2018 19:16:34 GMT 、投稿者 Joe Kaufman Bell Laboratories Inc No longer there

Konrad,

I have found XML construction to be a bit finickywhen I am using Visual Foxpro and the ServerXMLHTTP request object. In some XML I have that looks similar to yours (defining "Field" values), I use these two lines as my XML headers:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?>

Let's see if I have a longer <Document> example...here's one:

<?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="{fieldname}">
            <{fieldtype}>{value}</{fieldtype}>
        </Field>
    </Fields>
</Document>

It looks like you might be lacking the second line in the XML headers, the one that establishes stylesheet type?

If you are more familiar/comfortable with JSON, you might try that. It seems easier to construct, but I did not have much luck with it. But maybe I was not setting my request headers appropriately. JSON seems to be the thing a lot of web-based services are leaning towards, tohugh DocuWare still stores a LOT of stuff as XML in their back-end database (like embedded properties).

Hope this helps. Getting Playform Service stuff working in anything other than .NET has always been a struggle from what I see on the forums.

 

Thanks,

Joe Kaufman

投稿済み Wed, 14 Feb 2018 14:23:59 GMT 、投稿者 Benoit Vassart ASC

Dear, 

I'm also struggling with Postman and the lack of documentation for the sdk. What I'm doing is using 'Fiddler'. Try to do a check in from the webclient and you can see the Xml used by Docuware within Fiddler.

I've done this for updating fields using Postman & Curl. It's take some times, but you will have a good idea what Docuware platform is waiting as xml.

Kind Regards

 

 

投稿済み Wed, 14 Feb 2018 14:33:49 GMT 、投稿者 Joe Kaufman Bell Laboratories Inc No longer there

Benoit,

That is a great tip. I recall using something to try to see what the web client was doing, but now I cannot remember the tool. I will take a look at Fiddler.

 

Thanks,

Joe Kaufman

投稿済み Wed, 14 Feb 2018 14:55:45 GMT 、投稿者 Joe Kaufman Bell Laboratories Inc No longer there

Benoit,

I have Fiddler up and running and it is showing me traffic to our DocuWare server (6.11 running on-premise, straight HTTP), but I am not seeing any XML. The XML pane is always empty, and instead, JSON is populated.

How are you getting the web client to communicate via XML when doing something like changing an index field? All I see is JSON...

 

Thanks,

Joe Kaufman

投稿済み Tue, 20 Feb 2018 12:49:13 GMT 、投稿者 Patrick Neumann

Hi Konrad,

the correct syntax for your xml file for CheckInFromFileSystem is like this:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?>
<CheckInActionParameters Comments="test comment" xmlns:s="http://dev.docuware.com/schema/public/services" xmlns="http://dev.docuware.com/schema/public/services/platform">
 <CheckInReturnDocument>
  <String>CheckedIn</String>
 </CheckInReturnDocument>
</CheckInActionParameters>
 

The String for CheckInReturnDocument could be "CheckedIn" or "Original".
In Comments attribute you can save a comment to your checked in new file.

Be sure you have post a CheckoutDocument to that document before you post a new checkin . Otherwise you get an error like this:

"Operation is not allowed. The document with ID xxx must be in the state 'In Progress'."

I hope my answer is helpful.

Best Regards

Patrick

投稿済み Tue, 20 Feb 2018 12:53:10 GMT 、投稿者 Patrick Neumann

You will find the correct syntax in comment https://www.docuware.com/comment/5205#comment-5205

投稿済み Fri, 23 Sep 2022 14:20:41 GMT 、投稿者 Pascal Chardon
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/DocuWare/Platform/Content/standard.xslt"?>
<CheckInActionParameters Comments= "" xmlns:s="http://dev.docuware.com/schema/public/services" xmlns="http://dev.docuware.com/schema/public/services/platform">
  <DocumentVersion Major = "3" Minor= "1"/>
  <CheckInReturnDocument>
    <String>CheckedIn</String>
  </CheckInReturnDocument>
</CheckInActionParameters>

フォーラムに投稿するためにはログインが必要です。