9 Commits
Author SHA1 Message Date
Marek Habersack d4bb1c86b7 [wcf] make /js and /jsdebug dispatchers work.
There were several issues here:

- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
  ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
  This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
  dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
  when it should first try to find one whose URL matches the current request exactly.
2010-10-20 15:04:37 +02:00
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 3ae78fa0b4 2009-10-07 Atsushi Enomoto <[email protected]>
* WebScriptServiceHostFactory.cs : I have to again revert the
	  previous change; it does fill endpoints regardless of hosting
	  environment (now with tests).

	* WebScriptEnablingBehavior.cs : validate body style.
	* WebHttpBehavior.cs : operations could miss WebGet/WebInvoke and
	  we should not crash by NRE because of missing of those atts.

	* WebScriptServiceHostFactoryTest.cs : add tests for contract and
	  wrapped validity.


svn path=/trunk/mcs/; revision=143637
2009-10-07 12:57:57 +00:00
Atsushi Eno fb33429aff 2009-10-06 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : fix listen uri which used to result
	  in unexpected relative recalculation against the base uri.


svn path=/trunk/mcs/; revision=143546
2009-10-06 18:18:54 +00:00
Atsushi Eno a39726ff89 2009-09-17 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : basic implementation. Create custom
	  ChannelDispatchers for "/js" and "/jsdebug" like we do for
	  /wsdl (ServiceMetadataExtension). And they return Javascript
	  generated from ProxyGenerator in Sys.Web.Extensions.

	* WebMessageEncoder.cs : handle /js and /jsdebug specially, as raw
	  javascript stream.

	* Makefile : add -r:System.Web.Extensions.dll.


svn path=/trunk/mcs/; revision=142129
2009-09-17 18:13:49 +00:00
Atsushi Eno e4b8b41c57 2009-08-06 Atsushi Enomoto <[email protected]>
* WebScriptEnablingBehavior.cs : revert GetQueryStringConverter().
	  (MSDN missing entry issue.)


svn path=/trunk/mcs/; revision=139461
2009-08-06 03:39:11 +00:00
Atsushi Eno 14c172a9e2 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  implemented properties as in documented way.
	  Remove extra derived GetQueryStringConverter().


svn path=/trunk/mcs/; revision=139395
2009-08-05 09:54:14 +00:00
Atsushi Eno 17c5d00055 2009-08-05 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs, WebScriptEnablingBehavior.cs :
	  mostly implemented Validate().


svn path=/trunk/mcs/; revision=139394
2009-08-05 09:28:31 +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