Commit Graph
377 Commits
Author SHA1 Message Date
Atsushi Eno 2ba9827975 Add missing members. 2010-09-29 23:34:49 +09:00
Marek Habersack d718a17c96 [wcf] Make sure context exists in the dictionary getting its associated wait handle.
SvcHttpHandler maintains a mapping of HttpContext to ManualResetEvent. Entries are
removed from the cache in EndHttpRequest. The code makes sure the context exists in
the cache before attempting to access it.
2010-09-29 12:44:27 +02:00
Alan McGovern 08c8799a39 [System.ServiceModel] Fix a few potential exceptions in background threads
Pass the listener as it's own async state so that we avoid potential null derefs in the callback. Also wrap the BeginAccept and EndAccept calls in their own try/catches in case they throw an exception.
2010-09-29 10:37:56 +01:00
Atsushi Eno af6fde94ef TCP channel listener: remove extra complication (threads) in the previous change. 2010-09-29 01:02:09 +09:00
Atsushi Eno 8c7cd3e190 Rework TCP listening model, and fix AcceptTcpClient() to not drop timed out requests that actually steals next requests in the air. 2010-09-28 23:05:26 +09:00
Sebastien Pouliot 6bf7db2ca6 WebResponse.Headers is not always available (e.g. moonlight browser stack)
* System.ServiceModel.Channels/HttpRequestChannel.cs: For Moonlight use
the WebResponse.SupportsHeaders before accessing the Headers collection.
This is needed because (the default) browser stack does not expose the
headers from its responses. Fix bug #642193
2010-09-28 08:43:05 -04:00
Atsushi Eno a5043815da Override IsContentTypeSupported() in per-encoding-binding-element implementation to work as expected. 2010-09-24 16:26:28 +09:00
Atsushi Eno 59de000b20 Avoid holding WebRequest. This should fix part of bug #636500. 2010-09-10 17:51:30 +09:00
Jb Evain 5e32d42531 Remove workaround for moonlight now that System.dll's WebExceptionStatus is properly compiled 2010-09-03 11:31:17 +02:00
Atsushi Eno 65e5d6381c moonlight build workaround: smcs somehow rejects to compile this code. 2010-09-02 21:53:09 +09:00
Atsushi Eno 271213c255 Throw EndpointNotFoundException when it cannot connect to the remote server. 2010-09-02 12:04:29 +09:00
Atsushi Eno 60d557393c implement MessageEncodingBindingElement.GetProperty<T>(). 2010-08-11 01:38:43 +09:00
Atsushi Eno 9965c16abe Cosmetic corcompare fix. 2010-08-10 21:04:48 +09:00
atsushieno 526f29729f Implement several ToString() methods. 2010-07-29 00:04:43 +09:00
Atsushi Eno c47f62c611 fill missing members in Mtom / ongoing sslnego WS-Trust work.
svn path=/trunk/mcs/; revision=160499
2010-07-16 17:31:30 +00:00
Atsushi Eno 64372ac47a 2010-07-14 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs, MessageEncoder.cs:
	  The default content type value is null, not the ContentType value.

	* HttpReplyChannel.cs : pass HTTP ContentType header value to
	  MessageEncoder.ReadMessage().


svn path=/trunk/mcs/; revision=160376
2010-07-14 18:20:24 +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 7dc8ce4629 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestContext.cs : remove extraneous buffering.


svn path=/trunk/mcs/; revision=160147
2010-07-09 18:13:27 +00:00
Atsushi Eno 653633491b 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageDecryptor.cs : avoid duplicate copy of headers into
	  the decrypted message.


svn path=/trunk/mcs/; revision=160144
2010-07-09 16:34:18 +00:00
Atsushi Eno e482c4db5e 2010-07-09 Atsushi Enomoto <[email protected]>
* Message.cs, MessageBufferImpl.cs, MessageImpl.cs: preserve and
	  output attributes prefixes, to copy Body/@wsu:Id to successfully
	  verify the xmldsig.


svn path=/trunk/mcs/; revision=160142
2010-07-09 16:19:19 +00:00
Atsushi Eno 6c620fbb6e 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageFault.cs : MessageFault from Message could have empty
	  detail. Have it return HasDetail as expected.


svn path=/trunk/mcs/; revision=160127
2010-07-09 13:03:19 +00:00
Atsushi Eno 46dc4571d5 2010-07-09 Atsushi Enomoto <[email protected]>
* SecurityRequestChannel.cs : do not try to decrypt faults, they
	  are not encrypted.


svn path=/trunk/mcs/; revision=160126
2010-07-09 13:01:59 +00:00
Atsushi Eno ba9b744df1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : to clone raw xml completely, avoid using 
	  ReadOuterXml() and text reader but use XmlNodeReader instaed.
	* Message.cs : avoid extraneous xmlns:u attribute.


svn path=/trunk/mcs/; revision=160120
2010-07-09 11:33:07 +00:00
Atsushi Eno b1e89864e1 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaderInfo.cs: add internal Prefix
	  property and copy them from source to destination.


svn path=/trunk/mcs/; revision=160107
2010-07-09 09:17:26 +00:00
Atsushi Eno 25d38015d6 2010-07-09 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : When XmlReaderMessage was writing its contents,
	  it was dropping body attributes, including wsu:Id for WS-Security.


svn path=/trunk/mcs/; revision=160105
2010-07-09 07:35:11 +00:00
Atsushi Eno 8d3ff9480e 2010-07-09 Atsushi Enomoto <[email protected]>
* SecureMessageGenerator.cs : MessageBuffer was missing copy of
	  Body wsu:Id attribute.
	* HttpRequestChannel.cs : remove comment for resolved issue.


svn path=/trunk/mcs/; revision=160102
2010-07-09 05:37:14 +00:00
Atsushi Eno 872ac7fb67 2010-07-09 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : move another old code.


svn path=/trunk/mcs/; revision=160099
2010-07-09 04:40:34 +00:00
Atsushi Eno a80f043367 2010-07-08 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=160037
2010-07-08 08:42:12 +00:00
Atsushi Eno 57efbb933e couple of warning cleanups.
svn path=/trunk/mcs/; revision=160034
2010-07-08 08:17:17 +00:00
Atsushi Eno cf52630eec 2010-07-06 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs : null via uri parameter is not allowed.

	* ClientRuntimeChannel.cs : give non-null Via uri.

	* HttpTransportBindingElementTest.cs : add test for
	  ChannelFactoryBase`1.CreateChannel() with null via uri.


svn path=/trunk/mcs/; revision=159934
2010-07-06 04:24:32 +00:00
Atsushi Eno cb97b9bb02 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs, HttpChannelListener.cs, HttpReplyChannel.cs:
	  rename unnecessary "Standalone" (removed).

	* HttpTransportbindingElement.cs : remove "Standalone".


svn path=/trunk/mcs/; revision=159916
2010-07-05 17:39:40 +00:00
Atsushi Eno e424c5b0de move old code to temporary dir (keep them for a while for reference.)
svn path=/trunk/mcs/; revision=159915
2010-07-05 17:33:04 +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 10e67ce38f 2010-07-05 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
	  HttpContextInfo.cs, HttpListenerManager.cs,
	  HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
	  Fixed wsdl support in the new codebase, so enabled it again, and
	  made significant changes for ASP.NET integration. Now ASP.NET
	  implementation switched to the new one.

	* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
	  Support for new and old stack (both) are temporarily enabled.
	* HttpTransportBindingElement.cs : switch to new ASP.NET stack.


svn path=/trunk/mcs/; revision=159907
2010-07-05 14:48:32 +00:00
Atsushi Eno cd0e019d14 2010-07-02 Atsushi Enomoto <[email protected]>
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
	  add more code that the asp.net stuff will become like.

	* SvcHttpHandlerFactory.cs : remove unused code.
	* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
	  support will look like.


svn path=/trunk/mcs/; revision=159818
2010-07-02 16:10:21 +00:00
Atsushi Eno 2cb30316fb 2010-07-02 Atsushi Enomoto <[email protected]>
* Message.cs, MessageImpl.cs, MessageBufferImpl.cs : remove BodyId.
	  XML attributes on s:Body are handled appropriately, not limited to
	  wsu:Id. Added several required overrides to Message and
	  MessageBuffer implementation classes.
	* SecureMessageGenerator.cs : so, don't use BodyId. Treat it as a
	  specific case but still fallback.


svn path=/trunk/mcs/; revision=159800
2010-07-01 22:55:20 +00:00
Atsushi Eno fb9c6ac4ff should be !NET_2_1.
svn path=/trunk/mcs/; revision=159612
2010-06-28 16:56:34 +00:00
Alan McGovern 86d9d25ed3 Add an ifdef for moonlight compilation
svn path=/trunk/mcs/; revision=159604
2010-06-28 14:39:05 +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 408494cfcb 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : cosmetic code formatting fix.


svn path=/trunk/mcs/; revision=159412
2010-06-23 08:17:16 +00:00
Atsushi Eno 4ed002957c 2010-06-23 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : Reduced not a few lines of code,
	  now that we know wsdl and help do not have to be differentiated,
	  this extension support can be a lot simpler.

	* HttpListenerManager.cs :
	  No need to get messed around MetadataPublishingInfo anymore.


svn path=/trunk/mcs/; revision=159411
2010-06-23 08:03:17 +00:00
Atsushi Eno fed51b507c 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : remove extra different code paths for
	  channel dispatchers with or without mex endpoints.


svn path=/trunk/mcs/; revision=159410
2010-06-23 07:46:06 +00:00
Atsushi Eno 130915150a 2010-06-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : simplify FilterHttpContext().

	* ServiceMetadataExtension.cs : add Instance field for simplification.


svn path=/trunk/mcs/; revision=159409
2010-06-23 07:42:16 +00:00
Atsushi Eno 6764dbe11c 2010-06-22 Atsushi Enomoto <[email protected]>
* ServiceBehaviorAttribute.cs : do not overwrite existing properties
	  which may have been set by preceding behaviors. Fix WSDL output.
	* EnvelopeVersion.cs : fix name and namespace for None property.

	* HttpListenerManager.cs : add some comments.

	* DispatchRuntimeTest.cs : add another line of assertion.


svn path=/trunk/mcs/; revision=159313
2010-06-22 08:46:23 +00:00
Atsushi Eno cff92256e5 2010-06-21 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use MessageVersion.None for GET messages.
	* HttpChannelListener.cs : remove extra field.
	* HttpListenerManager.cs : check HelpUrl existence (avoid NRE).
	* HttpRequestContext.cs : reduce internal field.


svn path=/trunk/mcs/; revision=159310
2010-06-22 04:03:25 +00:00
Atsushi Eno 995bc567f8 2010-06-17 Atsushi Enomoto <[email protected]>
* MtomMessageEncodingBindingElement.cs: it's base is abstract, use 
	  context.GetInnerProperty<T>().


svn path=/trunk/mcs/; revision=159068
2010-06-17 11:34:55 +00:00
Atsushi Eno f5456a249a 2010-06-17 Atsushi Enomoto <[email protected]>
* Binding.cs : enable simpler MessageVersion code (issued got fixed).
	* MtomMessageEncodingBindingElement.cs, TransportBindingElement.cs,
	  TextMessageEncodingBindingElement.cs : return MessageVersion in
	  GetProperty<T>().

	* HttpTransportBindingElementTest.cs, CustomBindingTest.cs :
	  anohter couple of MessageVersion tests.


svn path=/trunk/mcs/; revision=159066
2010-06-17 11:24:58 +00:00