ReportingService2005.ExecuteBatch Method


在单个数据库事务内执行与批处理 ID 关联的所有方法。Executes all methods that are associated with a batch ID within a single database transaction.

 void ExecuteBatch();
public void ExecuteBatch ();
member this.ExecuteBatch : unit -> unit
Public Sub ExecuteBatch ()


下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头SOAP Headers (In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions 批处理中各个操作的权限。Permissions on individual operations in the batch.

与当前设置的批处理 ID 相关联的所有方法在单个数据库事务的作用域内按其调用顺序执行。All methods that are associated with the currently set batch ID are executed within the scope of a single database transaction in the order in which they are called. 批 ID 包含在每个 Web 服务操作的 SOAP 标头中。The batch ID is contained in the SOAP header for each Web service operation.

若要执行批处理,请将 BatchHeaderValue Web 服务的属性设置为创建批时生成的批 ID。To execute the batch, set the BatchHeaderValue property of the Web service to the batch ID that was generated when the batch was created.

如果在执行批处理时,任何方法调用中发生错误,Report Server 将停止执行并回滚任何以前的操作。If an error occurs in any of the method calls when the batch executes, the report server stops execution and rolls back any previous operations. 当方法调用依赖于成功执行批处理中的其他方法调用时,这非常有用。This is useful when a method call depends on the successful execution of other method calls in the batch.

用户必须对包含在该批中的所有操作具有权限。Users must have permissions on all operations that are included in the batch.

Applies to