发布对象到wcf休息服务
问题描述:
我在Visual Studio中使用WCF Rest服务应用程序项目模板。我只是了解REST,我想知道我怎么会张贴SampleItem对象以下方法:发布对象到wcf休息服务
[WebInvoke(UriTemplate = "", Method = "POST")]
public SampleItem Create(SampleItem instance)
{
// TODO: Add the new instance of SampleItem to the collection
throw new NotImplementedException();
}
我得到的一般概念中得到的数据抓取的目的,但我不确定我将如何将代码中的对象(或者只是通过浏览器进行测试)发布到服务中。
只需通过浏览器:那么,在这种情况下,你需要像提琴手为了能够建立你的POST请求和发送它关闭 – 2011-01-06 15:51:25
这是一个有用的开始...如果你让这个答案我会接受它。谢谢。 – gleasonomicon 2011-01-10 16:05:30