Ejemplo n.º 1
0
        /// <summary>
        /// Configure response elements of X-Road message protocol version 2.0 messages.
        /// </summary>
        public override void ExportResponseValueDefinition(ResponseValueDefinition responseValueDefinition)
        {
            base.ExportResponseValueDefinition(responseValueDefinition);

            responseValueDefinition.RequestElementName  = "paring";
            responseValueDefinition.ResponseElementName = "keha";
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes default response element definition and applies customizations (if any).
        /// </summary>
        public ResponseValueDefinition GetResponseValueDefinition(OperationDefinition operationDefinition, XRoadFaultPresentation?xRoadFaultPresentation = null)
        {
            var responseValueDefinition = new ResponseValueDefinition(operationDefinition)
            {
                XRoadFaultPresentation = xRoadFaultPresentation ?? XRoadFaultPresentation.Choice
            };

            operationDefinition.ExtensionSchemaExporter?.ExportResponseValueDefinition(responseValueDefinition);
            schemaExporter.ExportResponseValueDefinition(responseValueDefinition);

            return(responseValueDefinition);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Configure response elements of X-Road message protocol version 2.0 messages.
        /// </summary>
        public override void ExportResponseValueDefinition(ResponseValueDefinition responseValueDefinition)
        {
            base.ExportResponseValueDefinition(responseValueDefinition);

            responseValueDefinition.ContainsNonTechnicalFault = true;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Configuration hook for overriding default response element settings.
 /// </summary>
 public virtual void ExportResponseValueDefinition(ResponseValueDefinition responseValueDefinition)
 {
 }