Commit Graph
159 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
Martin Baulig 7c68dee830 [#6187][WCF]: Fix contract interface inheritance. 2012-09-18 05:20:30 +02:00
Enrico Sada d778e34c42 ServiceHost.Open should throw InvalidOperationException if service contract has zero operations
Fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=290
2012-08-09 23:07:07 +02:00
Andrey Grishin 3bfba37d2a Fix binding for MexHttps 2012-07-18 13:55:09 +04:00
Marek Safar 6ec5717c59 Fix build by removing duplicate custom attribute extensions 2012-06-01 19:14:26 +01:00
Rolf Bjarne Kvinge 9ab872cb69 System.ServiceModel: Make FaultContractInfos available (and therefore deserialized correctly) in mobile profiles. Fixes #1437 and 2859. 2012-02-04 03:04:34 +01:00
Atsushi Eno 106fdeb492 ReturnValue in MessageDescription was missing when there was MessageContract. 2011-08-24 12:09:16 -07:00
Atsushi Eno 951a6e6276 part of fix bug #41. MessageParameterAttribute is considered for return value. 2011-08-02 07:41:49 -07: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 404dea03e0 Implement WsdlContractConversionContext, and ignore message importer for now. 2011-05-13 21:46:24 +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 6f4a57dd4f Fix common issue in MetadataSet - call MoveToContent() while iterating nodes. 2011-05-10 19:58:17 +09:00
Atsushi Eno be4b6644f3 Add new MetadataSetTest and fix couple of minor issues. 2011-05-10 19:33:52 +09:00
Atsushi Eno 75815614e7 ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 22:58:18 +09:00
Alan McGovern c05df1d77f [System.ServiceModel] Add some missing properties for IVT compatibility
These are required for moonlight.
2011-04-14 11:00:33 +01:00
Atsushi Eno 777580137c ServiceKnownTypeAttribute.MethodName was used way different to lookup method. 2011-04-14 14:56:07 +09:00
Atsushi Eno 549e702365 Add XmlSerializerFormatAttribute support in mobile profiles.
Unlike moonlight, XmlSerializer is in the framework lib (sys.xml), so we don't
have to split them out to Sys.Xml.Serialization.dll.
2011-04-08 15:58:04 +09:00
Atsushi Eno 84841ba8c8 Fix moonlight_raw build in Sys.Xml.Serialization.dll (NIE!) 2011-04-07 23:28:21 +09:00
Atsushi Eno 1b72f7f825 DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build. 2011-04-07 22:01:26 +09:00
Atsushi Eno 852b7fe308 Some XmlSerializerFormatAttribute and XmlSerializerOperationBehavior refactoring. 2011-04-07 19:19:07 +09:00
Atsushi Eno cd100616f4 Less !NET_2_1/!MOONLIGHT to improve SL4 WCF compatibility. 2011-04-01 20:39:33 +09:00
Atsushi Eno 4379361aa7 Implement ConfigurationName support for ChannelFactory.
It is required for MoonlightDrtViewer bugfixing.
2011-04-01 18:23:16 +09:00
Peter Gerbrandt c48cff92ce Fix contract description for contracts with deep inheritance hierarchy. 2011-04-01 14:17:10 +09:00
Rolf Bjarne Kvinge 30443d63dd System.ServiceModel: make it a lot more compatible with Silverlight 2011-03-31 16:01:22 +02:00
Atsushi Eno 0f229b9c33 Fix build; remove extra !NET_2_1. 2011-03-17 21:14:12 +09:00
Atsushi Eno e3b5955652 Enable more behavior interface member in NET_2_1. 2011-03-16 20:51:41 +09:00
Atsushi Eno 59df21bbdb Enable more behaviors use in NET_2_1 land, toward WebHttpBinding. 2011-03-16 20:41:53 +09:00
Atsushi Eno e60ff5ff90 Add endpoint behavior support in NET_2_1, which involved not a few additions. 2011-03-16 17:20:00 +09:00
Peter Gerbrandt bb22b06f22 Support for the same interface as service contract and as callback contract. 2011-03-07 12:51:19 +09:00
Atsushi Eno 3137e2c0c6 Only use non-null values in ServiceAuthorizationBehavior. 2011-02-17 21:06:12 +09:00
Atsushi Eno 86977acb58 Operation interface methods also have ServiceKnownType attributes. 2011-02-16 17:14:05 +09:00
Atsushi Eno b8ecb21ef2 Async MessageContract pattern needs more sophisticated contract validity check.
It totally killed discovery.
2011-02-15 23:24:01 +09:00
Atsushi Eno 2de488bf5d ServiceDescription.cs does not exist in moonlight, so move TypeExtension. 2011-02-15 22:37:28 +09:00
Atsushi Eno bac5d7a27f MessageHeaderDescription were not filled in message contract. Reject wrong contracts. 2011-02-15 22:11:22 +09:00
Atsushi Eno a2f1b9fb76 Now operations are collected per corresponding ContractDescription.
This fixes naming of MessageDescription Action URI from its type.
2011-02-03 01:07:44 +09:00
Atsushi Eno d7ad74f11f Implement GetInheritedContracts(), towards bugfix #668089. 2011-02-02 16:11:58 +09: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
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 76af53ecff OnEndXxx() methods should not try to let void return to a local variable. 2010-10-21 20:53:00 +09:00
Atsushi Eno dec04b58f3 Void event should not have Result of type void. 2010-10-21 19:44:20 +09:00
Atsushi Eno ea6de3e520 Make generated type names unique. 2010-10-21 19:06:56 +09:00
Atsushi Eno 184e1e67e5 Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy. 2010-10-21 15:30:23 +09:00
Atsushi Eno 0e7a3971a3 Do not reject contract from the same method, could happen by a type with multiple service contracts within the typie hierarchy.
For details, see: http://lists.ximian.com/pipermail/mono-devel-list/2010-September/035940.html
2010-10-08 15:55:12 +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 be6342ff02 Contract is settable in 4.0. 2010-09-16 17:56:57 +09:00