fellowcheng提出
webservice提供个回滚方法 
请问我该如果才能通知它回滚呢?????

解决方案 »

  1.   

    伪代码:
    operationA.beginTransaction()
    operationA.doWork()
    bool success = webserviceB.doWork() //webservice返回是否操作成功
    if(success)
       operationA.commit()
    else
       operationA.rollback()
      

  2.   

    回vosov
    //开始事务
    //调用webservice的修改方法
    localhost.Service sv = new Sdt.transactionTest.localhost.Service();
    sv.UpdateTest();
    //调用本地插入方法
    InsertTest();
    //提交事务    
    当sv.UpdateTest成功
    而InsertTest失败的时候
    我通过何种方法可以让sv.UpdateTest回滚??
    通过System.Transactions类中的 TransactionScope
    实现不了,它不能让webservice方法实现回滚