Commit Graph
349 Commits
Author SHA1 Message Date
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
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