Class MetadataHandler
HTTP handler that provides access to stored service metadata through HTTP GET request. The requests must be formated like: {handler name and extension}/{metadata section key}?format={wsdl|swsdl|metadata|swagger-json|swagger-yaml}. The optional "format" query parameter defines the output metadata format: "wsdl" - multi-part WSDL document (default value for SOAP services), "swsdl" - all-including single WSDL document, "metadata" - metadata set as defined in WS-MetadataExchange specification, "swagger-json" - Swagger document in JSON format (default value for REST services), "swagger-yaml" - Swagger document in YAML format.
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Description
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class MetadataHandler : IHttpHandler
Remarks
Note: Key of the first metadata section is equal to the key of service version that section represents.
Examples
Using metadata section key: "http://localhost/metadata.axd/A7CEFB0C-8848-46D3-BB0A-C4EC0C91EC13&format=swsdl"
Constructors
MetadataHandler()
Declaration
public MetadataHandler()
Properties
IsReusable
Gets True indicating that this instance can be reused (singleton).
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ProcessRequest(HttpContext)
Process HTTP request and responses with metadata section content corresponding to provided section key.
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContext | context | An object encapsulating all HTTP-specific information about the request. |
ProcessRequest(HttpContextBase)
Process HTTP request and responses with metadata section content corresponding to provided section key.
Declaration
public static void ProcessRequest(HttpContextBase context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpContextBase | context | An object encapsulating all HTTP-specific information about the request. |