61 Commits
Author SHA1 Message Date
Alexander Köplinger 22c9616fe2 [System.ServiceModel] Replace SynchronizedCollection with referencesource (#10021)
* [System.ServiceModel] Replace SynchronizedCollection with referencesource

This fixes a bug in the old implementation where we didn't have proper
locking in Add().

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43447
Closes https://github.com/mono/mono/pull/10007

* Bump API snapshot submodule

* [csproj] Update project files
2018-08-10 21:47:14 +02:00
Alexander Köplinger 4a5500355b [System.ServiceModel] Remove deleted files from .sources 2018-07-07 01:49:44 +02:00
Martin Baulig 86c3c50c8d Legacy TLS Removal Preparations (#9301)
This PR prepares the upcoming removal of the Legacy TLS Provider.

- The internal (and soon-to-be-removed) class `MD5SHA1` has been moved and changed namespace.
- `Novell.Directory.Ldap.Connection` now uses `SslStream` instead of Legacy TLS, this ports the Novell Ldap library to use TLS 1.2, see #9363.
- Removed obsolete Ssl/Spnego authentication from `System.ServiceModel`.
- Removed duplicate copy of the Legacy TLS Provider from `System.ServiceModel`.
- Ported `System.Web.Mail.SmtpClient` to use `SslStream`.
- Removed the `Mono.Security.Protocol.Tls` documentation.
2018-07-05 01:13:46 +02:00
Egor Bogatov bce083b1dc CoreFX: System.Json, System.ServiceModel.Syndication, System.Threading.Tasks.Dataflow (#8246)
Use corefx sources and tests for:
- System.Json
- System.ServiceModel.Syndication
- System.Threading.Tasks.Dataflow
2018-04-26 19:38:03 +02:00
Marek Safar 71ad99f720 [build] Narrow recursive dependencies 2018-02-08 23:49:44 -05:00
Vladimir Kazakov 89c76cdfa1 Add System.ServiceModel.Description.UseRequestHeadersForMetadataAddressBehavior. (#6508) 2018-01-15 10:25:15 +01:00
Alexander Köplinger 34f6aab87e [System.ServiceModel] Move a few types into System.IdentityModel
They were moved there in MS.NET 4.5. Added typeforwards so existing references continue to work.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=35662
2016-10-12 23:20:57 +02:00
Marek Safar 10c5e72512 [bcl] netstandart 1.6 support 2016-07-13 11:02:10 +02:00
Marek Safar d44898a230 [build] Switch to 4.6 profile as default profile 2015-07-15 16:10:19 +02:00
Marek Safar 8bd66dbbeb Add System.ServiceModel.Activation assembly. Fixes #14544 2013-09-10 10:14:50 +02: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
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 4004fbb190 Add PipeException. fixed bug #692987 by Eberhard Beilharz. 2011-05-11 16:54:52 +09:00
Atsushi Eno 91d1860c32 Actual source directory changes after changing namespaces. 2011-04-25 15:55:22 +09:00
Atsushi Eno 72f0cd6e5b Split XmlMessagesFormatter out. It is for use in Sys.Xml.Serialization.dll.
XmlMessagesFormatter will be used in Sys.Xml.Serialization.dll and this
type should not be excluded by !NET_2_1 or !MOONLIGHT. It is not doable
if this class is in BaseMessagesFormatter.cs.
2011-04-08 00:19:40 +09:00
Atsushi Eno 461750a76e Add WCF diagnostics implementation (not working yet). 2011-04-04 20:57:12 +09:00
Atsushi Eno 1e4407cd84 Replace SRE-based client proxy generator with RealProxy.
Now PE verified workaround should be unnecessary.
2011-03-07 12:29:39 +09:00
Atsushi Eno b2802fa2d5 And rename source file name. 2011-01-21 16:20:23 +09:00
Marek Habersack d4bb1c86b7 [wcf] make /js and /jsdebug dispatchers work.
There were several issues here:

- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
  ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
  This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
  dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
  when it should first try to find one whose URL matches the current request exactly.
2010-10-20 15:04:37 +02:00
Atsushi Eno 858ceeebe0 Add SecurityDuplexSessionChannel, and making room for duplex channel, phase 2. 2010-10-14 17:47:29 +09:00
Atsushi Eno a78c92eb4b Add ProtocolMapping support. 2010-09-16 23:23:44 +09:00
Atsushi Eno 5628b49a01 implemented large parts of WCF standard endpoints and configuration support. 2010-09-13 22:36:37 +09:00
atsushieno 8a0d253079 add 4.0 standard endpoint configuration types. 2010-07-30 23:16:31 +09:00
Atsushi Eno 66cda586dc 2010-07-12 Atsushi Enomoto <[email protected]>
* InputOrReplyProcessor.cs : remove SecurityHandler. WS-Trust must
	  be handled before endpoint dispatching (it must not pass contract
	  filter) and doesn't make sense to be here.
	* SecurityHandler.cs : move to old-code.

	* SecurityReplyChannel.cs : handle WS-Trust message here.
	* SecurityRequestContext.cs : so, do not pass those messages here.

	* SslSecurityTokenAuthenticator.cs,
	  AuthenticatorCommunicationObject.cs,
	  SecureConversationSecurityTokenAuthenticator.cs :
	  add timeout argument to negotication requests.

	* System.ServiceModel.dll.sources: remove SecurityHandler.cs


svn path=/trunk/mcs/; revision=160244
2010-07-12 13:17:58 +00:00
Atsushi Eno 236256cca3 move MessageSecurityBindingSupport.cs too.
svn path=/trunk/mcs/; revision=160235
2010-07-12 10:54:22 +00:00
Atsushi Eno 6da7552dd2 more internal namespace moving.
svn path=/trunk/mcs/; revision=160234
2010-07-12 10:46:21 +00:00
Atsushi Eno 4df7955884 moved bunch of security internal classes to System.ServiceModel.Channels.Security directory.
svn path=/trunk/mcs/; revision=160232
2010-07-12 10:20:16 +00:00
Atsushi Eno b7cb691f5f 2010-07-12 Astushi Enomoto <[email protected]>
* Dummy_2_1.cs : add internal namespaces.
	* System.ServiceModel.dll.sources: add SecurityReplyChannel.cs

	* SecurityReplyChannel.cs : split from SecurityChannelListener.cs.
	* AsymmetricSecurityBindingElement.cs
	  WSSecurityMessageHeader.cs
	  SecureMessageDecryptor.cs
	  SecureMessageGenerator.cs
	  SecurityChannelListener.cs
	  SecurityRequestContext.cs
	  WSEncryptedXml.cs
	  SecurityRequestChannel.cs
	  SymmetricSecurityBindingElement.cs
	  SecurityOutputChannel.cs
	  SecurityChannelFactory.cs
	  WSSignedXml.cs
	  SecurityBindingElement.cs : change namespace to move to internal
	  namespace directory.


svn path=/trunk/mcs/; revision=160230
2010-07-12 10:08:08 +00:00
Atsushi Eno ab39e8acac 2010-07-05 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs :
	  moved IChannelDispatcherBoundListener from HttpChannelListener.cs.

	* SvcHttpHandler.cs : removed old code and #if blocks.

	* HttpStandaloneReplyChannel.cs
	  HttpStandaloneRequestContext.cs
	  HttpStandaloneChannelListener.cs
	  HttpReplyChannel.cs
	  HttpRequestContext.cs
	  HttpChannelListener.cs : renamed former 3 files to latter 3 files.

	* System.ServiceModel.dll.sources :
	  renamed new HTTP channel listener implementation sources, and
	  removed old sources.



svn path=/trunk/mcs/; revision=159913
2010-07-05 17:29:24 +00:00
Atsushi Eno b1be2aea6f 2010-06-24 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs :
	  Use new HTTP channel listener implementation.

	* ChannelDispatcher.cs : enable service throttling again.
	  This time Http(Listener), ASP.NET and TCP listeners all work.

	* System.ServiceModel.dll.sources :
	  add new HTTP channel listener implementation sources.

	  Old sources will be kept for a while, won't entirely vanish as
	  ASP.NET support will live there.


svn path=/trunk/mcs/; revision=159491
2010-06-24 12:07:13 +00:00
Atsushi Eno cdf618e084 2010-05-28 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources : remove old code from winfx beta.

	* DirectionalAction.cs : remove old code from winfx beta.


svn path=/trunk/mcs/; revision=158095
2010-05-28 09:44:20 +00:00
Atsushi Eno d47ab227f7 2010-04-05 Atsushi Enomoto <[email protected]>
* BaseAddressPrefixFilterElementCollection.cs
	  BaseAddressPrefixFilterElement.cs : new classes.
	* ReliableSessionElement.cs
	  XmlDictionaryReaderQuotasElement.cs
	  TextMessageEncodingElement.cs
	  HostTimeoutsElement.cs
	  BaseAddressElementCollection.cs
	  BasicHttpBindingElement.cs
	  BindingElementExtensionElement.cs
	  StandardBindingElement.cs
	  BinaryMessageEncodingElement.cs : added couple of missing stuff.

	* ChannelTerminatedException.cs : new class.

	* System.ServiceModel.dll.sources : add some new config types and
	  ChannelTerminatedException.cs.


svn path=/trunk/mcs/; revision=154779
2010-04-05 05:10:02 +00:00
Atsushi Eno 9dc62ece0c 2010-03-19 Atsushi Enomoto <[email protected]>
* HostedBindingBehavior.cs : remove unused class.

	* System.ServiceModel.dll.sources : remove unused class.
	* HTTP_listener_notes.txt : add some more comments.


svn path=/trunk/mcs/; revision=153882
2010-03-19 10:21:08 +00:00
Atsushi Eno 299b783b98 2010-03-18 Atsushi Enomoto <[email protected]>
* ReliableSessionBindingElement.cs,
	  PrivacyNoticeBindingElement.cs,
	  RemoteEndpointMessageProperty.cs : added some missing types.

	* Dummy.cs : removed some dummy types (not dummy anymore).

	* System.ServiceModel.dll.sources : added some missing types.


svn path=/trunk/mcs/; revision=153824
2010-03-18 10:36:51 +00:00
Atsushi Eno a64563940e 2010-03-11 Atsushi Enomoto <[email protected]>
* XmlName.cs : new internal type for moonlight/SL SDK compatibility.

	* System.ServiceModel.dll.sources,
	  net_2_1_raw_System.ServiceModel.dll.sources:
	  added XmlName.cs.


svn path=/trunk/mcs/; revision=153489
2010-03-12 05:19:23 +00:00
Atsushi Eno f60b8b5b22 2010-02-08 Atsushi Enomoto <[email protected]>
* MetadataBundle.cs, MetadataSet.cs : rename former to latter.

	* System.ServiceModel.dll.sources:
	  renamed MetadataBundle.cs to MetadataSet.cs.


svn path=/trunk/mcs/; revision=151027
2010-02-08 15:25:17 +00:00
Atsushi Eno ced694017c 2010-01-18 Atsushi Enomoto <[email protected]>
* SecureConversationVersion.cs, SecurityPolicyVersion.cs,
	  TrustVersion.cs : add new 3.5 classes.

	* MessageSecurityVersion.cs : add new 3.5 members.

	* System.ServiceModel.dll.sources : added new security version types.


svn path=/trunk/mcs/; revision=149724
2010-01-18 07:49:39 +00:00
Atsushi Eno 4aa5c7be4d 2010-01-15 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add SL config loader here
	  for easy debugging under 2.0 profile.

	* SilverlightClientConfigLoader.cs : add another loop blocker.
	  Do not reject binding configuration with no basic http binding.
	  In SL3 it may be custom and such configuration should be valid.


svn path=/trunk/mcs/; revision=149606
2010-01-15 07:36:45 +00:00
Atsushi Eno 906dd20f80 2009-10-02 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add VirtualPathExtension.cs.

	* VirtualPathExtension.cs : new file.

	* HttpTransportBindingElement.cs, SvcHttpHandlerFactory.cs :
	  revert the change, to use internal asp.net state again.
	* SvcHttpHandler.cs : add VirtualPathExtension.

	* ConfigUtil.cs : revert the change, to use ServiceHostingEnvironment
	  internal member again.

	* ServiceHostingEnvironment.cs : revert the change, to use
	  internal asp.net state again.


svn path=/trunk/mcs/; revision=143277
2009-10-02 11:24:40 +00:00
Atsushi Eno e059cb3243 2009-09-15 Atsushi Enomoto <[email protected]>
* WebServiceHelper.cs : remove old code.

	* System.ServiceModel.dll.sources: remove WebServiceHelper.cs.


svn path=/trunk/mcs/; revision=141932
2009-09-15 08:41:18 +00:00
Atsushi Eno c9a4b1c1ca 2009-08-24 Atsushi Enomoto <[email protected]>
* ClientRuntimeChannel.cs, DuplexClientRuntimeChannel.cs : split out
	  from former to latter and implemented most part of listener part.
	  Make sure to open internal channel at base ClientRuntimeChannel.
	* ClientProxyGenerator.cs : minimize !NET_2_1 to here.

	* System.ServiceModel.dll.sources: added 
	  DuplexClientRuntimeChannel.cs and CallbackInstanceContextProvider.cs.


svn path=/trunk/mcs/; revision=140478
2009-08-24 08:57:57 +00:00
Atsushi Eno 0acf7fe9ab 2009-08-20 Atsushi Enomoto <[email protected]>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
	  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
	  ongoing works, not working at all yet.

	* System.ServiceModel.dll.sources: add more named pipe files.


svn path=/trunk/mcs/; revision=140341
2009-08-20 14:09:09 +00:00
Atsushi Eno 6f74c4f671 2009-08-19 Atsushi Enomoto <[email protected]>
* NetNamedPipeBinding.cs, NetNamedPipeSecurity.cs
	  NamedPipeTransportSecurity.cs : new files.
	* Dummy.cs : remove above ones.

	* System.ServiceModel.dll.sources: add named pipe files.


svn path=/trunk/mcs/; revision=140244
2009-08-19 13:54:11 +00:00
Atsushi Eno 95ce234785 2009-08-11 Atsushi Enomoto <[email protected]>
* IOperationInvoker.cs : fix interface.
	* DefaultOperationInvoker.cs : refresh implementation of the above.
	* BaseMessagesFormatter.cs, OperationInvokerHandler.cs :
	  dependent changes for above.

	* ServiceHostBase.cs : use new IOperationInvoker implementation.

	* System.ServiceModel.dll.sources: add DefaultOperationInvoker.cs.


svn path=/trunk/mcs/; revision=139695
2009-08-11 08:14:30 +00:00
Atsushi Eno 061135e10b 2009-08-07 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add ServiceProxyGenerator.cs.


svn path=/trunk/mcs/; revision=139549
2009-08-07 06:31:22 +00:00
Atsushi Eno 99764f539c 2009-07-31 Atsushi Enomoto <[email protected]>
* IPeerConnectorContract.cs : new file for [MC-PRCH].

	* System.ServiceModel.dll.sources: add IPeerConnectorContract.cs.


svn path=/trunk/mcs/; revision=139158
2009-07-31 09:27:47 +00:00
Atsushi Eno 016ed4186e 2009-07-28 Astushi Enomoto <[email protected]>
* System.ServiceModel.dll.sources: add TransactionFlowAttribute.cs.

	* TransactionFlowAttribute.cs : new file.


svn path=/trunk/mcs/; revision=138842
2009-07-28 14:47:42 +00:00
Atsushi Eno 3c099af375 2009-07-23 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
	  split out binary frame manager class into separate file.

	* System.ServiceModel.dll.sources:
	  split out binary frame manager class into separate file.


svn path=/trunk/mcs/; revision=138489
2009-07-23 03:02:29 +00:00
Atsushi Eno 300441d742 2009-07-21 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : new reply channel implementation.
	* TcpChannelListener.cs : use above for streamed reply channel.
	* TcpDuplexSessionChannel.cs : more streaming mode support.
	* TcpRequestChannel.cs : a couple of updates to get it working
	  with the reply channel above. Still some issues on .NET interop.

	* System.ServiceModel.dll.sources: add TcpReplyChannel.


svn path=/trunk/mcs/; revision=138299
2009-07-21 14:13:06 +00:00
Atsushi Eno b10ae22317 2009-07-17 Atsushi Enomoto <[email protected]>
* TcpRequestChannel.cs : new channel file (TCP for request/reply
	  messaging pattern). The messaging part is not working yet.
	* TcpChannelFactory.cs : support IRequestChannel.
	* TcpDuplexSessionChannel.cs : add unsized message support.

	* System.ServiceModel.dll.sources: add TcpRequestChannel.


svn path=/trunk/mcs/; revision=138125
2009-07-17 13:45:19 +00:00