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

Do you want to create a native client or integrate with third party applications: webservices are the solution.

Moderator: car031

flogical
Posts: 5
Joined: Tue Nov 29, 2016 6:30 am

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

Wed Sep 13, 2017 10:10 am

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.)
shatzing
Posts: 75
Joined: Tue Jan 21, 2014 9:46 am

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

Wed Jan 10, 2018 2:49 pm

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?
shatzing
Posts: 75
Joined: Tue Jan 21, 2014 9:46 am

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

Wed Jan 10, 2018 2:54 pm

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);
            }
        }
Attachments
listDocuments.png
Document listDocuments
listDocuments.png (36.33 KiB) Viewed 981 times

Return to “Web Services”

Who is online

Users browsing this forum: No registered users and 1 guest