<wsdl:operation name="AddWithThreeOperands">

[OperationContract(Name = "AddWithTwoOperands")]

double Add(double x, double y);

class MyCalculatorClient:ClientBase<IMyCalculator>,IMyCalculator
{

    
public double Add(double x, double y)
     {
         
return this.Channel.Add(x, y);
     }

}

关键是ClientBase以及重写的IMyCalculator.

posted on 2012-11-20 15:13  逝者如斯(乎)  阅读(132)  评论(0编辑  收藏  举报