1
我想知道为什么当我使用WCF作为Web服务时,客户端中的类名称更改为“MyClass”+ Client。WCF客户端类名称
如何避免在我的WSDL中添加“客户端”部分?
我的服务合同:
<ServiceContract()>
Public Interface IOfficeEvaluation
End Interface
我的Web服务类:
<AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Allowed)>
Public Class OfficeEvaluation
Implements IOfficeEvaluation
End Class
我的客户(用途):
public partial class WebServiceSample : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
var ws = new OfficeEvaluation.OfficeEvaluationClient();
}
}
在使用中,你可以看到我已经搞定了一个实例
OfficeEvaluationClient
,并在类名的末尾添加实在是我的神经
我怎样才能摆脱客户端的一部分?