Commit Graph
21 Commits
Author SHA1 Message Date
Atsushi Eno c0c0b38f2c Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:03 +09:00
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
Frank Wilhelm 37329cdd7c Make Validate() less restrictive for contracts with explicit UriTemplate. 2010-10-15 19:41:33 +09:00
Atsushi Eno 5628b49a01 implemented large parts of WCF standard endpoints and configuration support. 2010-09-13 22:36:37 +09:00
Jb Evain 2fc10ac052 fix the net_2_1 build 2010-08-11 10:43:49 +02:00
Atsushi Eno 1451ae1956 2010-07-08 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : Set an a default DispatchOperation to throw 
	  EndpointNotFoundException instead of raising null Invoker error.
	  And add error handler that converts the exception to HTTP 404.


svn path=/trunk/mcs/; revision=160040
2010-07-08 10:29:45 +00:00
Atsushi Eno ed25aa0106 2010-03-19 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : set FilterPriority to make it in higher
	  priority than conflicting endpoints (such as mex endpoint).


svn path=/trunk/mcs/; revision=153876
2010-03-19 02:26:11 +00:00
Jb Evain e1dc31d7ab use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153653
2010-03-16 10:53:59 +00:00
Atsushi Eno b5688b9e2d add experimental monotouch build.
svn path=/trunk/mcs/; revision=144701
2009-10-23 02:37:20 +00: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 e4b911dee6 2009-09-18 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : parameter Wrapped check in Validate() should
	  not be done only for GET.


svn path=/trunk/mcs/; revision=142257
2009-09-19 17:00:08 +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 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 2f38d535fb 2009-09-02 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : BodyStyle is operation specific.


svn path=/trunk/mcs/; revision=141100
2009-09-02 08:47:23 +00:00
Atsushi Eno bdc9b8e0aa 2009-09-01 Atsushi Enomoto <[email protected]>
* WebHttpBehavior.cs : on validation, check wrapped parameter style.


svn path=/trunk/mcs/; revision=141044
2009-09-01 13:11:17 +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