470 Commits
Author SHA1 Message Date
Atsushi Eno 1957411c41 2009-12-17 Atsushi Enomoto <[email protected]>
* HttpRequestContext.cs : for DestinationUnreachable message, this
	  channel returns 400 in .NET.


svn path=/trunk/mcs/; revision=148660
2009-12-17 05:55:50 +00:00
Atsushi Eno a8dda7b9dd 2009-12-16 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : added workaround for strange stream
	  consumption error raised by HttpTransport + Binary encoder example.
	* BinaryMessageEncodingBindingElement.cs:
	  only SOAP 1.2 is allowed for this encoder.


svn path=/trunk/mcs/; revision=148552
2009-12-16 08:47:32 +00:00
Atsushi Eno 901b82ee2b 2009-12-14 Atsushi Enomoto <[email protected]>
* XmlReaderBodyWriter.cs : don't try to write empty xml.


svn path=/trunk/mcs/; revision=148367
2009-12-14 07:16:44 +00:00
Atsushi Eno f71285f7ce 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : avoid adding duplicate headers. Basically
	  default WebHeaderCollection items are overwritten.


svn path=/trunk/mcs/; revision=148012
2009-12-10 08:22:41 +00:00
Atsushi Eno ef4a0199b5 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : when HTTP response was error, do not try
	  to read message but just raise an error.


svn path=/trunk/mcs/; revision=148011
2009-12-10 07:57:11 +00:00
Atsushi Eno 95b8c6d86d 2009-12-10 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : null can be set as a WS-Addressing header item.

	* MessageHeadersTest.cs : make sure null can be set as a
	  WS-Addressing header when version is None.


svn path=/trunk/mcs/; revision=148006
2009-12-10 06:50:38 +00:00
Atsushi Eno 384a2f519d 2009-12-10 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : WebException.Response might be null.


svn path=/trunk/mcs/; revision=148004
2009-12-10 06:02:50 +00:00
Atsushi Eno cc188e44f4 2009-12-04 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : added listener property.
	* SecurityChannelListener.cs : quick async impl, as ServiceHost has
	  been updated to prefer async by default, a while ago.


svn path=/trunk/mcs/; revision=147658
2009-12-04 12:58:35 +00:00
Atsushi Eno 361233a3d4 2009-12-04 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs : finished all GetProperty() values.

	* HttpTransportBindingElementTest.cs : added GetProperty() tests.


svn path=/trunk/mcs/; revision=147646
2009-12-04 09:51:53 +00:00
Atsushi Eno c3f1becc55 2009-12-04 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs : disabled carelessly added
	  "UseDefaultCredentials = false" line. It blocked basic auth.


svn path=/trunk/mcs/; revision=147645
2009-12-04 09:10:40 +00:00
Atsushi Eno 03e70edb42 2009-12-04 Atsushi Enomoto <[email protected]>
* HttpRequestChannel.cs, HttpChannelFactory.cs,
	  HttpChannelListener.cs, HttpListenerManager.cs :
	  implemented http client authentication and some of corresponding
	  service code. Only client works so far.


svn path=/trunk/mcs/; revision=147642
2009-12-04 04:59:54 +00:00
Atsushi Eno d9be950d9c 2009-12-03 Astushi Enomoto <[email protected]>
* System.ServiceModel_test.dll.sources:
	  added HttpsTransportBindingElementTest.cs.

	* HttpsTransportBindingElement.cs, HttpChannelListener.cs :
	  added URI scheme check.

	* HttpsTransportBindingElementTest.cs : new test.


svn path=/trunk/mcs/; revision=147538
2009-12-03 09:40:30 +00:00
Atsushi Eno c5c30e1e71 2009-12-03 Atsushi Enomoto <[email protected]>
* TransportSecurityBindingElement.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=147534
2009-12-03 08:34:37 +00:00
Atsushi Eno 0532f0a556 2009-12-03 Atsushi Enomoto <[email protected]>
* HttpsTransportBindingElement.cs :
	  RequireClientCertificate is false by default.
	  Remove extra #if NET_2_1.
	* SecurityBindingElement.cs :
	  Implement some transport security factory methods.
	* TransportSecurityBindingElement.cs :
	  It is not ISecurityCapabilities anymore.

	* BasicHttpBinding.cs : handle transport security properties.

	* BasicHttpBindingTest.cs : added transport security related tests.


svn path=/trunk/mcs/; revision=147532
2009-12-03 08:22:35 +00:00
Atsushi Eno 68982173b6 2009-11-25 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources, Dummy_2_1.cs:
	  reflected a couple of SL3 updates.

	* EndpointAddress10.cs : added it to the 2.1 build for SL3 API.

	* MessageHeaders.cs
	  SecurityBindingElement.cs
	  LocalClientSecuritySettings.cs
	  TransportSecurityBindingElement.cs
	  FaultConverter.cs : They are now part of SL3 API.

	* ClientCredentials.cs : it is part of SL3 API, so adjusted for it.


svn path=/trunk/mcs/; revision=146952
2009-11-25 22:56:54 +00:00
Atsushi Eno 72bbdbe898 2009-11-17 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs : changes for 2.1 build.

	* net_2_1_System.ServiceModel.dll.sources :
	  add binary message encoder support.


svn path=/trunk/mcs/; revision=146307
2009-11-17 01:18:31 +00:00
Geoff Norton e1f0b0e30f 2009-11-05 Geoff Norton <[email protected]>
* HttpsTransportBindingElement.cs: Implement basic https transport
	binding support for Moonlight and MonoTouch

svn path=/trunk/mcs/; revision=145560
2009-11-06 04:20:04 +00:00
Geoff Norton 3b91c65f57 remove confusing debug spew
svn path=/trunk/mcs/; revision=145356
2009-11-04 01:34:04 +00:00
Atsushi Eno fd3d3eb468 2009-10-22 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : remove CWLs.


svn path=/trunk/mcs/; revision=144656
2009-10-22 18:07:42 +00:00
Atsushi Eno 0af00e9347 2009-10-22 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : move back previous listener selector code in
	  ProcessRequest(). Unlike HttpListener, ASP.NET does not refine
	  and differentiate requests to deeper paths (such as /jsdebug), so
	  we need such refinement here.


svn path=/trunk/mcs/; revision=144652
2009-10-22 16:40:53 +00:00
Atsushi Eno be0e5a8349 2009-10-22 Atsushi Enomoto <[email protected]>
* ServiceMetadataExtension.cs : channelDispatchers is keyed by URL,
	  so it might have been skipped when the URLs are the same for wsdl
	  and help. So, differentiate flags for mex and help, not to be
	  exclusive. This fixes random-ish EndpointNotFound for WSDLs.

	* HttpListenerManager.cs : dependent fix to ServiceMetadataExtension
	  changes.


svn path=/trunk/mcs/; revision=144625
2009-10-22 10:49:04 +00:00
Atsushi Eno 56c050c5ae 2009-10-22 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, HttpReplyChannel.cs, AspNetReplyChannel.cs,
	  HttpChannelListener.cs, HttpListenerManager.cs :
	  Similar refactoring on ASP.NET side to the previous one.
	  Added ASP.NET implementation of HttpListenerManager and use some
	  part of it in SvcHttpHandler (ASP.NET stack does not fully make use
	  of the manager yet).
	  Rewrote AspNetReplyChannel to become almost the same as
	  HttpSimpleReplyChannel, to hopefully unify them later.
	  Now it dispatches requests to *.svc for wsdl, help and SOAP as long
	  as ServiceThrottle has MaxConcurrentSessions=1. Also REST calls
	  are still broken.


svn path=/trunk/mcs/; revision=144605
2009-10-22 07:01:40 +00:00
Atsushi Eno 8576862d51 2009-10-20 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, HttpChannelListener.cs, HttpListenerManager.cs:
	  Refactoring on listener manager to correctly handle wsdl and help
	  requests for such case that they conflict in addressing. Now it
	  can correctly distinguish service calls, WSDL requests and help
	  requests when all of them point to "http://localhost/foo.svc"
	  (which is very common case that the user does not change Http*Url).

	* ServiceMetadataExtension.cs : restructure internal channel property
	  so that http channels can cope with it.


svn path=/trunk/mcs/; revision=144419
2009-10-20 06:43:01 +00:00
Atsushi Eno 9a4191a74b 2009-10-16 Atsushi Enomoto <[email protected]>
* ChannelListenerBase.cs : add Properties property to add arbitrary
	  properties handy (only inside this assembly).

	* ServiceHostBase.cs : removed internal dispatcher builder method.

	* ServiceMetadataExtension.cs : Handle all predefined mex bindings.
	  Use DispatcherBuilder directly. Add mex listener property to
	  distinguish the listener from http channel listeners later.


svn path=/trunk/mcs/; revision=144262
2009-10-16 11:57:57 +00:00
Atsushi Eno 3099dda7eb 2009-10-16 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : fix warning.


svn path=/trunk/mcs/; revision=144261
2009-10-16 11:24:23 +00:00
Atsushi Eno 5b129557f5 2009-10-15 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, AspNetReplyChannel.cs : set Via property.


svn path=/trunk/mcs/; revision=144221
2009-10-15 18:18:00 +00:00
Atsushi Eno 2ff65aad8a 2009-10-15 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : make sure to release wait lock.
	* HttpChannelListener.cs : session channels are not supported, so
	  remove relevant NIEs.


svn path=/trunk/mcs/; revision=144202
2009-10-15 13:50:47 +00:00
Sebastien Pouliot 8556ef9018 2009-10-15 Sebastien Pouliot <[email protected]>
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
	support contexts so we call the non-overloaded WaitOne method 
	(which defaults to false).


svn path=/trunk/mcs/; revision=144200
2009-10-15 12:53:31 +00:00
Atsushi Eno 048903c03e 2009-10-13 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
	  significant rewrite to cooperate wcf handler and asp.net handler
	  to not mix multiple WCF listener within the asp.net handler.
	  So far it mostly works when 1) there are no ChannelDispatchers
	  that have an identical listen Uri and 2) MaxConcurrentSessions is
	  1 (must be explicitly set).


svn path=/trunk/mcs/; revision=144008
2009-10-13 12:12:49 +00:00
Atsushi Eno 2e1a9a1103 2009-10-13 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : give better state error description.


svn path=/trunk/mcs/; revision=144004
2009-10-13 11:32:20 +00:00
Atsushi Eno e4fe97dc46 2009-10-09 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : OnOpening() and OnOpened() require calls
	  to base methods. This resulted in not a few changes everywhere.

	 * ChannelDispatcher.cs : OnOpened/OnOpening constraints related
	   changes were required here too. Actually it simplified code.

	* InstanceContext.cs : new constraints on CommunicationObject
	  required calls to base methods.
	* ChannelFactory.cs : ditto. Actually changed timing to call
	  Open() on the internal factory.
	* ServiceHostBase.cs : removed DoOpen() which is almost extra now.
	  Added temporary IMetadataExchange workaround.


svn path=/trunk/mcs/; revision=143829
2009-10-09 07:30:39 +00:00
Atsushi Eno 533c8a0eba 2009-10-07 Atsushi Enomoto <[email protected]>
* IHttpCookieContainer.cs : new 2.1-only interface (no use).

	* net_2_1_System.ServiceModel.dll.sources :
	  add IHttpCookieContainer.cs.


svn path=/trunk/mcs/; revision=143593
2009-10-07 02:12:46 +00:00
Atsushi Eno f85fb44369 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use file path given by the factory to
	  construct BaseAddresses. Requests to "test.svc/jsdebug" should
	  not be handled as request to "jsdebug" file, it's rather an
	  "argument" to "test.svc".


svn path=/trunk/mcs/; revision=143545
2009-10-06 18:07:13 +00:00
Atsushi Eno 1b211df0d6 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs, HttpChannelListener.cs : some significant
	  rewrite to handle shutdown situation better. The listeners should
	  not close channels that it opened. Instead, just stop accepting
	  further requests. Removed blocking mutex on WaitForRequest().
	  Now xsp shuts down as expected.


svn path=/trunk/mcs/; revision=143498
2009-10-06 09:32:38 +00:00
Atsushi Eno e9fdeaa1a6 2009-10-06 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : lock list when releasing its content contexts.
	* AspNetReplyChannel.cs : send EndRequest() to handler when it is
	  closing.


svn path=/trunk/mcs/; revision=143497
2009-10-06 09:25:24 +00:00
Atsushi Eno ba7094581d 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : remove todo.
	* ReplyChannelBase.cs : add comment.


svn path=/trunk/mcs/; revision=143495
2009-10-06 09:21:27 +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 061db132e8 2009-10-02 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, AspNetReplyChannel.cs, AspNetRequestContext.cs:
	  asp.net response was not written correctly.
	  Fill HttpRequestMessageProperty to get handle WSDL requests
	  processed in ServiceMetadataExtension without NRE.
	  Remove wrong HttpListenerContext iteration at Abort and Close in
	  common base class and move it to non-asp derived channel.


svn path=/trunk/mcs/; revision=143244
2009-10-02 05:37:15 +00:00
Atsushi Eno bfd1ab4d0f 2009-10-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused code.


svn path=/trunk/mcs/; revision=143243
2009-10-02 05:22:46 +00:00
Jb Evain fe904e9681 2009-09-30 Jb Evain <[email protected]>
* HttpRequestChannel.cs: When compiling for MonoTouch, avoid
	to use any of the remoting features.


svn path=/trunk/mcs/; revision=142970
2009-09-30 08:43:02 +00:00
Atsushi Eno fe21efeb9c 2009-09-30 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs, HttpTransportBindingElement.cs :
	  use AspNetCompatibilityEnabled.
	* SvcHttpHandler.cs : disable ApplyConfiguration(). It should be done
	  at ServiceHostBase.
	* AspNetReplyChannel.cs : remove extra field.

	* ServiceHostingEnvironment.cs : use AspNetCompatibilityEnabled as
	  ASP.NET switch.


svn path=/trunk/mcs/; revision=142953
2009-09-30 03:47:41 +00:00
Atsushi Eno f98f78d7b8 tsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : remove extra field.


svn path=/trunk/mcs/; revision=142908
2009-09-29 17:21:15 +00:00
Atsushi Eno a50fdd29cd 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs : remove CWL.


svn path=/trunk/mcs/; revision=142893
2009-09-29 16:18:00 +00:00
Atsushi Eno b99731f276 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetReplyChannel.cs, AspNetRequestContext.cs : close HttpContext
	  only after AspNetRequestContext is closed. Do not close it
	  immediately after receiving the context. (HttpRuntime destructs it
	  and further uses then becomes impossible.)


svn path=/trunk/mcs/; revision=142892
2009-09-29 16:03:35 +00:00
Atsushi Eno 6598a1ace1 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetReplyChannel.cs, HttpReplyChannel.cs : add some comments.
	* SvcHttpHandlerFactory.cs, SvcHttpHandler.cs, HttpChannelListener.cs:
	  Make sure that AspNetChannelListener is bound to correct
	  SvcHttpHandler, regardless of specific request URI. It is required
	  for both WSDL requests and RESTful binding requests.


svn path=/trunk/mcs/; revision=142880
2009-09-29 15:06:36 +00:00
Atsushi Eno 3f987a1b6f 2009-09-14 Atsushi Enomoto <[email protected]>
* MessagePropertiesTest.cs : new test.

	* MessageProperties.cs : fix CopyProperties() behavior to not
	  clear existing items. Make all properties call this[name].

	* System.ServiceModel_test.dll.sources: add MessagePropertiesTest.cs.


svn path=/trunk/mcs/; revision=141898
2009-09-14 17:03:34 +00:00
Atsushi Eno 7c758401c0 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=141896
2009-09-14 15:41:16 +00:00
Atsushi Eno ed6ea58db0 2009-09-14 Atsushi Enomoto <[email protected]>
* TransportBindingElement.cs : another GetProperty fix, iterate
	  other binding elements.


svn path=/trunk/mcs/; revision=141891
2009-09-14 13:23:01 +00:00
Atsushi Eno 6f0a6b36f1 2007-09-14 Atsushi Enomoto <[email protected]>
* MsmqIntegrationBindingElement.cs : implemented some parts.

	* HttpTransportBindingElement.cs, PeerTransportBindingElement.cs :
	  some GetProperty() implementation.


svn path=/trunk/mcs/; revision=141890
2009-09-14 13:20:21 +00:00
Atsushi Eno 9b00574253 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : release HttpListener and avoid extra
	  close process more than once.


svn path=/trunk/mcs/; revision=141880
2009-09-14 09:01:39 +00:00