Commit Graph
45 Commits
Author SHA1 Message Date
Atsushi Eno 2b72c6bdf2 [aspnet/ajax] fix bug #6512 (by Mikkel Kruse Johnsen) - don't deserialize GET parameters. 2014-09-09 15:09:27 +08:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Marek Safar 42cdbf3f8f Make System.Web.Script.Serialization.JavaScriptSerializer.ConvertToType(Type, object) public. Fixes #2781 2012-01-09 21:46:52 +00:00
Marek Habersack aec7b258f4 [asp.net,wcf] WCF proxies are generated using a slightly different mode of operation.
WCF proxies don't include full namespace of the contract.
2010-10-20 16:07:21 +02:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Marek Habersack 486d604f93 2010-01-18 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: partial revert of r146546. The 'd' wrapper
	(and thus the JsonResult class) is needed after all. Fixes bug
	#571365

svn path=/trunk/mcs/; revision=149756
2010-01-18 17:42:38 +00:00
Marek Habersack 0dd5890dab 2009-11-19 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: removed the JsonResult class - it has no use
	and it can break applications (e.g. Umbraco)

2009-11-19  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: made Normalize internal

2009-11-19  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: IsDefinitionAllowed now normalizes the
	passed configuration path, so that MachineToApplication sections

	* WebConfigurationManager.cs: use an rw lock to protect access to
	sectionCache. This is now necessary as the save handler clears the
	cache.

svn path=/trunk/mcs/; revision=146546
2009-11-19 15:18:34 +00:00
Atsushi Eno dd409abf0e 2009-10-08 Atsushi Enomoto <[email protected]>
* Makefile : add -r:System.ServiceModel.
	* System.Web.Extensions_test.dll.sources : add ProxyGeneratorTest.cs.

	* LogicalTypeInfo.cs, RestHandler.cs : add support for WCF proxy
	  generator. Make LogicalTypeInfo and LogicalMethodInfo abstract
	  and create sets of derivation for asmx and WCF. Large part of the
	  code still lives in abstract class, being reduced dependency on
	  ScriptServiceAttribute.

	* ProxyGeneratorTest.cs : new test, for WCF AJAX interop.


svn path=/trunk/mcs/; revision=143755
2009-10-08 11:18:15 +00:00
Marek Habersack 1a9392fea7 2009-08-15 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: make sure JavaScriptSerializer instance used
	here reads custom converters from web.config. Fixes bug #525589

svn path=/trunk/mcs/; revision=140004
2009-08-15 02:23:55 +00:00
Robert Jordan 55bb3a5122 2009-06-14 Robert Jordan <[email protected]>
* ScriptHandlerFactory.cs: handle precompiled web services.


svn path=/trunk/mcs/; revision=136163
2009-06-15 20:34:46 +00:00
Gonzalo Paniagua Javier 6b9583ba66 2009-04-07 Gonzalo Paniagua Javier <[email protected]>
* ClientProxyHandler.cs: set cacheability to public.


svn path=/trunk/mcs/; revision=131195
2009-04-07 06:56:55 +00:00
Marek Habersack 36b91af2a3 2009-04-03 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: don't throw NREX when the passed type
	doesn't have a parameterless constructor in
	ShouldGenerateScript. Fixes bug #485435

svn path=/trunk/mcs/; revision=130982
2009-04-03 16:38:25 +00:00
Marek Habersack 0d78066093 2009-01-26 Marek Habersack <[email protected]>
* ClientProxyHandler.cs: before generating the proxy check if the
	service type is decorated with the [ScriptService] custom
	attribute. Only such service types can be called from client
	JavaScript.

2009-01-26  Marek Habersack  <[email protected]>

	* ScriptManager.cs: before registering script service reference
	check if the service type is decorated with the [ScriptService]
	custom attribute. Only such service types can be called from
	client JavaScript.

svn path=/trunk/mcs/; revision=124547
2009-01-26 18:58:04 +00:00
Marek Habersack 1905082013 2008-09-23 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: do not use
	LazyDictionary as enum serializer anymore.

	* ProfileService.cs: do not use
	LazyDictionary as ProfileService serializer anymore.

	* RestHandler.cs: do not use
	LazyDictionary as the Exception or NameValueCollection serializer
	anymore.

2008-09-23  Marek Habersack  <[email protected]>

	* JavaScriptSerializer.cs: removed the LazyDictionary class, it's
	not needed anymore.


svn path=/trunk/mcs/; revision=113832
2008-09-23 14:55:49 +00:00
Marek Habersack 6c2057c3ca 2008-08-28 Marek Habersack <[email protected]>
* System.Web.Script.Services/LogicalTypeInfo.cs: Invoke does not
	convert context to System.Object.
	If context is descendant from JavaScriptSerializer.LazyDictionary
	it is converted to a regular Dictionary <string, object> before
	passing to the service method.

2008-08-28  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: each value stored in an enumerable is treated
	as a top-level object.

svn path=/trunk/mcs/; revision=111801
2008-08-28 13:13:35 +00:00
Igor Zelmanovich ff41f007d1 merge r96167:96168
svn path=/trunk/mcs/; revision=96169
2008-02-19 17:19:33 +00:00
Konstantin Triger 0c10b0cc36 ensure the authenticationService is enabled
svn path=/trunk/mcs/; revision=94368
2008-01-30 12:43:36 +00:00
Konstantin Triger 873dd8b51b implemented AuthenticationService, ProxyGenerator
svn path=/trunk/mcs/; revision=94367
2008-01-30 12:28:32 +00:00
Igor Zelmanovich 5e5d411740 removed TARGET_JVM ifdef
svn path=/trunk/mcs/; revision=94139
2008-01-28 15:36:52 +00:00
Igor Zelmanovich 5aef603929 fixed web service proxy generation.
svn path=/trunk/mcs/; revision=93394
2008-01-21 14:41:54 +00:00
Igor Zelmanovich 9a8b84d454 fixed GenerateScriptTypes feature
consider generics types.

svn path=/trunk/mcs/; revision=93031
2008-01-16 13:07:34 +00:00
Igor Zelmanovich 785c5c7e61 register namespaces for script types if need
svn path=/trunk/mcs/; revision=93024
2008-01-16 10:25:40 +00:00
Igor Zelmanovich c6f31c8150 fixed GenerateScriptTypes feature
svn path=/trunk/mcs/; revision=92963
2008-01-15 17:04:38 +00:00
Igor Zelmanovich 61f9bec4ab removed #if NET_3_5,
upgraded to 3.5 version instead

svn path=/trunk/mcs/; revision=92081
2008-01-01 09:20:53 +00:00
Igor Zelmanovich 7dd4bec7e8 adjust rest services for 3.5 versions of client scripts
svn path=/trunk/mcs/; revision=92059
2007-12-31 12:29:04 +00:00
Konstantin Triger 9fbfd4fb7c implement Profile service
svn path=/trunk/mcs/; revision=83270
2007-08-02 09:10:50 +00:00
Konstantin Triger d1965ea6df add support for ScriptMethodAttribute.XmlSerializeString
svn path=/trunk/mcs/; revision=83152
2007-08-01 07:43:28 +00:00
Konstantin Triger 768d0dd3e3 auto generate script types for method params
svn path=/trunk/mcs/; revision=83066
2007-07-31 11:14:01 +00:00
Igor Zelmanovich 4ce6430f78 consider TARGET_J2EE doesn't support PathInfo in url
svn path=/trunk/mcs/; revision=82984
2007-07-30 14:06:49 +00:00
Konstantin Triger b0245f0b7a Do not pretty format xml output
svn path=/trunk/mcs/; revision=82931
2007-07-29 13:08:17 +00:00
Konstantin Triger 6e76d3dd8e cached anyway
svn path=/trunk/mcs/; revision=82920
2007-07-29 08:45:19 +00:00
Konstantin Triger c515e5a8f8 access ws proxy using relevant methods (net 3.5)
svn path=/trunk/mcs/; revision=82919
2007-07-29 08:41:03 +00:00
Igor Zelmanovich 559503b6c4 consider TARGET_J2EE limitation for PathInfo
svn path=/trunk/mcs/; revision=82782
2007-07-26 14:30:48 +00:00
Konstantin Triger a7d0ee0dc9 add exception handling support
svn path=/trunk/mcs/; revision=82564
2007-07-24 13:39:36 +00:00
Konstantin Triger 4388d76fc5 implemented session support
svn path=/trunk/mcs/; revision=82516
2007-07-23 16:03:00 +00:00
Konstantin Triger 8da552e69f refactoring
svn path=/trunk/mcs/; revision=82515
2007-07-23 16:01:45 +00:00
Konstantin Triger e10cbc9a6d set caching
svn path=/trunk/mcs/; revision=82480
2007-07-23 11:24:50 +00:00
Igor Zelmanovich 01530d85ce fixed service proxy for PageMethods
svn path=/trunk/mcs/; revision=82191
2007-07-18 11:57:14 +00:00
Igor Zelmanovich 0fbd8e2b37 JavaScriptSerializer.Deserialize method returns correct type object.
javascripts array is deserialized into object[] type.

svn path=/trunk/mcs/; revision=81321
2007-07-04 07:49:55 +00:00
Igor Zelmanovich bd45e92270 Implemented EnablePageMethods feature
svn path=/trunk/mcs/; revision=81238
2007-07-03 12:05:08 +00:00
Igor Zelmanovich 103ef85cd9 make ScriptMethodAttribute is optionally
svn path=/trunk/mcs/; revision=81224
2007-07-03 07:46:47 +00:00
Konstantin Triger 6e69e90f95 initial script services implementation
svn path=/trunk/mcs/; revision=81191
2007-07-02 16:26:06 +00:00
Konstantin Triger 90948d1ea4 implement GenerateScriptTypeAttribute.ScriptTypeId
svn path=/trunk/mcs/; revision=81188
2007-07-02 16:16:32 +00:00
Igor Zelmanovich 6ba62cd237 Initial drop for System.Web.Extensions assembly
svn path=/trunk/mcs/; revision=78103
2007-05-29 09:22:35 +00:00