A test failed on Jenkins today with "address already in use".
Opportunistically replaced a few more hardcoded test ports to avoid failures in the future.
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.
The WsdlImporter can now import Bindings and Endpoints
from the WSDL, currently supporting BasicHttpBinding,
BasicHttpsBinding and NetTcpBinding.
There is also - limited and still experimental - support
for WS-Policy 1.5. I only did the very basic pieces so
far, for instance things like TransportWithMessageCredentials
are not supported yet.
The policy importer will emit lots of warnings via
`MetadataImporter.Errors` (as warnings, not errors) whenever
it encounters something that it doesn't understand and
is also forgiving towards unknown and/or mal-formed
policy assertions.
This behavior is different from the MS runtime, which is
very strict, but there are simply too many missing pieces
to be more pedentic here. Check whether Errors.Count == 0
to see whether all policy assertions have been correctly
imported.
There are also a few metadata samples, which are part of the
new nunit tests. These are currently working:
BasicHttp.xml, BasicHttp_Mtom.xml, BasicHttp_NtlmAuth.xml,
BasicHttp_TransportSecurity.xml, BasicHttps.xml,
BasicHttps_NtlmAuth.xml, NetTcp.xml, NetTcp_TransferMode.xml,
NetTcp_TransportSecurity.xml
There are a few more in the Tests/MetadataTests/Resources/
directory which demonstrate missing pieces.
There is no bug report, the problem has been reported here:
http://stackoverflow.com/questions/12551090/monotouch-wcf-service-reference-cs-errors/12669880
DataContractSerializerMessageContractImporter.IsOperationImported()
did not check the method's return value, so it failed to recognize
methods such as
[OperationContract]
DateTime GetDate ();
as already being imported. This caused the method to be imported with
both the DataContractMessageContractImporterInternal and the
XmlSerializerMessageContractImporterInternal, but the latter does not
resolve type references, see the FIXME in that class.
I also added a new test case for this.
* MetadataExchangeBindingsTest.cs : make sure that the target port
of the Uri is available (as some other tests do).
svn path=/trunk/mcs/; revision=159487
* 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
* ContractDescriptionGenerator.cs : fill FaultDescription action,
name and namespace as expected.
* FaultDescriptionTest.cs : add new test.
* FaultContractAttributeTest.cs : new test.
* System.ServiceModel_test.dll.sources : add some new fault tests.
svn path=/trunk/mcs/; revision=154698
* MetadataExchangeBindings.cs : use WSHttpBinding (it works if other
parts gets fixed).
* MetadataExchangeBindingsTest.cs : new test.
* System.ServiceModel_test.dll.sources :
add MetadataExchangeBindingsTest.cs.
svn path=/trunk/mcs/; revision=153762
* DataContractSerializerMessageContractImporter.cs,
ServiceContractGenerator.cs: ArrayOfXxx does not exist in the type
definition code. Use Xxx[] directly instead.
* WsdlImporterTest.cs : added test for processing ArrayOfXxx types.
* service1.wsdl, schema1.xsd, schema2.xsd : new test files (small
repro for bug #577139).
svn path=/trunk/mcs/; revision=151087
* ServiceContractGenerator.cs : when Options.AsynchronousMethods is
specified, generate async methods *as well as* sync methods (i.e.
not exclusively).
In moonlight proxy generator (svcutil -moonlight) mode, sync
methods will be removed at svcutil itself.
This fix brings sync proxy methods back to monotouch.
* ServiceContractGeneratorTest.cs : add test for async method
generation option to generate sync methods as well.
svn path=/trunk/mcs/; revision=150363
* ServiceHostBase.cs : fix complicated IMetadataExchange handling to
pass nunit tests (treat mex binding as special case).
* ServiceMetadataBehaviorTest.cs : check name constant (MSDN is
wrong here).
* ServiceHostTest.cs : add a few more comments.
svn path=/trunk/mcs/; revision=150066
* ServiceAuthorizationBehavior.cs : implement (it does almost
nothing though).
* ServiceAuthorizationBehaviorTest.cs : it's updated and enabled.
Added some more tests.
svn path=/trunk/mcs/; revision=149785