我需要创建一个 Post WCF 操作。我需要用户传入几个参数。我看到的所有示例都假设用户只会发送一个参数。我怎样才能做到这一点?客户端发送的网址不会很长吗?
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "changeStatus/{ID}/{userID}/{activityDate}/{locationID}/{attachmentID}/{descriptionID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
void ChangeStatus(Guid ID, Guid userID, DateTime activityDate, Guid locationID, Guid attachmentID = default(Guid), Guid descriptionID = default(Guid));