Page 1 of 1

Problema al borrar doc via webservice.

PostPosted:Thu May 12, 2011 12:04 am
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.

Re: Problema al borrar doc via webservice.

PostPosted:Fri May 13, 2011 6:57 pm
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.