Driver.DiscoveryCompiler.CheckDescriptionImportValidations(System.Web.Services.Description.WebReference, DiscoveryReference)

Here are the examples of the csharp api class Driver.DiscoveryCompiler.CheckDescriptionImportValidations(System.Web.Services.Description.WebReference, DiscoveryReference) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
DiscoveryReference GenerateWebReferences(WebReference reference, CodeCompileUnit compileUnit)
		{
			var result = new DiscoveryReference();
			CheckInteroperabilityConformance(reference, result);

			var webReferences = new WebReferenceCollection {reference};
			var options = new WebReferenceOptions {
				CodeGenerationOptions = CodeGenerationOptions.GenerateProperties
			};

			ServiceDescriptionImporter.GenerateWebReferences(
				webReferences, codeProvider, compileUnit, options);
			CheckDescriptionImportValidations(reference, result);

			if (!result.HasErrors)
			{
				result.CodeDom = compileUnit;
				result.CodeProvider = codeProvider;
				result.Bindings.AddRange(
					GetSoapBindings(discovery.GetServices()));
			}

			return result;
		}