Commit Graph
177 Commits
Author SHA1 Message Date
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
Atsushi Eno ef6042e66b 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : When received Connect() from neighbor,
	  add the peer to its internal list.
	  Finally ChatApplication got working.


svn path=/trunk/mcs/; revision=140700
2009-08-26 10:40:05 +00:00
Atsushi Eno d206a94290 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : since the channel factory is per instance,
	  do not reuse factory that is tied to different callback instance.
	  It resolved the issue that mono callback client didn't receive
	  messages from the client itself.


svn path=/trunk/mcs/; revision=140698
2009-08-26 09:51:10 +00:00
Atsushi Eno 48420dfd94 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerNode.cs : use ulong as same as Welcome message value.

	* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
	  of the receiver, not the requestor. It resolved the issue that
	  .NET client didn't send further messages to mono server.


svn path=/trunk/mcs/; revision=140693
2009-08-26 07:16:25 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Atsushi Eno 6a08482396 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
	  Process PeerTo header to upgrade Message To header. Now mono
	  service accepts mono client (somehow not true for .NET client).


svn path=/trunk/mcs/; revision=140489
2009-08-24 10:13:34 +00:00
Atsushi Eno d2babd367d 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
	  NamedPipeRequestChannel.cs : no need to add ReplyTo headers.


svn path=/trunk/mcs/; revision=140488
2009-08-24 09:54:17 +00:00
Atsushi Eno 3f9792e4f6 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.


svn path=/trunk/mcs/; revision=140487
2009-08-24 09:53:28 +00:00
Atsushi Eno dfdea80b4f 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : check channel state before processing
	  Send and Receive.


svn path=/trunk/mcs/; revision=140474
2009-08-24 08:44:15 +00:00
Atsushi Eno 0acf7fe9ab 2009-08-20 Atsushi Enomoto <[email protected]>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
	  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
	  ongoing works, not working at all yet.

	* System.ServiceModel.dll.sources: add more named pipe files.


svn path=/trunk/mcs/; revision=140341
2009-08-20 14:09:09 +00:00
Atsushi Eno 35c7b8b925 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs :
	  cosmetic cleanup and corrections.


svn path=/trunk/mcs/; revision=140340
2009-08-20 14:07:11 +00:00
Atsushi Eno dde8b27ca0 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : use expected Via uri.
	  Remove extra NIE stuff that are implemented in base.


svn path=/trunk/mcs/; revision=140339
2009-08-20 14:05:29 +00:00
Atsushi Eno ea9ecf0143 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=140332
2009-08-20 12:41:20 +00:00
Atsushi Eno f3b27c84c8 2009-08-20 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
	  replies on peer connector clients (not working as duplex client
	  callback is not working yet).


svn path=/trunk/mcs/; revision=140329
2009-08-20 11:32:57 +00:00
Atsushi Eno 653f2127b4 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : in callback client channels,
	  OperationContext.IncomingMessageHeaders is null.


svn path=/trunk/mcs/; revision=140320
2009-08-20 09:58:31 +00:00
Atsushi Eno a190897311 2009-08-20 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : duplicate check was sloppy.

	* MessageHeadersTest.cs : added a couple od duplicate tests. Fixed
	  non-working test output.


svn path=/trunk/mcs/; revision=140315
2009-08-20 08:05:00 +00:00
Atsushi Eno b2e1fea729 2009-08-18 Atsushi Enomoto <[email protected]>
* Message.cs, MessageImpl.cs, BodyWriter.cs :
	  Implement BodyWriter.OnCreateBufferedCopy() and use it.


svn path=/trunk/mcs/; revision=140124
2009-08-18 03:47:21 +00:00
Atsushi Eno f661396df6 2009-08-18 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs : initialize field.


svn path=/trunk/mcs/; revision=140123
2009-08-18 03:41:12 +00:00
Atsushi Eno f6f884bf79 2009-08-17 Atsushi Enomoto <[email protected]>
* ReplyChannelBase.cs, DuplexChannelBase.cs, RequestChannelBase.cs:
	  implement GetProperty<T>() and return its channel manager.


svn path=/trunk/mcs/; revision=140054
2009-08-17 12:38:10 +00:00
Atsushi Eno bdc678d382 2009-08-17 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation. Fix wrong peer
	  destination address in Connect() request. To repeat sending
	  request, use buffered copy. Set some peer-channel specific
	  header items. (todo: and consume them.)


svn path=/trunk/mcs/; revision=140047
2009-08-17 10:06:36 +00:00
Atsushi Eno 9f127bdcf5 2009-08-17 Atsushi Enomoto <[email protected]>
* Message.cs : state is set only after WriteBodyContents().

	* MessageTest.cs : added test for State.


svn path=/trunk/mcs/; revision=140045
2009-08-17 09:41:16 +00:00
Atsushi Eno e7fb9bf4ec 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : eliminate wrong use of
	  ReadElementContentAsString() (it is not always simple string).


svn path=/trunk/mcs/; revision=140043
2009-08-17 09:05:21 +00:00
Atsushi Eno 3068fbdf08 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : when the value is null, do not try to
	  deserialize EndpointAddress.


svn path=/trunk/mcs/; revision=140042
2009-08-17 08:36:05 +00:00
Atsushi Eno a7a1dedafc 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeader.cs : add Value property. (Forgot dependent change.)


svn path=/trunk/mcs/; revision=140041
2009-08-17 08:03:42 +00:00
Atsushi Eno 7d71be09c4 2009-08-17 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : GetHeader<T>() could mostly skip extra
	   serialization and deserialization of values.


svn path=/trunk/mcs/; revision=140039
2009-08-17 08:01:22 +00:00
Atsushi Eno 79a9700b7a 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Welcome and Refuse at client side.
	  Now simply use connector contract.

	* IPeerConnectorContract.cs : remove receiver contract.


svn path=/trunk/mcs/; revision=139958
2009-08-14 18:26:50 +00:00
Atsushi Eno 5457a39916 2009-08-14 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : handle Disconnect(). Fix URLs a bit.


svn path=/trunk/mcs/; revision=139914
2009-08-14 12:42:49 +00:00
Atsushi Eno 255030c77a 2009-08-14 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs : do not try to compare dead connection's
	  IPEndPoint (it raises an error).


svn path=/trunk/mcs/; revision=139912
2009-08-14 12:37:01 +00:00
Atsushi Eno ee14a754ea 2009-08-14 Atsushi Enomoto <[email protected]>
* MessageHeaders.cs : allow null header value on each specific setter.


svn path=/trunk/mcs/; revision=139910
2009-08-14 12:34:15 +00:00
Atsushi Eno 4db580beaf 2009-08-14 Atsushi Enomoto <[email protected]>
* DuplexChannelBase.cs, TcpDuplexSessionChannel.cs :
	  get local and remote address of connected counterpart to get
	  callback channel connected.
	* PeerDuplexChannel.cs : remove FIXME wrt above.


svn path=/trunk/mcs/; revision=139903
2009-08-14 10:10:48 +00:00
Atsushi Eno 36c002b7b7 2009-08-07 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add fixme comment and remove extra FIXME.


svn path=/trunk/mcs/; revision=139553
2009-08-07 08:26:53 +00:00