<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.