I'm hosting my first WCF service in IIS. I have two methods, 1 to set a string variable on the WCF Service, and the other to retrieve it. The interface used is:
[OperationContract]
string ReturnText();
[OperationContract]
void SetText(string s);
BasicHttpBinding is used. Stepping through the service with the debugger from the client reveals that the value of the string is set correctly using SetText, but when I immediately do a return text, the string is back to null.
Probably a simple one I know, but I thought that all values on the WCF service were retained between opening the service connection and closing it.
Why is the value lost between the Set and Gets?