Imports the specified ServiceDescriptionImporter.ServiceDescriptions values, that generates code as specified by the ServiceDescriptionImporter.Style property.
- codeNamespace
- The namespace into which the ServiceDescriptionImporter.ServiceDescriptions values are imported.
- codeCompileUnit
- The System.CodeDom.CodeCompileUnit instance in which the code that represents the ServiceDescriptionImporter.ServiceDescriptions value is generated.
A System.Web.Services.Description.ServiceDescriptionImportWarnings value that describes any error that occurred; or 0 if no error occurred.
After you have specified the ServiceDescriptionImporter.ServiceDescriptions values to import and the ServiceDescriptionImporter.Style property of the code to generate, call the System.Web.Services.Description.Import method to initiate code generation.