Commit Graph
59 Commits
Author SHA1 Message Date
Atsushi Eno fb62ee47c1 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
	  I cannot precisely identify when EndRecord should be consumed,
	  so allow it at either at the end of ReadSizedMessage() or on
	  consuming preamble (it's likely handling EndRecord of previous
	  message though).

	  Now duplex IPeerResolverContract communication works between
	  either of .NET/Mono client and .NET/Mono server.


svn path=/trunk/mcs/; revision=135046
2009-05-29 07:27:16 +00:00
Atsushi Eno 5d79d1dc91 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : looks like I have added some bogus
	  code. Handle preamble ack on ReadSizedMessage() only at server.
	  Consume EndRecord from server, at client side. Though it is likely
	  changed as it's blocking when mono is at server side.


svn path=/trunk/mcs/; revision=135044
2009-05-29 06:33:50 +00:00
Atsushi Eno 45bf2c7c45 2009-05-29 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
	  different protocol than existing code with related to preamble ack.
	  So changed it to work fine with .NET client (finally).


svn path=/trunk/mcs/; revision=135043
2009-05-29 04:05:16 +00:00
Atsushi Eno d403559714 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : do not output Action twice.


svn path=/trunk/mcs/; revision=134955
2009-05-28 14:30:23 +00:00
Atsushi Eno c4295157ad 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageBufferImpl.cs : it did not copy headers.
	* Message.cs : remove 2_1 conditional implementation for buffered
	  copy and hence remove bogus code.


svn path=/trunk/mcs/; revision=134929
2009-05-28 06:56:48 +00:00
Atsushi Eno e788908b53 2009-05-28 Atsushi Enomoto <[email protected]>
* MessageProperties.cs : copy argument is wrong.


svn path=/trunk/mcs/; revision=134928
2009-05-28 05:49:25 +00:00
Atsushi Eno dab61630c2 2009-05-27 Atsushi Enomoto <[email protected]>
* ResolveInfo.cs : argument check.

	* PeerCustomResolverBindingElement.cs : some argument check.


svn path=/trunk/mcs/; revision=134821
2009-05-27 08:13:02 +00:00
Atsushi Eno 1772bc40c6 2009-05-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : the serializer somehow leaves binary
	  xml open, so close the writer as well as open elements.
	* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
	  Do not output EndRecord and SizedMessage at a time.


svn path=/trunk/mcs/; revision=134820
2009-05-27 07:38:08 +00:00
Atsushi Eno 7660037690 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : there was a miscalculation on the
	  length of the SizedMessage in the output.


svn path=/trunk/mcs/; revision=134756
2009-05-26 12:33:36 +00:00
Atsushi Eno 7f49907597 2009-05-26 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : use sane default timeout.
	* PeerCustomResolverBindingElement.cs : check timeout arg sanity.
	* TcpDuplexSessionChannel.cs : ditto.


svn path=/trunk/mcs/; revision=134749
2009-05-26 10:25:38 +00:00
Atsushi Eno d94140ff71 2009-05-26 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : It seems that buffered stream channel
	  only accepts buffered messages, so do as such for write buffers.
	  Add RelatesTo header.


svn path=/trunk/mcs/; revision=134745
2009-05-26 09:54:44 +00:00
Atsushi Eno ab2cc8b39b 2009-05-26 Atsushi Enomoto <[email protected]>
* DuplexSessionChannelBase.cs, DuplexChannelBase.cs:
	  rename from former to latter.

	* System.ServiceModel.dll.sources: cosmetic file renaming.


svn path=/trunk/mcs/; revision=134743
2009-05-26 07:55:32 +00:00
Atsushi Eno 912e42fd14 2009-05-25 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : reader does not always return full
	  buffer (depending on the stream).


svn path=/trunk/mcs/; revision=134687
2009-05-25 13:14:30 +00:00
Atsushi Eno bd372ca720 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerNode.cs : if Resolve() returns no address, create a new peer
	  address here, and shut it down when it is closed.

	* PeerDuplexChannel.cs, PeerOutputChannel.cs : use new PeerNode.ctor.


svn path=/trunk/mcs/; revision=134686
2009-05-25 13:12:02 +00:00
Atsushi Eno 53ca32f688 2009-05-25 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : (Resolve) returned addresses
	  could be null.


svn path=/trunk/mcs/; revision=134685
2009-05-25 13:01:17 +00:00
Atsushi Eno ae046d1957 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : there was annoying non-2.1 stuff.


svn path=/trunk/mcs/; revision=134590
2009-05-22 09:36:29 +00:00
Atsushi Eno e801d197f2 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpChannelFactory.cs : get reader quotas.


svn path=/trunk/mcs/; revision=134589
2009-05-22 05:21:33 +00:00
Atsushi Eno f68640b9a3 2009-05-22 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : fix wrong session channel detection.


svn path=/trunk/mcs/; revision=134588
2009-05-22 05:19:10 +00:00
Atsushi Eno 7017be6aa3 2009-05-22 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoderFactory.cs, BinaryMessageEncoder.cs
	  This encoder factory implements CreateSessionEncoder() and binary
	  encoder does support session transmit, in different media type.
	* ChannelManagerBase.cs : added utility method to create appropriate
	  encoder.
	* HttpChannelFactory.cs, HttpChannelListener.cs,
	  MsmqChannelFactory.cs, MsmqChannelListener.cs,
	  PeerChannelFactory.cs, PeerChannelListener.cs,
	  TcpChannelFactory.cs, TcpChannelListener.cs : use above.

	* MessageEncoderTest.cs : test CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134584
2009-05-22 02:27:04 +00:00
Atsushi Eno 86e413610e 2009-05-22 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add ReplyTo header.


svn path=/trunk/mcs/; revision=134583
2009-05-22 02:22:56 +00:00
Atsushi Eno bd4ddeac5b 2009-05-21 Atsushi Enomoto <[email protected]>
* DuplexSessionBase.cs : new file, for session implementation.
	* TcpDuplexSessionChannel.cs, PeerDuplexChannel.cs,
	  DuplexSessionChannelBase.cs : changed sync/async implementation
	  pattern. Now async methods call sync methods using delegates.


svn path=/trunk/mcs/; revision=134529
2009-05-21 12:04:59 +00:00
Atsushi Eno a43bf9fe27 2009-05-21 Atsushi Enomoto <[email protected]>
* InputChannelBase.cs, TransportBindingElement.cs, RequestContext.cs:
	  a few minor API fixes.


svn path=/trunk/mcs/; revision=134511
2009-05-21 07:57:13 +00:00
Atsushi Eno bbde1c9701 2009-05-21 Atsushi Enomoto <[email protected]>
* MessageEncoderFactory.cs : implement CreateSessionEncoder().


svn path=/trunk/mcs/; revision=134510
2009-05-21 07:29:46 +00:00
Atsushi Eno a4c362bc65 2009-05-19 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : add To header.


svn path=/trunk/mcs/; revision=134394
2009-05-19 12:53:09 +00:00
Atsushi Eno 31009113d4 2009-05-19 Atsushi Enomoto <[email protected]>
* MessageFault.cs : fix several SOAP12 fault deserialization in xml
	  parsing.

	* MessageFaultTest.cs : added more SOAP 12 fault parser tests.
	* soap-fault.xml, soap-fault-incomplete4.xml : new test files.


svn path=/trunk/mcs/; revision=134389
2009-05-19 12:01:20 +00:00
Atsushi Eno f481ba25de 2009-05-18 Atsushi Enomoto <[email protected]>
* FaultConverter.cs : avoid NRE for null IncomingMessageHeaders.


svn path=/trunk/mcs/; revision=134315
2009-05-18 11:48:20 +00:00
Atsushi Eno a22727c329 2009-05-15 Atsushi Enomoto <[email protected]>
* MessageFault.cs : Reason is mandatory. raise XmlException, and
	  CommunicationException in each CreateFault().

	* soap-fault-incomplete.xml : new test file.
	* MessageFaultTest.cs : new test.

	* System.ServiceModel.dll_test.sources: added MessageFaultTest.cs.


svn path=/trunk/mcs/; revision=134197
2009-05-15 11:27:39 +00:00
Atsushi Eno 6525dc5da6 2009-05-15 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : on listener side, get TcpClient at
	  Open(). Some (but not all yet) continuous communication works now.
	  Use ProtocolException. Remove dummy binary session string.


svn path=/trunk/mcs/; revision=134185
2009-05-15 04:54:43 +00:00
Atsushi Eno aba63b35bb 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Moved
	  sending/receiving SizedMessageRecord parts to manager class.
	  Handle writer session, though it is likely broken at dictionary
	  writer part (no string is written so far).
	* BinaryMessageEncoder.cs : add writer session and rename reader
	  session.


svn path=/trunk/mcs/; revision=134117
2009-05-14 10:46:38 +00:00
Atsushi Eno b479bfcbb6 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : more [MC-NMF] implementation. Via uri
	  is mandatory in initiator preamble packet. Handle Fault reply in
	  initiator preamble.


svn path=/trunk/mcs/; revision=134111
2009-05-14 09:38:45 +00:00
Atsushi Eno 432c16b14f 2009-05-14 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : ongoing refactoring to collect [MC-NMF]
	  based communication under TcpBinaryFrameManager class.


svn path=/trunk/mcs/; revision=134107
2009-05-14 08:52:14 +00:00
Jb Evain 045b9fd735 2009-05-13 Jb Evain <[email protected]>
* MessageHeader.cs: use a SL friendly way of creating an XmlReader
	from a StringReader.


svn path=/trunk/mcs/; revision=134064
2009-05-13 15:43:31 +00:00
Atsushi Eno a18fbb9d9d 2009-05-13 Atsushi Enomoto <[email protected]>
* MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
	  actually eliminate DOM-based implementation too in 2.0.

	* Makefile : remove xlinq dependency.


svn path=/trunk/mcs/; revision=134052
2009-05-13 11:53:36 +00:00
Atsushi Eno 9260e9a39f 2009-04-28 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implement in-band dictionary support
	  in [MC-NMF] and [MC-NBFSE], used in duplex channels. Added some
	  comments for magic numbers based on [MC-NMF].

	* BinaryMessageEncodingBindingElementTest.cs, binary-message.raw:
	  new test files.

	* System.ServiceModel.dll_test.sources: added
	  BinaryMessageEncodingBindingElementTest.cs.


svn path=/trunk/mcs/; revision=132882
2009-04-28 18:55:59 +00:00
Atsushi Eno 044108b4ae 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : implement part of in-band dictionary
	  support for [MC-NBFSE] record in [MC-NMF], in this class.


svn path=/trunk/mcs/; revision=132881
2009-04-28 18:50:16 +00:00
Atsushi Eno f453fbd9ea 2009-04-28 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs : clear extra public members.


svn path=/trunk/mcs/; revision=132880
2009-04-28 18:46:45 +00:00
Atsushi Eno 856235b1c4 2009-04-27 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : implemented some channel methods.


svn path=/trunk/mcs/; revision=132757
2009-04-27 15:56:10 +00:00
Atsushi Eno 2694026ab9 2009-04-27 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use XmlDictionary specified as [MC-NBFS].


svn path=/trunk/mcs/; revision=132756
2009-04-27 15:54:40 +00:00
Atsushi Eno 5cfb26f7d2 2009-04-27 Atsushi Enomoto <[email protected]>
* ChannelManagerBase.cs : implement Open/CloseTimeout correctly.


svn path=/trunk/mcs/; revision=132711
2009-04-27 08:28:29 +00:00
Atsushi Eno a7be9938a5 2009-04-23 Atsushi Enomoto <[email protected]>
* BinaryMessageEncoder.cs : use quotas in binding element.
	  Implement WriteMessage().


svn path=/trunk/mcs/; revision=132501
2009-04-23 18:23:09 +00:00
Atsushi Eno cfb63579dc 2009-04-22 Atsushi Enomoto <[email protected]>
* PeerCustomResolverBindingElement.cs : do initialize field.


svn path=/trunk/mcs/; revision=132443
2009-04-23 10:48:51 +00:00
Atsushi Eno 3d1ecb35bf 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerNode.cs : remove extra field.

	* PeerCustomResolverSettings.cs : added Clone().

	* PeerCustomResolverBindingElement.cs :
	  implement full custom resolver.


svn path=/trunk/mcs/; revision=132255
2009-04-21 12:59:56 +00:00
Atsushi Eno 1218218614 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs, PeerChannelListener.cs,
	  PeerOutputChannel.cs, PeerCustomResolverBindingElement.cs,
	  PeerChannelFactory.cs : ongoing p2p channel implementation.


svn path=/trunk/mcs/; revision=132250
2009-04-21 12:05:07 +00:00
Atsushi Eno d0031fea42 2009-04-21 Atsushi Enomoto <[email protected]>
* PeerResolver.cs, PeerResolverImpl.cs :
	  update API to the latest .NET.

	* PnrpPeerResolverBindingElement.cs : sync with PeerResolver changes.


svn path=/trunk/mcs/; revision=132237
2009-04-21 11:37:19 +00:00
Atsushi Eno 9191ff0633 2009-04-21 Atsushi Enomoto <[email protected]>
* BinaryMessageEncodingBindingElement.cs, ChannelBase.cs,
	  ChannelFactoryBase.cs, WindowsStreamSecurityBindingElement.cs :
	  implement GetProperty<T>(). Return documented objects or null.


svn path=/trunk/mcs/; revision=132235
2009-04-21 11:29:22 +00:00
Atsushi Eno 1f9a2160f1 ongoing PeerTransportBindingElement implementation.
svn path=/trunk/mcs/; revision=132146
2009-04-20 12:16:39 +00:00
Atsushi Eno 05467881a1 2009-04-08 Atsushi Enomoto <[email protected]>
* PeerTransportBindingElement.cs : ListenIPAddress is IPAddress.


svn path=/trunk/mcs/; revision=131279
2009-04-08 03:43:02 +00:00
Atsushi Eno e596ffbe11 2009-04-07 Atsushi Enomoto <[email protected]>
* TcpTransportBindingElement.cs : check build-ability before
	  actually building channels.
	* ConnectionOrientedTransportBindingElement.cs : fixed build-ability
	  conditions according to MSDN.

	* TcpTransportBindingElementTest.cs : more can-build tests.

	* NetTcpBindingTest.cs : new test.

	* System.ServiceModel_test.dll.sources: added NetTcpBindingTest.cs.


svn path=/trunk/mcs/; revision=131222
2009-04-07 12:11:53 +00:00
Atsushi Eno dedaecf9c5 2009-03-05 Atsushi Enomoto <[email protected]>
* MessageHeader.cs, MessageHeaders.cs, MessageImpl.cs :
          handle headers in SL2. Slightly changed 3.0 code too.

        * Makefile : added /r:System.Xml.Linq in 2.1 too.


svn path=/trunk/mcs/; revision=128670
2009-03-05 09:33:52 +00:00
Atsushi Eno dfd1716b11 2009-03-04 Atsushi Enomoto <[email protected]>
* CrossDomainAccessManager.cs : replace reflection-based
	  Uri retrieval with actually working one.

	* HttpRequestChannel.cs : use cross domain access manager.


svn path=/trunk/mcs/; revision=128581
2009-03-04 18:09:16 +00:00