我有簡單的界面,我想測試它,但我have'nt理解時使用URITemplate:時使用UriTemplate在REST WCF服務
我怎麼會訪問XMLDATA在這種情況下...?
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Wrapped)]
string XMLData(string id);
public class RestServiceImpl : IRestServiceImpl
{
public string XMLData(string id)
{
return "my xml data:" + id;
}
如果我使用用於POST數據的RESTful URI比我要怎麼做? – 2010-11-17 21:02:13
@Randolpho請編輯您的答案,以便我可以收回我意外的投票。 – 2013-07-16 07:45:07
呃...好的。全部編輯:) – Randolpho 2013-07-16 21:15:49