Commit Graph
443 Commits
Author SHA1 Message Date
Atsushi Eno 779097acc6 2010-02-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : lock when it tries to acquire
	  HttpHandler.


svn path=/trunk/mcs/; revision=150705
2010-02-02 12:29:11 +00:00
Atsushi Eno 9d70540d4e 2010-02-02 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : add another workaround for blocking
	  concurrent calls.


svn path=/trunk/mcs/; revision=150694
2010-02-02 08:18:56 +00:00
Atsushi Eno 18a8263857 2010-02-02 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : small refactoring.


svn path=/trunk/mcs/; revision=150693
2010-02-02 08:08:04 +00:00
Atsushi Eno eba7835465 2010-01-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : added a workaround receiver delay
	  that somehow makes callback client to not cause infinite loop.

	* CallbackBehaviorAttributeTest.cs : enable the test again.


svn path=/trunk/mcs/; revision=150052
2010-01-22 08:48:54 +00:00
Atsushi Eno e58a2c7a66 2010-01-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexChannelBase.cs : Receive() should rather use TryReceive().
	  It should not be in reverse order.


svn path=/trunk/mcs/; revision=150040
2010-01-22 05:00:21 +00:00
Atsushi Eno 5b9ed19fc2 2010-01-22 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, HttpListenerManager.cs :
	  Implement async cancellation in the expected manner (though with
	  some hack). This mostly removed nunit blockers.

	* NetTcpBindingTest.cs : enabled connection tests again, as they
	  got working again (and more importantly, they don't block).
	* CallbackBehaviorAttributeTest.cs : on the other hand, disabled
	  a test so far. It is the only active test && the blocker now.


svn path=/trunk/mcs/; revision=150037
2010-01-22 03:06:48 +00:00
Atsushi Eno 32c2542398 2010-01-22 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : fix wrong status changes.


svn path=/trunk/mcs/; revision=150036
2010-01-22 02:23:53 +00:00
Atsushi Eno ede3b7e64e 2010-01-20 Atsushi Enomoto <[email protected]>
* AddressHeader.cs : XmlSchema.InstanceNamespace didn't exist in 2.1 :(


svn path=/trunk/mcs/; revision=149908
2010-01-20 14:30:29 +00:00
Atsushi Eno 9a72f4cdb6 2010-01-20 Atsushi Enomoto <[email protected]>
* AddressHeader.cs : implement remaining bits.
	  Eliminate dependency on NetDataContractSerializer.

	* AddressHeaderTest.cs : add reader and writer tests.


svn path=/trunk/mcs/; revision=149907
2010-01-20 14:05:06 +00:00
Atsushi Eno e0e85ef8ce 2010-01-20 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : in Fault(), do similar work as previous
	  change does.


svn path=/trunk/mcs/; revision=149879
2010-01-20 05:57:20 +00:00
Atsushi Eno 47f6d5587c 2010-01-19 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : when process state changes, lock the
	  object to make sure the state transition is valid.
	  Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.

	* ChannelDispatcher.cs : another error audit.


svn path=/trunk/mcs/; revision=149793
2010-01-19 10:15:25 +00:00
Atsushi Eno c45f67f3e0 2010-01-13 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : implement SetAction().


svn path=/trunk/mcs/; revision=149451
2010-01-13 11:51:19 +00:00
Atsushi Eno 3c2baafdba forgot to commit.
svn path=/trunk/mcs/; revision=149444
2010-01-13 10:35:13 +00:00
Atsushi Eno 576f8e0614 2010-01-13 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs : fix build.


svn path=/trunk/mcs/; revision=149443
2010-01-13 10:31:34 +00:00
Atsushi Eno b84f0f4553 2010-01-13 Atsushi Enomoto <[email protected]>
* ChannelFactoryBase.cs :
	  implement On{Begin/End}Close() on the generic type.


svn path=/trunk/mcs/; revision=149437
2010-01-13 08:41:18 +00:00
Atsushi Eno 17b88b6dcf 2010-01-13 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, TcpChannelFactory.cs,
	  ChannelFactoryBase.cs, NamedPipeChannelFactory.cs
	  PeerChannelFactory.cs, HttpRequestChannel.cs:
	  fix ChannelFactoryBase API; move On(Begin/End)Open() to internal
	  type and made required changes.



svn path=/trunk/mcs/; revision=149436
2010-01-13 08:28:22 +00:00
Atsushi Eno ad860bce0a 2010-01-13 Astushi Enomoto <[email protected]>
* net_2_1_raw_System.ServiceModel.dll.sources :
	  add HttpCookieContainerBindingElement.cs.

	* HttpCookieContainerBindingElement.cs : new.
	* IHttpCookieContainer.cs : fix type name.
	* HttpRequestChannel.cs, HttpChannelFactory.cs : support above.

	* BasicHttpBinding.cs : add SL3 EnableHttpCookieContainer support.


svn path=/trunk/mcs/; revision=149435
2010-01-13 08:13:43 +00:00
Atsushi Eno 809eae11c2 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
	  does not happen when communicating with .NET client but happens with
	  mono). Seealso FIXME comment.
	* TcpDuplexSessionChannel.cs : do not try to close session when it
	  failed to read sized message. The connection is already dead.

	  Fixed bug #567949.


svn path=/trunk/mcs/; revision=149166
2010-01-07 10:31:54 +00:00
Atsushi Eno 89dc160eeb 2010-01-07 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs :
	  Write EndRecord only when the connection is available.
	  Remove hack - do let ChannelDispatcher close the channel.
	* TcpBinaryFrameManager.cs :
	  The socket may be disconnected when trying to read a sized message,
	  so check some socket exceptions.
	  In case the client silently shuts down without EndRecord and
	  reconnects to the server with preamble while expecting a sized
	  message (which is so lame, but that's what .NET often does), refresh
	  preamble and continue.

	  This fixes some cases of bug #567949 but not all.


svn path=/trunk/mcs/; revision=149163
2010-01-07 08:27:47 +00:00
Atsushi Eno ff3954c708 2010-01-06 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : enable workaround buffering only when
	  the argument stream does *not* support seek. This fixes some
	  net.tcp connection problem.

	* BinaryMessageEncodingBindingElementTest.cs : added test for
	  connection-based tests for both TCP and HTTP (they give difference:
	  see BinaryMessageEncoder.cs change too).


svn path=/trunk/mcs/; revision=149103
2010-01-06 03:39:07 +00:00
Atsushi Eno 74380340ea 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : If preamble byte is not available from
	  the client stream, detect it to close the reply or input channel.
	* TcpRequestChannel.cs : send preamble at each request time.
	  It differentiates communication behavior on such cases that involve
	  single open and multiple requests.
	* TcpReplyChannel.cs : close the channel only when the channel is
	  oeprated to close i.e. do not close the socket every time.
	  Process preambles on each request (the same as request channel).


svn path=/trunk/mcs/; revision=148901
2009-12-26 08:46:37 +00:00
Atsushi Eno 713fc59cf3 2009-12-26 Atsushi Enomoto <[email protected]>
* TcpBinaryFrameManager.cs : unsized envelope record may have more
	  than one data block, so consume them accordingly. This should fix
	  large buffer consumption.


svn path=/trunk/mcs/; revision=148900
2009-12-26 05:41:03 +00:00
Atsushi Eno efe6f6d540 2009-12-21 Atsushi Enomoto <[email protected]>
* MessageFault.cs : support EnvelopeVersion.None as well, as almost
	  the same as SOAP12.

	* MessageFaultTest.cs : add CreateFault test with MessageVersion.None.


svn path=/trunk/mcs/; revision=148797
2009-12-21 06:10:47 +00:00
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