Page 1 of 1

document.published is always =1 when using the SOAP API. LogicalDoc version v7.7

Posted: Wed Sep 13, 2017 10:10 am
by flogical
I am using the API through a .NET application. Even though I can see the documents are grayed and Published is set to "No" when I use your Web interface, when it comes to the API calls from my app I always get document.published=1 . I need to filter the documents by the published property.

What can I do?

(It is not a synchronization/refresh issue, I have triple checked that.)

Re: document.published is always =1 when using the SOAP API. LogicalDoc version v7.7

Posted: Wed Jan 10, 2018 2:49 pm
by shatzing
Hi flogical,
I just checked what you described against LogicalDOC Enterprise v 7.7.3 and by requesting the list of document in folder the flag published is properly valued.

I invoked the method listDocuments of the Document webservice
https://docs.logicaldoc.com/resources/w ... l#method35

Is it the same as you are trying too?

Re: document.published is always =1 when using the SOAP API. LogicalDoc version v7.7

Posted: Wed Jan 10, 2018 2:54 pm
by shatzing

Code: Select all

        private void list_Folder(object sender, EventArgs e)
        {
            // List the documents in a given folder
            long startFld = 4;
            Document.SoapDocumentServiceService _docserv = new Document.SoapDocumentServiceService();

            // this will lists all the documents in the given folder
            //Document.WSDocument[] _docs =_docserv.listDocuments(SID, startFld, "*");

            // This list is filtered on .txt files
            Document.WSDocument[] _docs = _docserv.listDocuments(SID, startFld, "*.txt");

            foreach (Document.WSDocument res in _docs)
            {
                        Console.WriteLine("####################");
                        Console.WriteLine("res.id: " + res.id);
                        Console.WriteLine("res.fileName: " + res.fileName);
                        Console.WriteLine("res.length: " + res.fileSize);
                        Console.WriteLine("res.date: " + res.date);
                        Console.WriteLine("res.type: " + res.type);
                        Console.WriteLine("res.published: " + res.published);
            }
        }