Commit Graph
6 Commits
Author SHA1 Message Date
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
Atsushi Eno 75815614e7 ongoing XmlSerializerMessageContractImporter work.
It is part of bugfix #670945.
2011-05-09 22:58:18 +09: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
Jb Evain bdd0809c70 move to from olive to mcs
svn path=/trunk/mcs/; revision=111187
2008-08-20 21:24:37 +00:00