Commit Graph
329 Commits
Author SHA1 Message Date
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
Atsushi Eno 2a864db5d5 2010-06-17 Atsushi Enomoto <[email protected]>
* Binding.cs : add commented-out code for MessageVersion replacement.
	* TransactionFlowBindingElement.cs : implement (almost dummy).


svn path=/trunk/mcs/; revision=159060
2010-06-17 10:48:06 +00:00
Atsushi Eno 2eb86de94d 2010-06-15 Atsushi Enomoto <[email protected]>
* TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
	  fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
	  (but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)

	* TcpTransportBindingElementTest.cs : add connection tests (imported
	  from standalone olive tests), one is disabled for breakage.


svn path=/trunk/mcs/; revision=158924
2010-06-15 08:43:10 +00:00
Atsushi Eno 9afba05efd 2010-05-28 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : lock read and write respectively.
	  Finally fixed bug #567672 ('IsOneWay=false' case).

	* CallbackBehaviorAttributeTest.cs : added test for bug #567672
	  ('IsOneWay=false' case).


svn path=/trunk/mcs/; revision=158912
2010-06-15 05:45:38 +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 efd7c155a3 2010-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpReplyChannel.cs : do not set RelatesTo
	  here. If the contract is not one-way (IsOneWay = false) and there is
	  a callback, the callback message sent to the client should *not* be
	  assigned RelatesTo header here. Just do it in the request-reply
	  context. Do it in OperationInvokerHandler.

	* OperationInvokerHandler.cs : assign RelatesTo header item here.


svn path=/trunk/mcs/; revision=157950
2010-05-26 10:46:32 +00:00
Atsushi Eno 332843cd5b 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove Sleep() hack. The host is now ensured
	  to wait for channels opened.


svn path=/trunk/mcs/; revision=157669
2010-05-21 09:07:48 +00:00
Atsushi Eno 8560cbb291 2010-05-21 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused field. Some code cleanup.


svn path=/trunk/mcs/; revision=157661
2010-05-21 04:44:51 +00:00
Atsushi Eno 766a1123ca 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : use manual reset.
	* AspNetReplyChannel.cs : make it equivalent to the above.


svn path=/trunk/mcs/; revision=157660
2010-05-21 03:27:39 +00:00
Atsushi Eno d9aac2bd8d 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not accept more than one channel at a
	  time. Remove extra fields. Add CancelAsync() implementation.


svn path=/trunk/mcs/; revision=157659
2010-05-21 03:26:00 +00:00
Atsushi Eno 8a06d77b96 2010-05-21 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : add a workaround for Func<>.BeginInvoke()
	  problem that blocked ASP.NET channels working.


svn path=/trunk/mcs/; revision=157658
2010-05-21 03:20:23 +00:00
Andreia Gaita 9b8e9605c3 * HttpRequestChannel.cs: if the response has no body, create an
empty message and return that.
  Note: the ws-mc protocol defines that the service returns an
  200 response with an empty body on first connection, this
  adds support for that (fixes part of #599667)

svn path=/trunk/mcs/; revision=157525
2010-05-19 05:10:16 +00:00
Atsushi Eno c039515edd 2010-05-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs
          ReplyChannelBase.cs
          TcpChannelListener.cs
          ChannelListenerBase_1.cs
          PeerChannelListener.cs
          HttpChannelListener.cs
          NamedPipeChannelListener.cs:
          do the same for channel listener,reply channels and
          duplex channels.


svn path=/trunk/mcs/; revision=157368
2010-05-14 16:42:06 +00:00
Atsushi Eno eef30ecabf 2010-05-14 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs, RequestChannelBase.cs : support
          MessageVersion in GetProperty<T>() for many transport channels.


svn path=/trunk/mcs/; revision=157367
2010-05-14 16:32:10 +00:00
Atsushi Eno 6bdd3cdf39 2010-05-14 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs
          TcpChannelFactory.cs
          ChannelFactoryBase.cs
          NamedPipeChannelFactory.cs
          PeerChannelFactory.cs
          RequestChannelBase.cs : commonize MessageEncoder.
          (Commented out GetPrpoerty<T>() for MessageVersion as it is 
          in doubt yet.)


svn path=/trunk/mcs/; revision=157366
2010-05-14 16:22:18 +00:00
Atsushi Eno 599f26938d 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : do not pass empty string array; it almost
          always results in header-not-found error.


svn path=/trunk/mcs/; revision=157365
2010-05-14 15:41:06 +00:00
Atsushi Eno a2894fceaa 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : do not try to lookup prefix for empty ns.


svn path=/trunk/mcs/; revision=157364
2010-05-14 15:11:45 +00:00
Atsushi Eno a2320571aa 2010-05-14 Atsushi Enomoto <[email protected]>
* MessageImpl.cs : do not use maxBufferSize for initialSize argument
          for MessageHeaders. Fix OutOfMemoryException for certain usage.


svn path=/trunk/mcs/; revision=157363
2010-05-14 14:21:24 +00:00
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