Commit Graph
458 Commits
Author SHA1 Message Date
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
Marek Safar 10c5e72512 [bcl] netstandart 1.6 support 2016-07-13 11:02:10 +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 559ad5b34b Merge pull request #463 from strawd/concurrent-requests
Handle multiple concurrent calls to BeginTryReceiveRequest
2015-09-23 14:37:01 -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
Atsushi Eno 63a8b865f7 [WCF] bonus, NET_2_1 is blocking set_Timeout. It didn't exist in Moonlight. 2015-05-22 01:23:27 +08:00
Atsushi Eno d2cdee078d [WCF] XmlReader from GetReaderAtBodyContents() should not be missing xmlns-es.
The namespace declarations existed when the entire Message is read but not
in the partial body contents. They caused regressions when we use
serialization stack from referencesource.

It is possible that more namespaces may be requied, but we will be importing
System.ServiceModel later on and then the issue will go away.
So far we don't want regression as long as they show up in our NUnit tests.
2015-04-24 14:36:58 +09:00
Atsushi Eno e94bc465ca [WCF] referencesource XmlBinaryWriter closes stream by default, so keep it open.
Otherwise MemoryStream.Position complains that it is already disposed.
2015-04-24 14:36:57 +09:00
Atsushi Eno b40dd06602 [WCF] fix mobile builds. Mono.Xml.XPath is gone. 2015-03-02 11:36:42 +08:00
Atsushi Eno 3001bd0d94 [WCF] for certain kind of Messages, do now write BodyContents twice. 2015-02-21 03:28:07 +08:00
Miguel de Icaza 5715cdc582 [System.ServiceModel] Prevent server crash when client disconnect
This patch is an updated version of a pull request (377) from Rob
Wilkens to fix #5926
2015-02-16 10:01:22 -05: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
Miguel de Icaza 8d15c21023 [WCF] Make BasicHttpBinding.AllowCookies work
This patch is from Brendan Zagaeski and fixes bug 11307

The description of the problem was:

In Mono 2.10.12, the BasicHttpBinding property no longer supports
EnableHttpCookieContainer because it is Depreciated. The replacement
is AllowCookies, but this property does not work. Upon inspection of
the source source, we find that the HttpCookieContainerBindingElement
is added in accordance with EnableHttpCookieContainer, but not
AllowCookies.

The conditional compile logic at [1] is no longer needed for
Xamarin.iOS or Xamarin.Android.
2014-06-19 17:45:15 -04:00
Atsushi Eno c67aed9a47 fix build. 2014-01-10 20:42:25 +09:00
Atsushi Eno 2fd8da4920 Fix bug #11336. 2014-01-10 19:03:33 +09:00
Martin Baulig 1ae87e9ee9 [WCF]: Add stubs for some missing .NET 4.0/4.5 APIs. 2013-09-02 21:52:13 +02:00
Martin Baulig 97d52b2237 [WCF]: Implement cookie support in .NET 4.0. 2013-03-22 04:08:10 +01:00
Martin Baulig d2d903f1d2 [WCF]: 2nd part of bug #5827, set CheckCharacters = false in TextMessageEncoder. 2013-03-22 01:57:37 +01:00
Martin Baulig dfc1434f41 Add stubs for some new .NET 4.0/4.5 WCF APIs. 2013-03-12 17:23:01 -04:00
Rodrigo Kumpera a0d28b2587 Kill the MOONLIGHT define in System.ServiceModel. 2013-02-11 13:01:11 -05:00
Martin Baulig e3ad9bbaec [WCF]: Minor NetTcpBinding fixes. 2013-01-21 19:27:22 +01:00
Martin Baulig 6805b32a1a [WCF]: Import ServiceEndpoint.Address for all bindings. 2013-01-21 19:25:40 +01:00
Martin Baulig ea2f2cde42 [WCF]: Fix MessageEncoder.IsContentTypeSupported().
Use the internal 'Channels.ContentType' class to parse the
content type, make then comparision case-insensitive and ignore
missing parameters.
2012-12-22 05:14:26 +01:00
Atsushi Eno 47b3bb2eb2 Fix mobile builds. 2012-12-07 18:05:57 +09: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 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
David Straw 14b42141c0 Handle multiple concurrent calls to BeginTryReceiveRequest 2012-09-17 11:39:30 -06:00
Martin Baulig 25f9a11c6e [#6515][WCF]: Enable custom headers for NET_2_1.
This allows

	HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
	request.Headers.Add ("Foo", "Bar");

	OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);

The code was already there, but disabled for the NET_2_1 profile.
2012-09-17 17:31:44 +02:00
Martin Baulig d2d43552c2 [#6201][WCF]: Don't crash if we don't have a client certificate. 2012-09-15 21:10:36 +02:00
Miguel de Icaza b1e73aa3e2 Make this build on the MOBILE profile 2011-10-21 11:50:17 -04:00
Miguel de Icaza abbb1550d3 Apply patch from Mario Kosmiskaso fix bug 1207: Throw the correct exception when a REST request returns a 404
.NET throws a EndpointNotFoundException encapsulating a WebException when a
REST request returns a 404.

The attached patch tests for a 404 and throws the same exception chain thrown
by .NET.
2011-10-16 11:46:00 -04:00
Miguel de Icaza 1b47742b05 Apply patch from Mario Kosmiskaso fix bug 1207: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:46:00 -04:00
Miguel de Icaza f17f74024a Apply patch from Mario Kosmiskaso fix bug 1204: Add certificate to the HttpWebRequest if configured
System.ServiceModel.Channels.HttpRequestChannel never added the configured
certificate to the HttpWebRequest which prevented client side authentication.

The attached patch does exactly that if a certificate has been configured.
2011-10-16 11:45:59 -04:00
Miguel de Icaza 96e0bed4c8 Fix bug 1203, relaxes the test for the protocol to allow https endpoints 2011-10-16 11:45:58 -04:00
Atsushi Eno 189da5d408 Add ProtectionTokenParameter for mutual nego. Patch by Alexander Riman. 2011-10-04 00:00:43 +09:00
Michael Stoll 114fb284e8 Fixed coding style for BasicHttpBinding and SecurityBindingElement 2011-08-02 10:23:24 +02:00
Michael Stoll 7f871ae603 Fixed the SecurityBindingElement creation of BasicHttpBinding 2011-08-01 12:23:55 +02:00
Atsushi Eno d64d847622 Avoid possible duplicate xmlns output. Fixes xsp-based hosting somehow. 2011-07-22 14:02:48 +09:00
Atsushi Eno e8cc6770c2 support action parameter in SOAP 1.2 content type. Close pull request #133. 2011-07-19 02:28:59 +09:00
Atsushi Eno 6d85578013 Full equivalence comparison is unnecessary for MessageEncoder ContentType.
based on https://github.com/mono/mono/pull/130
2011-07-09 06:50:58 +09:00
Atsushi Eno c657187050 Set "Encoder" property when Message was read from MessageEncoder. 2011-06-14 19:17:20 +09:00
Atsushi Eno 509f45a0ae finally implement Message.ToString() as in expected form.
Regressions on this method has caused several unpredictable errors,
so I avoided this for somewhat long time...
2011-06-14 18:43:29 +09:00
Atsushi Eno 404dea03e0 Implement WsdlContractConversionContext, and ignore message importer for now. 2011-05-13 21:46:24 +09:00
Atsushi Eno 91d1860c32 Actual source directory changes after changing namespaces. 2011-04-25 15:55:22 +09:00
Atsushi Eno 9cc1f66d03 More nettcp namespace changes. 2011-04-25 15:53:17 +09:00
Atsushi Eno 3fdf3c4b87 Move NetTcp namespace to internal one. 2011-04-25 15:40:47 +09:00
Atsushi Eno d38b8f4eb5 Empty XmlReader message caused failure on buffereed copy. 2011-04-18 17:20:22 +09:00
Atsushi Eno 0bb7a5deff Prepare for HostNameComparisonMode support (i.e. incomplete).
This is for bugfix #687580.
2011-04-16 01:05:22 +09:00