Commit Graph
184 Commits
Author SHA1 Message Date
Alexander Köplinger c4692001a9 [bcl] Fix method parameter names to match .NET
The names were fixed only for the subset of methods that are included in netstandard,
and in cases where netstandard differs from Desktop .NET we match with .NET.
2016-08-26 17:49:03 +02:00
Ludovic Henry 249daf43de [mcs] Replace NET_2_1 by MOBILE
NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
2016-08-18 16:34:36 +02:00
Alexander Köplinger 3c3ef17376 [bcl] Update to match NETStandard 1.6 members 2016-08-11 20:53:38 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Miguel de Icaza 468225a247 Merge pull request #757 from mlintner/master
These changes fix 14335. When in getcontractinternal various things can ...

This patch further does not affect mobile.
2015-09-23 16:05:09 -04:00
Chris Hamons b044a27fe0 Create xammac_net_4_5 profile for XM 4.5 Unified to remove references to unshippable assmblies 2015-06-18 13:31:04 -05:00
Alex Rønne Petersen 1f8da92d47 Merge pull request #1656 from alexanderkyte/webservice_27561
[System.ServiceModel] Fix timeout defaulting to 0 seconds
2015-05-15 16:09:02 +02:00
Alexander Kyte e4d491cdd7 [System.ServiceModel] Fix timeout defaulting to 0 seconds 2015-05-13 13:54:53 -04:00
Atsushi Eno b96232d37a [WCF] exclude extra schema by referencesource XsdDataContractExporter.
Unlike our own XsdDataContractExporter, referencesource one generates
an extra schema that targets xs:* (XmlSchema.Namespace).
That should not be generated as part of WSDL, so exclude it.
2015-04-24 14:36:58 +09:00
Atsushi Eno 1b419b8975 Fix mobile build (breakage caused by referencesource switch). 2015-04-24 14:36:50 +09:00
Atsushi Eno cdb4002190 [WCF] do not use XmlReader.Name to check LocalName.
It won't match for prefixed ones.
2015-02-21 03:24:54 +08:00
Atsushi Eno 358275e836 [WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
Fix several regressions caused by referencesource Sys.Xml import.
2015-02-21 03:24:12 +08:00
Zoltan Varga c1b4366932 [bcl] Remove NET_4_5 defines from class libs. 2015-01-13 16:34:23 -05:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Martin Baulig 87622fc711 [WCF]: Update to my last fix for bug #22129.
The problem already starts when creating the OperationDescription; we need
to also look at the End* method here to correctly parse the reply parameters.

Then ClientRuntimeChannel.Process needs to distinguish between sync/async
and copy the out/byref parameters when needed.
2014-09-16 21:34:20 +02:00
Mark Lintner 9cb08ed0a8 undid some unecessary formatting 2013-09-19 21:43:04 -07:00
Mark Lintner b2dcf4fdab This adds a unit test and a more robust method for determining the servicecontract to be returned from ContractDescription.GetContract and to more accurately determine exceptional conditions. 2013-09-19 18:58:20 -07:00
Mark Lintner dd25ba0629 These changes fix 14335. When in getcontractinternal various things can confuse the host processing of ContractInterfaces. I only identified and fixed a couple so far and they fix problems with multiple inheritance of contracts and deep hierarchies. It is looking to verify that all of the contract interfaces it has in the list inherit from the root interface. However when IA and IB inherit from the IRoot. It will iterate nxn times and with multiple inehritance it will eventuall get a 1A and verify that it inherits from iroot it gois along until it verifies that A inherits from the root then finds it cannot verify IA becuase because it is checking to see if IB inherits from it. It doesnt because both of them are peers and inheit from IRoot. This threw an exception. I fixes that and a couple of related bugs.
Please enter the commit message for your changes. Lines starting
2013-09-15 10:27:04 -07:00
Martin Baulig 1ae87e9ee9 [WCF]: Add stubs for some missing .NET 4.0/4.5 APIs. 2013-09-02 21:52:13 +02:00
Miguel de Icaza b6d1b4492f Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work). 2013-07-30 16:51:38 -04:00
Rodrigo Kumpera a0d28b2587 Kill the MOONLIGHT define in System.ServiceModel. 2013-02-11 13:01:11 -05:00
Martin Baulig eb285f121c Merge branch 'master' into baulig 2013-01-21 20:56:20 +01:00
Martin Baulig c1b505c0ca [WCF]: Implement and improve missing WsdlExporter pieces.
* We now export simple <wsp:Policy>, currently supporting only
  those elements that WsdlImporter can import.

  WsdlImporter:
  https://github.com/mono/mono/commit/cdc98dba1b83341c25a1daab4ae7c217d4961ad1

* Implement `MetadataExporter.Errors' and use it for error
  reporting.

* Fixed WsdlExporter's caching to correclty deal with duplicate
  ExportContract() and ExportEndpoint() calls.

* Emit <soap12:operation> depending on the binding's MessageVersion.
  (FIXME: I didn't implement soap faults yet).

* MetadataTests: Check whether the policy elements are correct.

* MetadataTests: Add test containing simple [OperationContract] method
  for http and net.tcp; checks the <soap:operation> / <soap12:operation>
  elements.

* New test to check WsdlExporter's behavior regarding duplicate
  contracts and endpoints.

* ConnectionOrientedTransportBindingElement.cs, CustomBindingTests.cs,
  HttpTransportBindingElementTest.cs: Added test for custom message
  encodings.
2012-12-05 23:58:12 +01:00
Martin Baulig b983c5c7fa [WCF]: Support embedded <wsp:Policy> elements. 2012-12-03 09:18:29 +01:00
Martin Baulig cdc98dba1b [WCF]: Implement missing WsdlImporter pieces.
The WsdlImporter can now import Bindings and Endpoints
from the WSDL, currently supporting BasicHttpBinding,
BasicHttpsBinding and NetTcpBinding.

There is also - limited and still experimental - support
for WS-Policy 1.5.  I only did the very basic pieces so
far, for instance things like TransportWithMessageCredentials
are not supported yet.

The policy importer will emit lots of warnings via
`MetadataImporter.Errors` (as warnings, not errors) whenever
it encounters something that it doesn't understand and
is also forgiving towards unknown and/or mal-formed
policy assertions.

This behavior is different from the MS runtime, which is
very strict, but there are simply too many missing pieces
to be more pedentic here.  Check whether Errors.Count == 0
to see whether all policy assertions have been correctly
imported.

There are also a few metadata samples, which are part of the
new nunit tests.  These are currently working:

  BasicHttp.xml, BasicHttp_Mtom.xml, BasicHttp_NtlmAuth.xml,
  BasicHttp_TransportSecurity.xml, BasicHttps.xml,
  BasicHttps_NtlmAuth.xml, NetTcp.xml, NetTcp_TransferMode.xml,
  NetTcp_TransportSecurity.xml

There are a few more in the Tests/MetadataTests/Resources/
directory which demonstrate missing pieces.
2012-11-27 02:30:54 +01:00
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