Commit Graph
85 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
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 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 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
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
Peter Gerbrandt 707b30ed76 Implement support for QNameIndex (0xBC) in attribute nodes. 2011-03-09 13:59:15 +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 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 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 582a90e800 Add DataContractResolver stuff (dummy), and fix Id reference from inside the referenced object. 2010-09-30 20:56:00 +09:00
Atsushi Eno c8935e97b6 KnownTypes should return the actual types. 2010-08-06 19:41:35 +09: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
Atsushi Eno b4b4b59a8f 2010-06-02 Atsushi Enomoto <[email protected]>
* XmlBinaryDictionaryReader.cs : reset name in Reset().
	   Fixed bug #599479.

	* XmlObjectSerializerTest.cs : enable binary reader test for #601785.


svn path=/trunk/mcs/; revision=158317
2010-06-02 07:42:42 +00:00
Atsushi Eno a0e53fd493 2010-06-01 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : added test for bug #601785, based on
	  the test by Raja Harinath.


svn path=/trunk/mcs/; revision=158252
2010-06-01 04:49:17 +00:00
Atsushi Eno 0c939881ae 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, XmlFormatterSerializer.cs,
	  DataContractSerializer.cs :
	  support DataContractSerializer.PreserveObjectReferences. z:Ref
	  attributes are used not only for objects with IsReference=true.
	  Fixed bug #610036.

	* XmlObjectSerializerTest.cs : test PreserveObjectReferences too.


svn path=/trunk/mcs/; revision=158201
2010-05-31 11:31:04 +00:00
Atsushi Eno 29cb0e4f69 2010-05-31 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : contract namespace
	  should be still considered even if contract (local) name is null.
	  Fix crash for generic derived type of dictionary. Fixed the
	  primary (crasher) part of bug #610036.

	* XmlObjectSerializerTest.cs : add test for bug #610036.


svn path=/trunk/mcs/; revision=158197
2010-05-31 10:32:30 +00:00
Atsushi Eno 54fdf2a775 2010-04-28 Atsushi Enomoto <[email protected]>
* KnownTypeCollection.cs : support DataContractNamespaceAttribute.
	  Fixed bug #599889.

	* XmlObjectSerializerTest.cs : add test for bug #599899.


svn path=/trunk/mcs/; revision=156277
2010-04-28 01:08:01 +00:00
Atsushi Eno b94ce5cb72 2010-03-04 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : return array instance if the runtime type is
	  an array (it used to return ArrayList without conveting to array).

	* XmlObjectSerializerTest.cs : test for empty array deserialization.


svn path=/trunk/mcs/; revision=153004
2010-03-04 10:03:23 +00:00
Atsushi Eno 25414103fa 2010-03-01 Atsushi Enomoto <[email protected]>
* SerializationMap.XsdExporter.cs, XsdDataContractExporter-new.cs:
	  refresh implementation to reflect the latest WCF impl.
	* SerializationMap.cs : make types partial.

	* XsdDataContractExporterTest.cs : remove [NotWorking].

	* System.Runtime.Serialization.dll.sources: use new implementation
	  (will be renamed later).


svn path=/trunk/mcs/; revision=152657
2010-03-01 09:56:10 +00:00
Atsushi Eno c5943145a2 2010-02-19 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : added dictionary support.

	* ns28.xsd ... ns31.xsd : new test files.
	* ns-readme.txt : added above.

	* XsdDataContractImporterTest.cs : added Dictionary export tests.


svn path=/trunk/mcs/; revision=152071
2010-02-19 13:33:48 +00:00
Atsushi Eno 0a3874559f 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs, XsdDataContractImporter.cs :
	  replaced implementation.
	* ImportOptions.cs : add correct MonoTODOs.

	* XsdDataContractImporterTest.cs : enabled new tests.


svn path=/trunk/mcs/; revision=151975
2010-02-18 11:57:44 +00:00
Atsushi Eno 567c75b0eb 2010-02-18 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : output [KnownType] to expose
	  base/derived type relationship.

	* ns-readme.txt : another line of note.


svn path=/trunk/mcs/; revision=151973
2010-02-18 11:46:26 +00:00
Atsushi Eno 1f355fc554 2010-02-17 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter-new.cs : refresh implementation that is
	  not based on xml serialization. Not enabled yet.
	* KnownTypeCollection.cs : add cosmetic comment.

	* ns0,xsd ... ns27.xsd : new test files.
	* ns-readme.txt : description.

	* XsdDataContractImporterTest.cs : added a bunch of tests for new
	  implementation. Disable yet.


svn path=/trunk/mcs/; revision=151902
2010-02-17 11:28:31 +00:00
Atsushi Eno 33843bfcf9 2010-02-09 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : add appropriate code namespaces
	  imported from xsd namespace.

	* XsdDataContractImporterTest.cs : add test that it gives
	  appropriate code namespaces.

	* schema3.xsd : new test file.


svn path=/trunk/mcs/; revision=151085
2010-02-09 08:01:48 +00:00
Atsushi Eno e8407d43b4 2010-02-08 Atsushi Enomoto <[email protected]>
* XsdDataContractImporter.cs : do not add primitive ArrayOfxxx types.

	* XsdDataContractImporterTest.cs : add test that ArrayOfxxx type
	  is not added.

	* schema1.xsd, schema2.xsd : new test files.


svn path=/trunk/mcs/; revision=151021
2010-02-08 12:01:11 +00:00
Atsushi Eno 0e74c1468c 2010-01-25 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : allow readonly field as data member.
	  Fixed bug #560155.

	* XmlObjectSerializerTest.cs : added test for bug #560155.


svn path=/trunk/mcs/; revision=150119
2010-01-25 12:06:39 +00:00
Atsushi Eno 1855a4ca72 2010-01-08 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : differentiate
	  [DataContract(Namespace=null)] and [DataContract(Namespace="")].
	  Fixed bug #568763.

	* XmlObjectSrializerTest.cs : added test for bug #568763.


svn path=/trunk/mcs/; revision=149210
2010-01-08 03:06:49 +00:00
Atsushi Eno 26e23e5d0e 2009-09-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs :
	  There were some places that ignored possible whitespace nodes.
	  Fixed sorting of ordered members so that it does not give
	  incomplete sorting among base/derived types. (should fix #539563.)
	  Give xml error details in some places.

	* XsdDataContractExporterTest.cs : disable some tests that started
	  to fail due to correctly sorted fields while xsd exporter has
	  some bugs that emits duplicate fields (hence ambiguity occurs).


svn path=/trunk/mcs/; revision=142760
2009-09-28 15:05:58 +00:00
Atsushi Eno 08eb4f3070 2009-09-28 Atsushi Enomoto <[email protected]>
* SerializationMap.cs, KnownTypeCollection.cs : nested use of type
	  in its members resulted in infinite loop. This hopefully fixes
	  bug #539563.

	* XmlObjectSerializerTest.cs : Test nested type serialization type
	  initialization.


svn path=/trunk/mcs/; revision=142744
2009-09-28 11:07:02 +00:00
Atsushi Eno 5606e78b5a 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fix (here too) bad serialization-
	  compatibility-dependent test.


svn path=/trunk/mcs/; revision=141415
2009-09-07 10:40:07 +00:00
Atsushi Eno a7fb224ef8 2009-09-07 Atsushi Enomoto <[email protected]>
* XmlObjectSerializerTest.cs : fixed wrong EOLs that resulted in
	  failure in .NET.
	* XsdDataContractExporterTest.cs : fix test that failed on .NET,
	  and marked as NotWorking (no proceeding wsdl work yet).


svn path=/trunk/mcs/; revision=141414
2009-09-07 10:23:37 +00:00
Atsushi Eno 92c7eb6170 2009-09-07 Atsushi Enomoto <[email protected]>
* System.Runtime.Serialization.dll.sources :
	  added IgnoreDataMemberAttribute.cs.

	* IgnoreDataMemberAttribute.cs : add missing type.
	* SerializationMap.cs : support above.

	* XmlObjectSerializerTest.cs : add test for [IgnoreDataMember].


svn path=/trunk/mcs/; revision=141399
2009-09-07 04:06:00 +00:00
Sebastien Pouliot 07ee56ae94 2009-07-23 Sebastien Pouliot <[email protected]>
* XmlObjectSerializerTest.cs: Add test cases with a generic
	dictionary (empty, broken with r138386, and with one element) 
	that both works on MS.NET and for which Moonlight depends on.


svn path=/trunk/mcs/; revision=138531
2009-07-23 12:38:49 +00:00
Atsushi Eno 4f78675e26 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : for empty element, do not try to consume
	  children. Fixed bug #524086.
	  For enum, it is always error when the enum is not flags, and
	  is always default value for flags.

	* XmlObjectSerializerTest.cs :
	  Add test for bug #524086 by Rolf Bjarne Kvinge.
	  Add enum flags test, which should not raise an error.


svn path=/trunk/mcs/; revision=138386
2009-07-22 12:08:21 +00:00
Atsushi Eno 49c3dbeaee 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlFormatterDeserializer.cs : when reading empty primitive value,
	  make sure to consume the reader. Fixed bug #524083.

	* XmlObjectSerializerTest.cs : add test for bug #524083, by
	  Rolf Bjarne Kvinge.


svn path=/trunk/mcs/; revision=138367
2009-07-22 08:21:30 +00:00
Atsushi Eno 8bf2399d11 2009-07-22 Atsushi Enomoto <[email protected]>
* SerializationMap.cs : call MoveToContent() before examining
	  the reader node type.

	* XmlObjectSerializerTest.cs : now we can make xml indented as
	  originally done in #524088.


svn path=/trunk/mcs/; revision=138364
2009-07-22 07:47:33 +00:00