Commit Graph
20 Commits
Author SHA1 Message Date
Martin Baulig ea570f3a76 [WCF,Serialization] Improve and fully implement support for collection types.
* System.Runtime.Serialization/XsdDataContractImporter:
      Check ImportOptions.ReferencedCollectionTypes to determine the proxy type.

* System.ServiceModel.Description/MetadataImporter.cs:
      Very simply implementation of the 'State' property.

* System.ServiceModel.Description/DataContractSerializerMessageContractImporter.cs:
      Use it here.

* Test/Resources/WSDL: Added some sample .wsdl files for the new tests; adding
      these as resources to the test dll.

* Test/System.Runtime.Serialization: Added WsdlHelper.cs,
      XsdDataContractImporterTest2.cs and XsdDataContractExportTest2.cs
2012-10-09 23:04:08 +02:00
Martin Baulig aa2e9eca40 [WCF]: Fix WSDL import of methods with complex return types.
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/12551090/monotouch-wcf-service-reference-cs-errors/12669880

DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as

	[OperationContract]
	DateTime GetDate ();

as already being imported.  This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.

I also added a new test case for this.
2012-10-01 15:02:31 +02:00
Atsushi Eno e7532fc5dd Fix wsdl import wrt element qname (!= type name). 2011-07-27 21:03:31 -07:00
Atsushi Eno 70015f9ba5 Flush some ongoing changes for XmlSerializer support in svcutil. 2011-06-14 17:58:26 +09:00
Atsushi Eno e2c6d5cb26 Fill type info in MessagePartDescription from XmlSerializer-based wsdl importer.
It still needs some fixes to import message elements.
2011-05-27 17:24:01 +09:00
Atsushi Eno 871ad48b98 Implement XmlSerializerMessageContractImporter, round 2.
This time it is XmlSerializer-based, got it somewhat working.
2011-05-14 01:28:03 +09:00
Atsushi Eno f583e1e938 Revert previous XmlSerializerMessageContractImporter implementation.
XsdDataContractImporter is not XmlSerializer-based, while this class is.
2011-05-11 18:40:15 +09:00
Atsushi Eno 75815614e7 ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 22:58:18 +09:00
Atsushi Eno a536dadf89 It should not have to import all schema elements, but those only used by contracts. 2010-10-22 19:06:20 +09:00
Atsushi Eno 4ef5d6daee Small refactoring on enumerating message schema element contents. 2010-10-22 17:58:16 +09:00
Atsushi Eno 1902671e15 Remove USE_DATA_CONTRACT_IMPORTER conditional compilation flag. 2010-09-10 22:26:44 +09:00
Atsushi Eno 8c0da0eaf8 2010-02-23 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  consider schemas in wsdl documents.


svn path=/trunk/mcs/; revision=152228
2010-02-22 23:29:07 +00:00
Atsushi Eno 31bf347901 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  Pick correct elements to import. Not wrapper elements but each
	  parameter and return value elements.


svn path=/trunk/mcs/; revision=152078
2010-02-19 15:46:55 +00:00
Atsushi Eno 74ad321492 2010-02-19 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  remove extra parameter passing.


svn path=/trunk/mcs/; revision=152076
2010-02-19 15:34:43 +00:00
Atsushi Eno 8f8557ce15 2010-02-19 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs, MessagePartDescription.cs,
	  DataContractSerializerMessageContractImporter.cs :
	  add alternative implementation to use XsdDataContractImporter
	  instead of XmlSchemaImporter hack.

	  It requires -d:USE_DATA_CONTRACT_IMPORTER and not enabled yet, as
	  it breaks some WSDL imports (such as memorabilia.hardrock.com).


svn path=/trunk/mcs/; revision=152048
2010-02-19 04:50:07 +00:00
Atsushi Eno f3d0400ba1 2010-02-11 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs : handle duration
	  and guid which s.w.svc does not handle. Fix part of bug #579011.


svn path=/trunk/mcs/; revision=151593
2010-02-12 06:33:00 +00:00
Atsushi Eno dc6e14ed54 2010-02-09 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs,
	  ServiceContractGenerator.cs: ArrayOfXxx does not exist in the type
	  definition code. Use Xxx[] directly instead.

	* WsdlImporterTest.cs : added test for processing ArrayOfXxx types.

	* service1.wsdl, schema1.xsd, schema2.xsd : new test files (small
	  repro for bug #577139).


svn path=/trunk/mcs/; revision=151087
2010-02-09 09:36:44 +00:00
Atsushi Eno 95704c57e7 2009-01-22 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  for such an element that does not contain schema type but has a
	  type reference, use ImportSchemaType().


svn path=/trunk/mcs/; revision=124167
2009-01-22 05:14:07 +00:00
Atsushi Eno 10fa718746 2009-01-21 Atsushi Enomoto <[email protected]>
* DataContractSerializerMessageContractImporter.cs :
	  some refactoring. Process all schemas, including those in WSDLs.


svn path=/trunk/mcs/; revision=124026
2009-01-21 11:19:59 +00:00
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00