Commit Graph
219 Commits
Author SHA1 Message Date
Atsushi Eno e7532fc5dd Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:03:31 -07:00
Atsushi Eno b737e5542f Implement support for generic data contract type name with "{x}". 2011-06-28 18:01:38 +09:00
Atsushi Eno e0be05d381 Look for KnownTypeAttributes on known types (recursively). Fixed bug #695203. 2011-05-23 19:27:55 +09:00
Onur Can Cakmak 1961a2e322 Add decimal support to XmlBinaryDictionaryReader 2011-05-13 14:11:55 -04:00
Atsushi Eno 761ef9d9cf Fixed orders in XmlSchemaObjectTable and got some S.R.Serialization tests working. 2011-05-11 16:34:45 +09:00
Atsushi Eno 419fee3d9b CanImport() just returns false, without throwing error. 2011-05-10 22:02:20 +09:00
Atsushi Eno da1f191f52 support import of xs:anyType, as well as make couple of minor fixes. 2011-05-10 21:45:45 +09:00
Atsushi Eno de50f78581 Update XsdDataContractImporter.CanImport and implement ImportXmlType. 2011-05-10 17:40:35 +09:00
Atsushi Eno 7dee1a27a0 Allow xsi:nil for void. Fixed client side of bug #687580. 2011-05-09 13:50:38 +09:00
Atsushi Eno b671fac2c6 Looks like xs:any is allowed under certain condition in XsdDataContractImporter.
But I don't understand why :(
2011-04-28 23:40:00 +09:00
Atsushi Eno 93752ff1c4 moonlight does not like XmlSchemaType but nasty code in KnownTypeCollection :( 2011-04-28 22:08:08 +09:00
Atsushi Eno c05c0686c0 ...and do return Type for all known xs:* types in XsdDataContractImporter. 2011-04-28 20:31:24 +09:00
Atsushi Eno f85bbe3845 Do not reject xsd:* types that are not listed in KnownTypeCollection.
e.g. xs:token.
2011-04-28 20:06:14 +09:00
Atsushi Eno 7f9aff3203 RooArray types were rejected as unknown when it is at root. Fixed bug #688414. 2011-04-21 16:19:15 +09:00
Atsushi Eno be5f140d36 Implement support for KnownTypeAttribute.MethodName. 2011-04-15 15:40:42 +09:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Atsushi Eno 71ffb28338 Looks like WCF serializer supports XmlNode, so we do as well.
for details: http://msdn.microsoft.com/en-us/library/aa347876.aspx

Fixed bug #682957.
2011-03-28 17:09:25 +09:00
Atsushi Eno c5d0bb0915 Fix serialization test build that depended on compiler contravariance bug. 2011-03-24 18:00:58 +09:00
Atsushi Eno d7796bf493 In some collection case, xsi:type is explicitly written. Try to copy that behavior. 2011-03-10 14:33:02 +09:00
Atsushi Eno b1d261b975 Some attempts to make KnownTypeCollection parallel access safe. 2011-03-09 22:50:25 +09:00
Peter Gerbrandt 707b30ed76 Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 13:59:15 +09:00
Atsushi Eno 1cc350f886 Temporarily disable InternalsVisibleTo(System.ServiceModel).
until mcs (in 2-10 or later release) fixes the issue.
2011-03-09 10:18:42 +09: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 0aab2d47c7 Make sure to call MoveToContent() to correctly determine node type.
Fix "Dictionary deserialization from xml with indent" issue.
2011-03-08 14:52:04 +09:00
Atsushi Eno c3cb165080 DateTimeOffset child elements have fixed namespace. 2011-03-08 11:01:57 +09:00
Atsushi Eno 94c253cdbe Couple of fixed to support new DateTimeOffset serialization in .NET WCF. 2011-03-07 16:45:33 +09:00
Atsushi Eno 8753386e4b MakXsdDataContractExporter refactoring to generally use SerializationMap.XmlName.
Fixed bug #670539.
2011-02-17 00:55:15 +09:00
Atsushi Eno 463d8ebf82 Don't reject serialization map for existing different (but same-purpose) type. 2011-02-16 18:48:06 +09:00
Atsushi Eno 1d62f3e9e5 xsi:type parsing is wrong in default namespace resolution.
Fixed case #3 in bug #652331.
2011-02-16 18:02:28 +09:00
Atsushi Eno f4dfb13cc7 KnownTypeCollection; recursively registered type was not added to the collection while it is "registered" state. 2011-02-16 16:04:15 +09:00
Miguel de Icaza b4e0414776 [670974] Use the underlying BaseStream to read bytes instead of trying to peek a character.
Peeking a character as it turns out is a really bad idea as it involves the encoder
to pull characters.   If the PeekChar happens to read a byte that is part of a
UTF8 string that needs more characters to process we would end up with the reported
crash.

Atsushi Enomoto tracked this down, and the fix is to use the binaryreader.BaseStream
to directly call into ReadByte and Read without ever probing with PeekChar ().   It
is not really possible to use BinaryReader.ReadByte since this one can throw on
end-of-buffer conditions instead of returning -1
2011-02-14 09:38:02 -05:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Atsushi Eno 8e916dc39c There's a tricky namespace-mismatching deserialization in .NET implementation.
Fixed bug #666333.
2011-02-08 17:09:26 +09:00
Atsushi Eno ab2cc9fed9 Members in the base type in different namespace are serialized in base ns.
When the serializer serializes a Type B which is derived from A, it used to
serialize member M in A as in namespace_of_B, not in namespace_of_A.

This should fix bug #652331.
2011-02-01 15:53:05 +09:00
Atsushi Eno 4a5f7c742c Contract-based type must ensure that the base type is also contract-based.
Fixed bug #661987 on WCF side.
2011-01-20 16:16:56 +09:00
Atsushi Eno 7977b08ae8 Use DateTime ToBinary() and FromBinary() for DateTime serialization. 2010-12-20 17:17:57 +09:00
Atsushi Eno 1d2fc1166f Fix enum serialization too. 2010-12-14 00:11:33 +09:00
Lluis Sanchez 6eb0ebd56c Fix flags enum deserialization
Flag enums values can be a composition of several
values separated by spaces. The deserializer now
properly handles this case.
2010-12-13 13:49:34 +01:00
Atsushi Eno 85cc330c95 Don't put KnownTypeAttributes on enums. 2010-10-22 16:23:24 +09:00
Atsushi Eno 2e7af0d301 Make generated type names unique. 2010-10-22 15:49:51 +09:00
Atsushi Eno a16debc2c7 When finding SerializationMap for resolved type, use type as the key rather than name.
Make the fixed WCF test show more specific failure details.
2010-10-05 23:59:01 +09:00
Atsushi Eno 158d9db8a2 Fix DataContractResolver.ResolveName() support in deserializer. Add roundtrip test. 2010-10-05 17:43:32 +09:00
Atsushi Eno 47fd1c3a33 Implement DataContractResolver support. At least TryResolveType in serializer should work. 2010-10-05 00:08:15 +09:00
Atsushi Eno 2e0e15d706 Adjust namespace prefix indexes as it is repeatedly used. (It could result in duplicate prefix.) 2010-10-05 00:05:37 +09:00
Atsushi Eno 6f397f56c5 rename source file. 2010-10-01 15:33:11 +09:00
Atsushi Eno 742f259da5 Remove old code. 2010-10-01 15:30:07 +09:00
Atsushi Eno a2b7ad61cc [wcf] serialization member namespace was wrong when root namesp ace is given. Fixed possible infinite loop during DefaultTypeMap initialization.
MS Basic/Contract/Data/POCO sample got working fine.
2010-10-01 11:32:19 +09:00
Atsushi Eno 582a90e800 Add DataContractResolver stuff (dummy), and fix Id reference from inside the referenced object. 2010-09-30 20:56:00 +09:00
Rolf Bjarne Kvinge c81152a0ab XmlFormatterDeserializer: handle ReflectionTypeLoadExceptions better 2010-09-10 12:44:35 +02:00
Jb Evain bd3580ecd8 Factorize the System.Runtime.Serialization monotouch and monodroid sources into a mobile.sources 2010-09-08 18:48:35 +02:00