ServiceStack请求具有多个参数的DTO

时间:2013-03-20 03:12:07

标签: servicestack

我是新手,所以请善待。 我可以调用我的Web服务,它接受3个参数,但是我只看到请求中的第一个参数

[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& ampwBlockSize = 1000& ampwBlock = 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",

我遗失的任何线索?

0 个答案:

没有答案