Commit Graph
46 Commits
Author SHA1 Message Date
Alexander Köplinger 98cf04084a [bcl] Remove NET_4_0 defines from class libs
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.
2015-07-26 15:01:49 +02:00
Jo Shields 775ce53a74 Use random port numbers for ServiceModel tests.
This prevents race conditions when running multiple test suites at once on the same computer, as happens on our ARM builders.
2015-06-15 12:39:07 +01:00
Alexander Köplinger f396d37c54 [System.ServiceModel] Changed test port from 8080 to 30158
Port 8080 is widely used and resulted in address conflicts on monojenkins, so we use a different port instead.

Commit licensed under MIT/X11.
2014-06-17 23:00:42 +02:00
Martin Baulig d64187a447 [WCF]: Disable WsdlExporterTest.ExportMessageContract(). 2013-03-22 04:08:10 +01:00
Martin Baulig cdc98dba1b [WCF]: Implement missing WsdlImporter pieces.
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.
2012-11-27 02:30:54 +01:00
Martin Baulig aa2e9eca40 [WCF]: Fix WSDL import of methods with complex return types.
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.
2012-10-01 15:02:31 +02:00
Martin Baulig 7c68dee830 [#6187][WCF]: Fix contract interface inheritance. 2012-09-18 05:20:30 +02:00
Andrey Grishin 3bfba37d2a Fix binding for MexHttps 2012-07-18 13:55:09 +04:00
Atsushi Eno 106fdeb492 ReturnValue in MessageDescription was missing when there was MessageContract. 2011-08-24 12:09:16 -07:00
Atsushi Eno 5fc5f02c46 Merge pull request #145 from ngraziano/99b87f07af0beed3a887
Fix Service Model Xml Serialization and XMLAttributes
2011-08-03 05:54:54 +09:00
Atsushi Eno 951a6e6276 part of fix bug #41. MessageParameterAttribute is considered for return value. 2011-08-02 07:41:49 -07:00
Atsushi Eno 6f4a57dd4f Fix common issue in MetadataSet - call MoveToContent() while iterating nodes. 2011-05-10 19:58:17 +09:00
Atsushi Eno be4b6644f3 Add new MetadataSetTest and fix couple of minor issues. 2011-05-10 19:33:52 +09:00
Atsushi Eno 23a65d9a3c Revive this test by implementing mock web server. 2011-05-10 19:33:15 +09:00
Atsushi Eno 75815614e7 ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 22:58:18 +09:00
Atsushi Eno 1b72f7f825 DataContractSerializerOperationBehavior is done too. Fix moonlight_raw build. 2011-04-07 22:01:26 +09:00
Peter Gerbrandt c48cff92ce Fix contract description for contracts with deep inheritance hierarchy. 2011-04-01 14:17:10 +09:00
Peter Gerbrandt bb22b06f22 Support for the same interface as service contract and as callback contract. 2011-03-07 12:51:19 +09:00
Atsushi Eno 3aaf87fe84 Message headers are now serialized and deserialized for MessageHeaderDescription. 2011-02-15 23:14:27 +09:00
Atsushi Eno bac5d7a27f MessageHeaderDescription were not filled in message contract. Reject wrong contracts. 2011-02-15 22:11:22 +09:00
Atsushi Eno a2f1b9fb76 Now operations are collected per corresponding ContractDescription.
This fixes naming of MessageDescription Action URI from its type.
2011-02-03 01:07:44 +09:00
Atsushi Eno d7ad74f11f Implement GetInheritedContracts(), towards bugfix #668089. 2011-02-02 16:11:58 +09:00
Atsushi Eno 0e7a3971a3 Do not reject contract from the same method, could happen by a type with multiple service contracts within the typie hierarchy.
For details, see: http://lists.ximian.com/pipermail/mono-devel-list/2010-September/035940.html
2010-10-08 15:55:12 +09:00
Atsushi Eno 5628b49a01 implemented large parts of WCF standard endpoints and configuration support. 2010-09-13 22:36:37 +09:00
Atsushi Eno ecd1386cf1 Add another roundtrip case. 2010-09-02 00:01:00 +09:00
Atsushi Eno 13f5810710 2010-06-24 Atsushi Enomoto <[email protected]>
* MetadataExchangeBindingsTest.cs : make sure that the target port
	  of the Uri is available (as some other tests do).


svn path=/trunk/mcs/; revision=159487
2010-06-24 11:24:45 +00:00
Atsushi Eno 82f4754a64 propset eol-style:native.
svn path=/trunk/mcs/; revision=159322
2010-06-22 09:19:27 +00:00
Atsushi Eno 1f4684cd40 2010-06-17 Atsushi Enomoto <[email protected]>
* 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
2010-06-17 10:48:55 +00:00
Atsushi Eno 47ab4df163 2010-04-05 Atsushi Enomoto <[email protected]>
* WsdlExporterTest.cs : fixed and enabled some working tests.


svn path=/trunk/mcs/; revision=154786
2010-04-05 08:56:43 +00:00
Atsushi Eno d51ce00eba 2010-04-02 Atsushi Enomoto <[email protected]>
* 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
2010-04-02 09:39:45 +00:00
Atsushi Eno fbfbbbfa88 2010-03-29 Atsushi Enomoto <[email protected]>
* MetadataResolverTest.cs : enable working tests.


svn path=/trunk/mcs/; revision=154372
2010-03-29 13:06:47 +00:00
Atsushi Eno 22b6b52b03 2010-03-17 Atsushi Enomoto <[email protected]>
* 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
2010-03-17 13:26:23 +00:00
Atsushi Eno 331bafd0b3 sigh, just disable it. make dist is somehow broken.
svn path=/trunk/mcs/; revision=151190
2010-02-10 06:05:16 +00:00
Atsushi Eno dc6e14ed54 2010-02-09 Atsushi Enomoto <[email protected]>
* 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
2010-02-09 09:36:44 +00:00
Atsushi Eno f4fcfed91e 2010-01-28 Atsushi Enomoto <[email protected]>
* 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
2010-01-28 11:41:47 +00:00
Atsushi Eno 440e862eaa 2010-01-22 Atsushi Enomoto <[email protected]>
* 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
2010-01-22 15:05:11 +00:00
Atsushi Eno c744d2d438 2010-01-19 Atsushi Enomoto <[email protected]>
* 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
2010-01-19 05:32:14 +00:00
Atsushi Eno b0f8f9e630 2010-01-06 Atsushi Enomoto <[email protected]>
* ServiceDebugBehaviorTest.cs : make sure to close hosts.


svn path=/trunk/mcs/; revision=149099
2010-01-06 03:21:18 +00:00
Atsushi Eno fcb24db9e4 2009-10-01 Atsushi Enomoto <[email protected]>
* ServiceContractGenerator.cs : fixed sync client generator that
	  incorrectly exited in the middle of proxy generator.

	* ServiceContractGeneratorTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add ServiceContractGeneratorTest.cs.


svn path=/trunk/mcs/; revision=143160
2009-10-01 14:52:08 +00:00
Atsushi Eno 6854f26bba 2009-09-15 Atsushi Enomoto <[email protected]>
* ServiceDebugBehaviorTest.cs : it still seems there are some port-
	  blocking tests that blocks here, so change the port and make sure
	  it is available. 8080 is anyways likely to interfere with others.


svn path=/trunk/mcs/; revision=141926
2009-09-15 06:44:23 +00:00
Atsushi Eno da98a889f4 2009-07-31 Atsushi Enomoto <[email protected]>
* ServiceEndpoint.cs : ListenUri defaults to Address.Uri.

	* ServiceEndpointTest.cs : new.

	* System.ServiceModel_test.dll.sources: add ServiceEndpointTest.cs.


svn path=/trunk/mcs/; revision=139146
2009-07-31 05:09:24 +00:00
Atsushi Eno 358bd6b145 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : actually it had to fill all of
	  the interface methods (and implementation methods).

	* ContractDescriptionTest.cs : make sure the contract actually
	  contains operations from the base types.


svn path=/trunk/mcs/; revision=137307
2009-07-02 16:07:53 +00:00
Atsushi Eno 2b471a3555 2009-07-02 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : do not reject derived service
	  contract from another service contract type.

	* ContractDescriptionTest.cs : added test for derived contract type.


svn path=/trunk/mcs/; revision=137288
2009-07-02 12:59:32 +00:00
Atsushi Eno 29364a9eb9 Prepare ServiceThorottle implementation.
svn path=/trunk/mcs/; revision=135727
2009-06-09 07:46:31 +00:00
Atsushi Eno a93062e7b6 Ignore all failing-under-dotnet tests.
svn path=/trunk/mcs/; revision=127845
2009-02-24 07:33:41 +00:00
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00