• Problema al borrar doc via webservice.

  • Hemos intentado hacer de OpenKM una aplicación lo más intuitiva posible, sin embargo siempre viene bien algún consejo.
Hemos intentado hacer de OpenKM una aplicación lo más intuitiva posible, sin embargo siempre viene bien algún consejo.
Forum rules: Por favor, antes de preguntar algo consulta el wiki de documentación o utiliza la función de búsqueda del foro. Recuerda que no tenemos una bola de cristal ni poderes mentales, o sea que que para informar sobre un error es necesario que nos indiques tanto la versión de OpenKM que usas como la del navegador y sistema operativo. Para más información consulta Cómo informar de fallos de forma efectiva.
 #10975  by roycal93
 
Buen día,

Estoy tratando de borrar un documento vía web service con el método delete. El usuario ya esta logueado y el documento existe, pero el sistema falla en esta instrucción " documentService.delete(token, docPath);", dando el siguiente error :
Code: Select all
System.Web.Services.Protocols.SoapException: okm:trash/crmtestuser1
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at CRMAvanticaPlugin.OKMDocument.OKMDocumentService.delete(String token, String docPath) in D:\Avantica CRM\CRMAvanticaPlugin\Web References\OKMDocument\Reference.cs:line 360
   at CRMAvanticaPlugin.PreDeleteProposalComponent.delete(String docPath, String username, String password) in D:\Avantica CRM\CRMAvanticaPlugin\PreDeleteProposalComponent.cs:line 69
Este es el método en references que falla:
Code: Select all
/// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace="http://endpoint.ws.openkm.com/", ResponseNamespace="http://endpoint.ws.openkm.com/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public void delete(string token, string docPath) {
            this.Invoke("delete", new object[] {
                        token,
                        docPath});
        }
Estoy trabajando C# .net, openKM5

Quedo a la espera de cualquier ayuda que me puedan brindar.
 #10985  by jllort
 
Un posible problema es que estas en el trash y ahi - en teoria - no tiene sentido un delete sino que tienes que hacer un purge.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.