Commit Graph
204 Commits
Author SHA1 Message Date
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Atsushi Eno ff0aa4e036 Revert GET switch for serializing requests. BodyWriter handles it better. 2011-08-24 18:11:25 -07:00
Atsushi Eno eb1d9dc2da for GET request, just skip the member. It does not contain xml for null. 2011-08-24 16:46:08 -07:00
Atsushi Eno 3d385eb270 Skip serialization when the return type is void.
This batch should fix bug #206.
2011-08-24 12:14:48 -07:00
Atsushi Eno 6bdb4baa47 Differentiate GET query parameter binding from another request binding.
This is one core of the bugfix for #206.
2011-08-24 12:05:05 -07:00
Atsushi Eno 78c5897e95 When there was no path parameter, it ignored the whole path part. 2011-08-24 12:02:38 -07:00
Atsushi Eno cc8c07fb8c UriTemplate should not be mandatory, make it optional. Fix unit test. 2011-08-23 11:31:06 -07:00
Atsushi Eno 34041c160f fix build regarding ContentType. 2011-07-19 09:05:27 +09:00
Atsushi Eno 226c2db9ac Implement support for Stream param with WebHttpBinding raw content format. 2011-06-28 20:43:13 +09:00
Atsushi Eno c657187050 Set "Encoder" property when Message was read from MessageEncoder. 2011-06-14 19:17:20 +09:00
Atsushi Eno 012a859db4 Fix 2.0 build. 2011-06-13 21:35:16 +09:00
Atsushi Eno 8219d05935 Implement OnWriteBodyContents() and add message buffer support for RawMessage. 2011-06-13 20:05:27 +09:00
Atsushi Eno b76593fe9a Support WebHttpBinding configuration. 2011-05-31 20:56:30 +09:00
Atsushi Eno 77ed4bb435 Support named wildcard in UriTemplate matching. Fixed bug #693996. 2011-05-23 20:31:00 +09:00
Atsushi Eno 485259aae8 Do not take host part into consideration on comparing URLs.
It blocks access by different host name (e.g. localhost vs. IP).
This was part of bugfix #687580 (forgot to commit).
2011-05-13 21:52:31 +09:00
Andreia Gaita d8dc259299 [json] revert part of 382a385a8f, it regresses moon drt 983 2011-05-03 21:54:42 +01:00
Atsushi Eno 8a8df8387b Return null for empty message in WebMessageFormatter. Useful eror messages. 2011-04-15 23:49:39 +09:00
Atsushi Eno 312c9268b1 Prefer immutable string return for ease of debugging in UriTemplate. 2011-04-15 20:03:12 +09:00
Atsushi Eno 15d313b0e3 Fix regression for counter case to 6005f0a7.
http://localhost/x + X should not result in http://localhost/xX.
2011-04-15 16:37:58 +09:00
Atsushi Eno 0dde95d9af Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:38:09 +09:00
Atsushi Eno 52da339835 Looks like .NET accepts non-integer numbers as int. Smells bogus though. 2011-04-06 22:02:58 +09:00
Atsushi Eno 01671273bb Fix build, looks like ArrayList is internally available in moon. 2011-04-05 23:05:43 +09:00
Atsushi Eno 382a385a8f Collection support in JSON serializer was actually for any IEnumerable. 2011-04-05 20:55:32 +09:00
Atsushi Eno 696ff71de2 Revert PushbackReader changes (was unnecessary and actually bogus). 2011-04-05 20:26:09 +09:00
Atsushi Eno 7a32f7a4a1 null value also outputs "type='null' in WCF JSON writer. 2011-04-05 19:47:54 +09:00
Atsushi Eno 5670f5b5ce Auto-detect text encoding from input stream for JsonReader. Fix DBCS pushback. 2011-04-05 18:22:56 +09:00
Atsushi Eno 3f0fe0dcde IDictionary`2 serialization support was missing in DataContractJsonSerializer.
Fixed bug #685042.
2011-04-05 13:19:54 +09:00
Sebastien Pouliot fc47bc9340 AppDomain.GetAssemblies() is available (it's internals) in Moonlight
* JsonSerializationReader.cs: Remove #if wrt MOONLIGHT since the API
is available (internal but Moonlight's mscorlib has an IVT on S.SM)
2011-04-04 08:24:25 -04:00
Atsushi Eno 60300f821d A bit less !NET_2_1 and !MOONLIGHT in Sys.ServiceModel.Web. 2011-04-02 04:10:09 +09:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Atsushi Eno 2249e62299 Cosmetic corcompare-based updates in Sys.SM.Web. 2011-03-28 21:17:24 +09:00
Atsushi Eno 7917753273 null JSON type must be handled in JsonWriter. 2011-03-26 21:27:19 +09:00
Atsushi Eno ea7e0d189a Do not always assume ascii == 1 byte in JsonWriter. Fix utf-16 usage. 2011-03-26 21:00:16 +09:00
Atsushi Eno c0c0b38f2c Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:03 +09:00
Miguel de Icaza 4a7c594eb1 [System.Json] Fix loader.
The current loader failed with some Json strings due to the implementation
of the BufferedStreamReader.   Removed that implementation completely,
and instead depend on the StreamReader to do the actual BOM detection.

This removes the JavaScriptObjectDeserializer.cs file
2011-03-08 17:54:28 -05:00
Atsushi Eno 96ca8b4b42 More xml output fixes in XmlSyndicationContent and SydicationElementExtension.
They have couple of complicated xml outputs in both GetReader(AtContent)
and Write(Contents)To methods... check new tests for details.
2011-03-08 22:04:18 +09:00
Atsushi Eno eafe520c4b Couple of fixes around XmlSyndicationContent.GetReaderAtContent().
- The returned XmlReader is positioned at the beginning of the element.
- XmlSyndicationContent.GetReaderAtContent() returns XmlReader that begins
  with the "wrapper" which is dummy Atom 1.0 content element.
2011-03-08 18:56:00 +09:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Geoff Norton 7f2d20a0a8 Work around a full-aot issue for monotouch System.Json 2011-01-25 01:50:57 -05:00
Atsushi Eno 7a0f8f89a0 Fix bogus encoding detection in JavaScriptObjectDeserializer. 2011-01-21 12:09:42 +09:00
Atsushi Eno 2464cfc869 Read body content if required. Fixed all issues in bug #656020.
Now it considers message content format and IsWrapped[Request|Response] to
retrieve XmlObjectSerializer.
2011-01-20 15:32:33 +09:00
Atsushi Eno 997a5664a9 Enable duplicate "UriMatched" error check, with couple of FIXMEs.
.NET is very unclear about those UriTemplate behavior. Too minor to mind.
2011-01-19 20:22:45 +09:00
Atsushi Eno 7d5b5a1b7f Fix template match logic to first check HTTP-method-matching ones.
Part of the fix for bug #656020.
2011-01-19 19:01:49 +09:00
Atsushi Eno e96fbeb319 Serialize non-mapped message parameter as body content. Part of bug #656020 fix. 2011-01-19 17:05:07 +09:00
Marek Safar c8c8fc7769 Fixed missing protected internal modifier 2011-01-08 19:26:53 +00:00
Marek Habersack 6005f0a7df [wcf] UriTemplate must trim the first leading slash in the rendered template.
When using BindBy{Name,Position} UriTemplate must remove the the first slash from
the rendered URI. This fixes the 4 failing tests.
2011-01-04 13:56:12 +01:00
Joe Dluzen c740b96462 Fix for #656021. 2010-12-04 17:27:15 -05:00
Marek Habersack 8a63927fd1 [wcf] .NET allows for service contract methods to be decorated only by Web{Get,Invoke}Attribute
Usually WCF requires that each service method is marked with the OperationContract attribute with the exception
of methods decorated with the Web{Get,Invoke}Attribute attributes which are defined in System.ServiceModel.Web.
This patch adds a simple way to extend the ContractDescriptionGenerator in order to provide this functionality
without circular dependency of System.ServiceModel on System.ServiceModel.Web. Several extenders can be registered
with the description generator and they will be invoked in the registration order until any of them returns 'true'.
Extenders are passed a reference to the OperationContract attribute with which the current method is decorated - if
the reference is null, the extender should create a default instance of the attribute so that the description generator
considers the method as one to be included in the contract description.
2010-11-10 19:22:26 +01:00
Andreia Gaita 5f78cb8870 [JsonWriter] Fix JsonWriter yet again. Behaviour of WriteRaw on .net and sl is
different, so ifdef to make everyone happy!
2010-10-29 16:03:57 +01:00
Atsushi Eno 5a406fd3a3 Fix JsonWriterTest.WriteRaw() regression. WriteRaw() is (looking) almost identical to WriteString() here. 2010-10-29 13:30:35 +09:00