NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.
After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
* WebMessageEncoder.cs : support Raw message in ReadMessage() too.
Allow null content type.
* WebMessageFormatter.cs : do not depend on WebOperationContext.
add support for Raw format request.
* WebMessageEncodingBindingElementTest.cs : add test for null
content type for ReadMessage() (allowed),
* WebHttpBehaviorTest.cs : add test for deserializing Raw request
message too.
svn path=/trunk/mcs/; revision=160377
* WebMessageFormatter.cs : add support for Raw format.
* WebMessageEncoder.cs : support Raw message. Fixed bug #619542.
* WebHttpBehaviorTest.cs : add test for bug #619542 (not sure if it
works on mono; run-test is broken in trunk. Verified under .NET).
svn path=/trunk/mcs/; revision=160341
* JsonQueryStringConverter.cs : objects are regarded serializable as
long as they are public here, with some exceptions (not implemented).
* JsonQueryStringConverterTest.cs : add more tests for CanConvert()
and reorganized some classes to make tests rational.
svn path=/trunk/mcs/; revision=157795
* DataContractJsonSerializer.cs, JsonSerializationWriter.cs:
alwaysEmitTypeInformation is false by default. It is for __type
attribute, not for type attribute. __type name is always with ":#".
* TypeMap.cs : sort members in default typemap (it is ordered).
Uncomment EmitDefaultValue.
* JsonWriter.cs : handle "null" string (it is somewhat messy).
* WebMessageEncoder.cs : use alwaysEmitTypeInformation to output
object __type.
* DataContractJsonSerializerTest.cs : added test for
alwaysEmitTypeInformation argument.
svn path=/trunk/mcs/; revision=143748
* JsonQueryStringConverter.cs : add custom body name support (used.
for AJAX). Handle string value (in very LAMESPEC way).
* WebMessageFormatter.cs : add custom body name support.
Slightly changed reply serialization.
Convert deserialized values using QueryStringConverter.
* WebScriptEnablingBehavior.cs : use JsonQueryStringConverter, with
"d" wrapper name. Allow only WrappedRequest.
* JsonQueryStringConverterTest.cs : added some string deserialization
test. It just proved .NET is too lame.
svn path=/trunk/mcs/; revision=143747
* WebMessageFormatter.cs : also fix wrapped message deserialization.
It should expect FooResponse (body WrapperName), not FooResult
(ReturnValue part Name).
svn path=/trunk/mcs/; revision=143694
* WebMessageFormatter.cs : when they serialize Wrapped message, it
first writes "root" and then the wrapper element.
svn path=/trunk/mcs/; revision=143689
* WebMessageFormatter.cs : it was not returning value with correct
wrapper name/namespace. Fix interop with .NET client.
svn path=/trunk/mcs/; revision=141121
* WebMessageFormatter.cs : Made the same prohibition for dispatch
formatters too. Support WebMessageBodyStyle on dispatcher side too.
svn path=/trunk/mcs/; revision=141117