Commit Graph
310 Commits
Author SHA1 Message Date
Atsushi Eno bc0d9e7627 2010-05-14 Atsushi Enomoto <[email protected]>
* BindingContext.cs : actually clone is needed everywhere else too.
	* CustomBinding.cs : remove extra field.

	* BindingContextTest.cs : add a couple of tests with related to
	  RemainingBindingElements use. Some tests by Andreia Gaita.


svn path=/trunk/mcs/; revision=157350
2010-05-14 07:28:26 +00:00
Atsushi Eno 3b981adaf1 2010-05-14 Andreia Gaita <[email protected]>
* BindingContext.cs: Copy elements from the original binding only when
	creating it, never when cloning it. This way, CanBuildInnerChannel can
	work recursively as it should.

2010-05-14  Atsushi Enomoto  <[email protected]>

	* CustomBinding.cs : return clone collection.
	* BindingContext.cs :
	  Simply use RemainingBindingElements in builder methods.
	  Clone() should be deep copying (as documented).
	* BinaryMessageEncodingBindingElement.cs
	  MtomMessageEncodingBindingElement.cs
	  TextMessageEncodingBindingElement.cs
	  HttpCookieContainerBindingElement.cs :
	  do not add itself to RemainingBindingElements.
	* HttpChannelFactory.cs
	  HttpChannelListener.cs
	  TcpChannelFactory.cs
	  TcpChannelListener.cs
	  MsmqChannelFactory.cs
	  MsmqChannelListener.cs
	  NamedPipeChannelFactory.cs
	  NamedPipeChannelListener.cs
	  PeerChannelFactory.cs
	  PeerChannelListener.cs : do not iterate RemainingBindingElements.
	  Instead, iterate all binding elements in the CustomBinding.



svn path=/trunk/mcs/; revision=157345
2010-05-14 05:20:37 +00:00
Atsushi Eno 270d685791 2010-05-12 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : implement On[Begin|End][Close|Open] methods.


svn path=/trunk/mcs/; revision=157243
2010-05-12 15:01:17 +00:00
Atsushi Eno ad98bd16a5 2010-04-30 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : use manual reset here to not cause
	  possible inconsistent locking.


svn path=/trunk/mcs/; revision=156489
2010-04-30 06:52:41 +00:00
Atsushi Eno 277acc8496 2010-04-28 Atsushi Enomoto <[email protected]>
* ChannelDispatcher.cs : add workaround to set ChannelDispatcher
	  to IChannelListener. Avoid null ChannelDispatcher in http listener.

	* HttpChannelListener.cs, HttpListenerManager.cs :
	  Fix NRE issue in olive/samples/wcf/web-http-binding/samplesvc3.exe.


svn path=/trunk/mcs/; revision=156344
2010-04-28 16:25:01 +00:00
Atsushi Eno bbf33e9aa2 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : fixed the issue that mex_info is never
	  retrieved from the latest channel listener (which could be other
	  listener than the one which was set mex info).

	* ServiceMetadataExtension.cs : raise an error if it failed to set
	  mex info. (Make it safer.)


svn path=/trunk/mcs/; revision=155991
2010-04-23 10:28:49 +00:00
Atsushi Eno 01eefcc298 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs, HttpListenerManager.cs :
	  actually it should be ChannelDispatcher-to-HttpChannelListener,
	  to identify which dispatcher to send reqs.

	* ServiceHostBase.cs: (ditto)


svn path=/trunk/mcs/; revision=155982
2010-04-23 09:26:26 +00:00
Atsushi Eno fb1082c642 2010-04-23 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : remove old Http Keep-Alive workaround.


svn path=/trunk/mcs/; revision=155975
2010-04-23 07:05:56 +00:00
Atsushi Eno c9f0b1759e 2010-04-23 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : add host-to-http-listener mapping so that
	  they can be managed per host.

	* HttpTransportBindingElement.cs,
	  HttpChannelListener.cs,
	  HttpListenerManager.cs : add host-to-http-listener mapping so that
	  they can be managed per host.

	* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.


svn path=/trunk/mcs/; revision=155974
2010-04-23 05:26:17 +00:00
Atsushi Eno adc4026eae 2010-04-21 Atsushi Enomoto <[email protected]>
* BindingContext.cs : require a TransportBindingElement when
	  building a channel listener.

	* CustomBindingTest.cs : enable BuildChannelListener test for no-
	  transport case. Test CanBuildChannelListener too.


svn path=/trunk/mcs/; revision=155857
2010-04-21 09:45:46 +00:00
Atsushi Eno 18949880fe 2010-04-19 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use local var to hold wait handle to avoid
	  possible NRE on field. Based on the patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=155692
2010-04-19 03:53:24 +00:00
Miguel de Icaza b24092d077 2010-04-07 Miguel de Icaza <[email protected]>
*  BufferManager.cs: Implement the BufferManager. 

svn path=/trunk/mcs/; revision=154999
2010-04-07 22:17:32 +00:00
Atsushi Eno 320e91e4b4 2010-04-07 Atsushi Enomoto <[email protected]>
* WSSecurityMessageHeader.cs : add FIXME comment.


svn path=/trunk/mcs/; revision=154917
2010-04-07 09:16:26 +00:00
Atsushi Eno 25a5ead3c2 2010-04-06 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : add commented note.


svn path=/trunk/mcs/; revision=154838
2010-04-06 11:13:49 +00:00
Atsushi Eno 4ef24ed9ad 2010-04-06 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : fill To header only if it does not exist.


svn path=/trunk/mcs/; revision=154826
2010-04-06 08:46:42 +00:00
Atsushi Eno fee81128a7 2010-04-06 Atsushi Enomoto <[email protected]>
* SecureMessageGenerator.cs : set ReplyTo and To, do not add.


svn path=/trunk/mcs/; revision=154825
2010-04-06 07:08:23 +00:00
Atsushi Eno f53aae9364 2010-04-06 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : use matching addressing version.
	  Remove header item if the same ones already exist.


svn path=/trunk/mcs/; revision=154824
2010-04-06 06:55:35 +00:00
Gonzalo Paniagua Javier d234d0136f 2010-04-06 Gonzalo Paniagua Javier <[email protected]>
* HttpRequestChannel.cs: don't create the wait handle unless it is
	really needed.


svn path=/trunk/mcs/; revision=154822
2010-04-06 05:01:51 +00:00
Atsushi Eno f026893db8 2010-04-02 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : use correct max buffer size.


svn path=/trunk/mcs/; revision=154708
2010-04-02 11:36:49 +00:00
Atsushi Eno 6020091ff0 2010-04-02 Atsushi Enomoto <[email protected]>
* MessageFault.cs : check null serializer and detail.
	  Make sure to consume s12:Reason EndElement.


svn path=/trunk/mcs/; revision=154707
2010-04-02 11:11:13 +00:00
Atsushi Eno 36187d3171 2010-04-02 Atsushi Enomoto <[email protected]>
* MessageFault.cs : when created from XmlReader, it should not
	  deserialize fault details immediately. This class itself should
	  not do that. Strongly typed FaultContractInfo may want to use the
	  reader (GetReaderAtDetailContents()) for its own deserialization.


svn path=/trunk/mcs/; revision=154695
2010-04-02 09:07:09 +00:00
Atsushi Eno e1b6d382fe 2010-04-01 Atsushi Enomoto <[email protected]>
* ConnectionOrientedTransportBindingElement.cs,
	  TcpTransportBindingElement.cs : implement GetProperty<T>().

	* TcpTransportBindingElementTest.cs : GetProperty<T>() here too.


svn path=/trunk/mcs/; revision=154624
2010-04-01 09:34:16 +00:00
Atsushi Eno 73481d620c 2010-04-01 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
	  implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
	  properties type from HTTP.

	* HttpsTransportBindingElementTest.cs :
	  added test for GetProperty<T>().


svn path=/trunk/mcs/; revision=154621
2010-04-01 09:13:45 +00:00
Atsushi Eno ad6c7601f5 2010-04-01 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : use addressing version from the message.

	* ServiceHostBaseTest.cs : enable RunDestinationUnreachableTest()
	  and add another case for different addressing version.


svn path=/trunk/mcs/; revision=154608
2010-04-01 04:54:36 +00:00
Atsushi Eno a23f75e7be 2010-03-30 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : check envelope version, not addressing version.


svn path=/trunk/mcs/; revision=154426
2010-03-30 07:34:18 +00:00
Atsushi Eno a08eda1815 2010-03-29 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : implemented TryCreateException().

	* FaultConverterTest.cs : added more TryCreateException() tests.


svn path=/trunk/mcs/; revision=154376
2010-03-29 14:01:33 +00:00
Atsushi Eno 789dc0be76 2010-03-29 Atsushi Enomoto <[email protected]>
* MessageFault.cs : cosmetic method name clarification.

	* MessageFaultTest.cs : enable previous test.

	(made wrong commit in the previous test changelog)


svn path=/trunk/mcs/; revision=154356
2010-03-29 08:41:07 +00:00
Atsushi Eno 8056b10c0e 2010-03-29 Atsushi Enomoto <[email protected]>
* XmlReaderBodyWriter.cs, Message.cs, MessageImpl.cs, BodyWriter.cs:
	  fix BodyWriter buffering that dropped in-scope namespaces and thus
	  caused problem on resolving QNames.

	* MessageFaultTest.cs : enable previous test.


svn path=/trunk/mcs/; revision=154354
2010-03-29 07:43:14 +00:00
Sebastien Pouliot b18a6ee9b3 fix NET_2_1 build (poor lone else)
svn path=/trunk/mcs/; revision=154297
2010-03-26 17:23:03 +00:00
Atsushi Eno cb9aee8dda 2010-03-26 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : do implement OnTryCreateFaultMessage() to work
	  with certain Exception types.


svn path=/trunk/mcs/; revision=154281
2010-03-26 14:50:46 +00:00
Atsushi Eno 4947b938d6 2010-03-26 Atsushi Enomoto <[email protected]>
* Message.cs : fix explanation on CreateMessage() overloads.


svn path=/trunk/mcs/; revision=154280
2010-03-26 14:47:28 +00:00
Atsushi Eno 71bbae3e58 2010-03-26 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Write Subcode element correctly and fix wrong
	  Code/Value/Subcode element relationship. Give better error message.


svn path=/trunk/mcs/; revision=154279
2010-03-26 14:45:34 +00:00
Atsushi Eno 40564594bb 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : ok, no need for conditional code path.


svn path=/trunk/mcs/; revision=154275
2010-03-26 14:18:47 +00:00
Atsushi Eno 4190808818 2010-03-26 Atsushi Enomoto <[email protected]>
* AddressingVersion.cs : add fault action namespace.


svn path=/trunk/mcs/; revision=154274
2010-03-26 14:17:48 +00:00
Sebastien Pouliot 8c187610f3 2010-03-26 Sebastien Pouliot <[email protected]>
* HttpRequestChannel.cs: There is no WebHeaderCollection.Add 
	method in SL API


svn path=/trunk/mcs/; revision=154264
2010-03-26 12:30:14 +00:00
Atsushi Eno 570c1d9c76 2010-03-26 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : pass IsFault argument in OnCreateBufferedCopy().

	* MessageBufferTest.cs : add test for copy of IsFault value.


svn path=/trunk/mcs/; revision=154250
2010-03-26 08:10:09 +00:00
Atsushi Eno 7657287175 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs, AspNetRequestContext.cs : return HTTP 500
	  for fault message.


svn path=/trunk/mcs/; revision=154249
2010-03-26 07:03:27 +00:00
Atsushi Eno 98329a07f9 2010-03-26 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : create HttpResponseMessageProperty.


svn path=/trunk/mcs/; revision=154247
2010-03-26 06:33:48 +00:00
Atsushi Eno 75fd967aae 2010-03-25 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : removed HTTP status rewriting for
	  commented reason.


svn path=/trunk/mcs/; revision=154201
2010-03-25 15:32:59 +00:00
Atsushi Eno 01bd843372 2010-03-25 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : handle only 4xx errors as to not process
	  content stream.


svn path=/trunk/mcs/; revision=154191
2010-03-25 07:53:38 +00:00
Atsushi Eno 9bcaaf5aed 2010-03-25 Atsushi Enomoto <[email protected]>
* MessageFault.cs : do not use SOAP11 namespace for fault contents.


svn path=/trunk/mcs/; revision=154188
2010-03-25 04:18:45 +00:00
Atsushi Eno fbd6bb5853 2010-03-24 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, HttpReplyChannel.cs : add some locking.
	  Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154125
2010-03-24 10:54:55 +00:00
Atsushi Eno 3a06880a84 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : use lock object which is subject to
	  change. Fix by Matt Dargavel.


svn path=/trunk/mcs/; revision=154121
2010-03-24 10:00:48 +00:00
Atsushi Eno 2500e7ef08 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : remove consumed HttpListenerContext from
	  the pending queue. Compare "wsdl" request in case insensitive
	  manner. Patch by Matt Dargavel.


svn path=/trunk/mcs/; revision=154120
2010-03-24 09:58:46 +00:00
Atsushi Eno de17bced2c 2010-03-24 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : apply the patch by Matt Dargavel, which is
	  supposed to provide detailed 400 error message.


svn path=/trunk/mcs/; revision=154112
2010-03-24 06:15:44 +00:00
Atsushi Eno 298f5fcfc1 2010-03-24 Atsushi Enomoto <[email protected]>
* TransactionFlowBindingElement.cs: revamp the previous change to
	  not regress regarding service metadata.


svn path=/trunk/mcs/; revision=154108
2010-03-24 05:25:17 +00:00
Atsushi Eno e531d0f1c2 2010-03-24 Atsushi Enomoto <[email protected]>
* ChannelListenerBase.cs, TransactionFlowBindingElement.cs: fix 
	  GetProperty<T>() bug that fails to retrieve properties. (This may
	  be rewritten later if an ongoing change proposal is to take place.)


svn path=/trunk/mcs/; revision=154107
2010-03-24 05:10:27 +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 3b333ef840 2010-03-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs :
	  why does it filter out most of the headers? kill it.


svn path=/trunk/mcs/; revision=153716
2010-03-17 08:48:15 +00:00
Atsushi Eno 1e0be4e748 2010-03-17 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs,
	  HttpListenerManager.cs : refactoring on acquiring SvcHttpHandler
	  to not raise "not found" error (see bug #573795).


svn path=/trunk/mcs/; revision=153712
2010-03-17 07:05:41 +00:00