Reputation: 6451
I have WCF webservice that has contract like this
[OperationContract]
void UpdateEncounterStatus(int BookingID, string BookingStatus);
and in the class
[WebInvoke(Method = "POST",
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "UpdateEncounterStatus/{BookingID}/{BookingStatus}")]
public void UpdateEncounterStatus(int BookingID, string BookingStatus)
but when call it , I get
Operation 'UpdateEncounterStatus' in contract 'IPMA' has a path variable named 'BookingID' which does not have type 'string'. Variables for UriTemplate path segments must have type 'string'.
and when change the parameter to string I got
method not allowed any idea how to fix that
Upvotes: 0
Views: 1347