Commit Graph
11 Commits
Author SHA1 Message Date
Atsushi Eno cd263cb1f4 2009-10-08 Atsushi Enomoto <[email protected]>
* 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
2009-10-08 08:59:56 +00:00
Atsushi Eno c213f959b4 2009-10-07 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : revert and fix wrapper name change. XML
	  and JSON have different serialization.


svn path=/trunk/mcs/; revision=143697
2009-10-07 18:30:51 +00:00
Atsushi Eno baedd9881f 2009-10-07 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : also fix wrapped message deserialization.
	  It should expect FooResponse (body WrapperName), not FooResult
	  (ReturnValue part Name).


svn path=/trunk/mcs/; revision=143694
2009-10-07 17:48:01 +00:00
Atsushi Eno 85da709567 2009-10-07 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : when they serialize Wrapped message, it
	  first writes "root" and then the wrapper element.


svn path=/trunk/mcs/; revision=143689
2009-10-07 17:10:27 +00:00
Atsushi Eno 2e58802be5 2009-10-07 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : JSON writer does not support namespace.


svn path=/trunk/mcs/; revision=143635
2009-10-07 12:53:36 +00:00
Atsushi Eno f8705002b6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : it was not returning value with correct
	  wrapper name/namespace. Fix interop with .NET client.


svn path=/trunk/mcs/; revision=141121
2009-09-02 11:41:43 +00:00
Atsushi Eno b231dcede6 2009-09-02 Atsushi Enomoto <[email protected]>
* WebMessageFormatter.cs : Made the same prohibition for dispatch
	  formatters too. Support WebMessageBodyStyle on dispatcher side too.


svn path=/trunk/mcs/; revision=141117
2009-09-02 11:04:52 +00:00
Atsushi Eno d64b10b0c7 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : now message formatters are pairs of request/
	  reply formatters.

	* WebMessageFormatter.cs : override some serialization methods as
	  prohibited.

	* WebHttpBehaviorTest.cs : some message formatters tests.


svn path=/trunk/mcs/; revision=141112
2009-09-02 10:35:08 +00:00
Atsushi Eno 36942bc07b 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpDispatchOperationSelector.cs : use common extension method.
	* WebMessageFormatter.cs : support WebMessageBodyStyle(.Wrapped*).
	  Cache serializers.


svn path=/trunk/mcs/; revision=141102
2009-09-02 08:53:30 +00:00
Atsushi Eno fb60368a09 2009-07-28 Atsushi Enomoto <[email protected]>
* OutgoingWebRequestContext.cs : implement.

	* WebMessageFormatter.cs : apply OutgoingRequest if available.


svn path=/trunk/mcs/; revision=138782
2009-07-28 03:21:20 +00:00
Jb Evain 982e3b35a4 move to from olive to mcs
svn path=/trunk/mcs/; revision=111188
2008-08-20 21:25:05 +00:00