NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
* We now export simple <wsp:Policy>, currently supporting only
those elements that WsdlImporter can import.
WsdlImporter:
https://github.com/mono/mono/commit/cdc98dba1b83341c25a1daab4ae7c217d4961ad1
* Implement `MetadataExporter.Errors' and use it for error
reporting.
* Fixed WsdlExporter's caching to correclty deal with duplicate
ExportContract() and ExportEndpoint() calls.
* Emit <soap12:operation> depending on the binding's MessageVersion.
(FIXME: I didn't implement soap faults yet).
* MetadataTests: Check whether the policy elements are correct.
* MetadataTests: Add test containing simple [OperationContract] method
for http and net.tcp; checks the <soap:operation> / <soap12:operation>
elements.
* New test to check WsdlExporter's behavior regarding duplicate
contracts and endpoints.
* ConnectionOrientedTransportBindingElement.cs, CustomBindingTests.cs,
HttpTransportBindingElementTest.cs: Added test for custom message
encodings.
* System.ServiceModel_test.dll.sources: Add new files to the tests
* Test/NUnitMoonHelper.cs: Helper to re-use Moonlight unit tests on NUnit
* Test/System.ServiceModel.Channels/CommunicationObjectSyncTest.cs: New.
* CustomPolicyConversionContext.cs: New file, containing a dummy
child of PolicyConversionContext.
* MsmqBindingElementBaseTest.cs: New test file.
* ConnectionOrientedTransportBindingElementTest.cs: New test file.
* HttpTransportBindingElementTest.cs: Add IPolicyExportExtension
tests.
SecurityTokenParameters.InitializeSecurityTokenRequirement() needs to become
protected internal, so changed all overrides as well.
Some implementation in WindowsStreamSecurityBindingElement is needed only for
NetTcpBinding implementation.
Had to disable a test in SymmetricSecurityBindingElement that depended on
OneWay support (which is not yet done).
* ChannelFactoryBase.cs : null via uri parameter is not allowed.
* ClientRuntimeChannel.cs : give non-null Via uri.
* HttpTransportBindingElementTest.cs : add test for
ChannelFactoryBase`1.CreateChannel() with null via uri.
svn path=/trunk/mcs/; revision=159934
* ServiceHostTest.cs : fix AddServiceEndpoint tests to make sense.
They are mostly not working. Enable working one.
* TcpTransportBindingElementTest.cs : rename misleading test.
svn path=/trunk/mcs/; revision=159122
* ServiceHostBase.cs : retrieve MessageVersion and raise an error
if there is none. (Check this earlier than building a listener.)
* ChannelDispatcher.cs : MessageVersion check is moved to
ServiceHostBase.
* ServiceMetadataExtension.cs : overwrite MessageVersion to use None.
(The only special case I found for ChannelDispatcher.MessageVersion.)
* CustomBindingTest.cs : add tests for MessageVersion check on Open().
* MetadataExchangeBindingsTest.cs : make sure that special casing of
MessageVersion does not happen at this layer.
svn path=/trunk/mcs/; revision=159061
* TcpReplyChannel.cs : accept TCP channel on ReceiveRequest(). This
fixes standalone tcp-transport/sample[svc|cli]5.exe test in olive
(but not TcpTransportBindingElementTest.SimpleDuplexStreamed.)
* TcpTransportBindingElementTest.cs : add connection tests (imported
from standalone olive tests), one is disabled for breakage.
svn path=/trunk/mcs/; revision=158924
* BindingContext.cs : actually clone is needed everywhere else too.
* CustomBinding.cs : remove extra field.
* BindingContextTest.cs : add a couple of tests with related to
RemainingBindingElements use. Some tests by Andreia Gaita.
svn path=/trunk/mcs/; revision=157350
* BindingContext.cs : require a TransportBindingElement when
building a channel listener.
* CustomBindingTest.cs : enable BuildChannelListener test for no-
transport case. Test CanBuildChannelListener too.
svn path=/trunk/mcs/; revision=155857
* HttpTransportBindingElement.cs, HttpsTransportBindingElement.cs:
implement HttpsTransportBindingElement.GetProperty<T>(). Extend the
properties type from HTTP.
* HttpsTransportBindingElementTest.cs :
added test for GetProperty<T>().
svn path=/trunk/mcs/; revision=154621
* 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
* 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
* 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
* HttpChannelFactory.cs : reject URI mismatch cases when required.
* HttpTransportBindingElementTest.cs : test for URI mismatch case.
svn path=/trunk/mcs/; revision=140960
* CommunicationObject.cs : OnClosed() requires call to base method.
Close() could rather abort the channel, and Abort() does not
always invke OnAbort().
* ChannelBase.cs : add call to base as above.
* ChannelDispatcher.cs :
Add call to base (see CommunicationObject change).
* InstanceContext.cs :
Add call to base (see CommunicationObject change).
* CommunicationObjectTest.cs : added a couple of close/abort tests
for state transition and base call check.
svn path=/trunk/mcs/; revision=135649
* 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
* 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