0

我已经设置了两个项目。一是WCF服务项目,合同如下:

[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "xml/{filterName}/{filterValue}")]
XmlElement XMLDataWithFilter(string filterName, string filterValue);

其他项目使用此 WCF 服务。当我使用其他一些参数调用 WCF 服务时,参数值filterName和第一次调用发送的值保持不变。filterValue

为什么 WCF 服务会保留参数的值?

4

0 回答 0