File

projects/wms-framework/src/lib/wcfserviceinvocationsupport/SoapMetadata.ts

Description

Defines the info associated to the Soap entities

Index

Properties

Properties

name
name: string
Type : string

Name of the soap entity

scheme
scheme: string
Type : string

Xsd scheme associated to this soap entity

export interface SoapMetadata {
  /**
   * Name of the soap entity
   *
   * @type {string}
   * @memberof SoapMetadata
   */
  name: string;

  /**
   * Xsd scheme associated to this soap entity
   *
   * @type {string}
   * @memberof SoapMetadata
   */
  scheme: string;
}

/**
 * Registrates the SoapEntity class decorator.
 * @param soapMetadata the {@link SoapMetadata} object containing this class soap entity information
 */
export function SoapEntity(soapMetadata: SoapMetadata): any {
  return function (target: any): any {
    return class extends target {
      getScheme() {
        return soapMetadata.scheme;
      }

      getName() {
        return soapMetadata.name;
      }
    };
  };
}

result-matching ""

    No results matching ""