Commit Graph
354 Commits
Author SHA1 Message Date
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
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
Atsushi Eno aa516607c1 2009-09-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not iterate channel list to close
	  channels which in turn removes them from the list while iteration.


svn path=/trunk/mcs/; revision=141773
2009-09-11 15:31:31 +00:00
Atsushi Eno f5d6d3167b 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : default action name is prepended
	  "urn:", and on the other hand do not add extra '/' in such case.

	* HttpRequestChannel.cs : Fix message version member comparison.
	  Double-quote SOAPAction. Remove extra Exception.
	* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
	* HttpRequestContext.cs : when addressing is None, remove action
	  from the message.


svn path=/trunk/mcs/; revision=141394
2009-09-06 10:32:38 +00:00
Atsushi Eno 47dfe0a55e 2009-09-04 Atsushi Enomoto <[email protected]>
* ServiceHostBase.cs : URI trailing '/' can be added only when the
	  relative URI is non-empty. Do not make http://host/foo.svc as
	  http://host/foo.svc/ , it's not a directory.

	* SvcHttpHandler.cs : set Uri property based on baseAddresses and
	  path, to pick those endpoints that are added at custom factories.


svn path=/trunk/mcs/; revision=141307
2009-09-04 09:55:04 +00:00
Atsushi Eno 0a17ae4318 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : apply configuration, and if there is still no
	  endpoint, then add default one.


svn path=/trunk/mcs/; revision=141230
2009-09-03 11:08:35 +00:00
Atsushi Eno e5518a68ff 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : another URL to make relative.


svn path=/trunk/mcs/; revision=141227
2009-09-03 10:49:35 +00:00
Atsushi Eno b7389dd966 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : some GetHandler changes.
	* SvcHttpHandler.cs : significant changes on receiver structure. Now
	  ProcessRequest() stores pending requests (this might be extraneous,
	  but maybe useful when it implements async handler). Also removed
	  reply_channel field as it may become to handle multiple requests.
	* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
	* AspNetReplyChannel.cs : make it receive requests like
	  HttpReplyChannel (for HttpListener) to make them consistent.


svn path=/trunk/mcs/; revision=141224
2009-09-03 10:13:08 +00:00
Atsushi Eno 96409c115e 2009-09-03 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs, HttpRequestContext.cs :
	  fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
	  by splitting HttpListener-based context out from common code base.


svn path=/trunk/mcs/; revision=141219
2009-09-03 09:52:07 +00:00
Atsushi Eno 5ce2b80051 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
	  relative or absolute. new Uri ("/foobar") doesn't work on non-unix
	  environment.


svn path=/trunk/mcs/; revision=141206
2009-09-03 06:13:18 +00:00
Atsushi Eno d75a16d629 2009-09-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
	  loads types from system assemblies appropriately.


svn path=/trunk/mcs/; revision=141128
2009-09-02 12:48:01 +00:00
Atsushi Eno b98bb73fa6 2009-09-02 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs :
	  implement XmlBodyWriter.OnCreateBufferedCopy().

	* XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
	  for XmlReader input.


svn path=/trunk/mcs/; revision=141111
2009-09-02 10:18:38 +00:00
Atsushi Eno f3bae627cb 2009-09-02 Atsushi Enomoto <[email protected]>
* HttpRequestMessageProperty.cs : fix default values.

	* HttpRequestMessagePropertyTest.cs : new test.

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


svn path=/trunk/mcs/; revision=141110
2009-09-02 10:16:21 +00:00
Atsushi Eno 7a217b8104 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, HttpRequestChannel.cs,
	  ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
	  Check ManualAddressing value and reject address-missing ones.


svn path=/trunk/mcs/; revision=140962
2009-08-31 12:26:49 +00:00
Atsushi Eno 59fceba19b 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs : reject URI mismatch cases when required.

	* HttpTransportBindingElementTest.cs : test for URI mismatch case.


svn path=/trunk/mcs/; revision=140960
2009-08-31 12:10:33 +00:00