08-20-2010 06:59 AM
elete Webscript
DELETE /alfresco/service/….NaNet/deleteNode?nodeid={nodeid}
DELETE /alfresco/service/….NaNet/deleteNode?storeid={storeid}&path={path}
Description: Apaga documentos pelo id
Authentication: user
Transaction: required
Format Style: argument
Default Format: xml
Id: ….NaNet/deleteNode.delete
Description: classpath:alfresco/webscripts/….NaNet/deleteNode.delete.desc.xml
public function exec(noRep:NoRepr):void{
try
{
var model:ModelController = ModelController.getInstance();
var service:HTTPService = new HTTPService;
var url:String = model.configuracoes.protocol + "://" + model.configuracoes.domain + ":" + model.configuracoes.port + model.configuracoes.alfrescoUrlPart + "….NaNet/deleteNode";
service.addEventListener(ResultEvent.RESULT, onResult);
service.addEventListener(FaultEvent.FAULT, onFault);
var params:Object = new Object();
params.alf_ticket = model.dadosPessoa.ticketAlfresco;
//params.storeid= noRep.getStoreId();
//params.path = noRep.getPath();
params.nodeid = noRep.getId();
service.method = "DELETE";
service.url= url;
service.send(params);
}
catch (error:Error)
{
trace("ERROR");
}
}
http://....:8080/alfresco/service/.....NaNet/deleteNode?alf%5Fticket=TICKET%5F9919621338df1820493e50...
[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Erro de fluxo. URL: http://....:8080/alfresco/service/.....NaNet/deleteNode?alf%5Fticket=TICKET%5F9919621338df1820493e50...….."]. URL: http://.....:8080/alfresco/service/......NaNet/deleteNode"]
08-24-2010 04:40 AM
var model:ModelController = ModelController.getInstance();
var service:HTTPService= new HTTPService();
var url:String = model.configuracoes.protocol + "://" + model.configuracoes.domain + ":" + model.configuracoes.port + model.configuracoes.alfrescoUrlPart + "….NaNet/deleteNode";
service.addEventListener(ResultEvent.RESULT, onResult);
service.addEventListener(FaultEvent.FAULT, onFault);
var params:Object = new Object();
params.alf_ticket = model.dadosPessoa.ticketAlfresco;
[b]params.alf_method = "DELETE"[/b]
//params.storeid= noRep.getStoreId();
//params.path = noRep.getPath();
params.nodeid = noRep.getId();
service.url= url;
service.send(params);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.