projects/wms-framework/src/lib/wcfserviceinvocationsupport/SoapMetadata.ts
Defines the info associated to the Soap entities
Properties |
name |
name:
|
Type : string
|
Name of the soap entity |
scheme |
scheme:
|
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;
}
};
};
}