Revised answer:
The URI pattern will not work for using curl to send a request to a web service. WebInvoke expects the POST body to be either XML or JSON.
WebMessageBodyStyle.Bare does not work because you have 2 parameters, so you need to wrap.
[OperationContract]
[WebInvoke(BodyStyle = WebMessageBodyStyle.Wrapped)]
string PostMethod(string varString, bool varBool);
:
<PostMethod xmlns="http://tempuri.org/"><varString>1</varString><varBool>true</varBool> </PostMethod>
UriTemplate, URI, POST, .
, , - JSON
[OperationContract]
[WebInvoke(BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json)]
string PostMethodJson(string varString, bool varBool);
, :
curl -d"{\"varString\":\"so99\",\"varBool\":\"true\"}" -i -X POST -H "Content-Type:application/json" http://localhost:3000/MyService/PostMethodJson