我是新手,所以请善待。我可以调用带有 3 个参数的 Web 服务,但是我只看到请求中的第一个参数
[RestService("/GetServiceData/{wOwner}/{wBlockSize}/{wBlock}")]
public class GetServiceData
{
[DataMember]
public string wOwner { get; set; }
public int? wBlockSize { get; set; }
public int? wBlock { get; set; }
}
我尝试像这样从我的浏览器调用:localhost:62577/servicestack/json/syncreply/GetServiceData/?wOwner=bb5456ce-a022-4ab8-8256-281e8b41aac5&wBlockSize=1000&wBlock=2
但只在 GetServiceData 中设置 wOwner
这个javascript也一样
var pData = {wOwner:'bb5456ce-a022-4ab8-8256-281e8b41aac5', wBlockSize:1000, wBlock:2};
$.ajax({
type: "POST",
url: "http://localhost:62577/servicestack/json/syncreply/GetServiceData",
data: pData,
dataType: "jsonp",
contentType: "application/json",
关于我缺少什么的任何线索?