I'm struggling sending a PUT request to WCF in format that it expects. I was thinking I could send it much like a GET with a QueryString, but that just kicked back errors.
//Put operation
[OperationContract]
[WebInvoke(UriTemplate = "?tid={transcriptId}&qId={quizId}&cid={choice}&mid={mbox}&status={status}", Method = "PUT", RequestFormat=WebMessageFormat.Json)]
vTranscript UpdateTranscript(string transcriptId, string quizId, string choice, string mbox, string status);
I also tried sending as XML and JSON file using CURL, but the values from those files weren't picked up by the service (values were null).
[DataContract]
public class vTranscript
{
[DataMember]
public bool validUser;
[DataMember]
public bool correctAnswer;
[DataMember]
public bool recorded;
}
I'm assuming that my vTranscript does not have to match the parameters I pass in, though I even tried that.
I'm not sure what I'm doing incorrectly. Any suggestions would be greatly appreciated. Thank you.