tags:

views:

186

answers:

1

I am using RESTful WFC's WebInvoke and WebGet attribute classes. In the UriTemplate parameter I want to capture a variable which includes the period character. How do I do so?

So [WebInvoke(Method = "PUT", UriTemplate = "{id}")] [OperationContract] TItem UpdateItemInXml(string id, TItem newValue);

I would like it to match the url: http://service.svc/A.1

A: 

I couldn't find a way to do so. The solution I implemented was to base64 encode the id in the URL.