Condition for triggering warning message “XML Security checks can not be performed, once an XML message is found not wellformed.”

ADC throws this warning when XMLFormatAction is set to non-block for the first time

XMLFormatAction

One or more XML Format actions. Available settings function as follows:

Block – Block connections that violate this security check.

Log – Log violations of this security check.

Stats – Generate statistics for this security check.

None – Disable all actions for this security check.

1. set to block for the first time, no warning message

> rm appfw profile appfw_test

Done

> add appfw profile appfw_test -rfcprofile APPFW_RFC_BYPASS -type XML HTML -XMLFormatAction block

Done

2. set to values inlcude block

> rm appfw profile appfw_test

Done

> add appfw profile appfw_test -rfcprofile APPFW_RFC_BYPASS -type XML HTML -XMLFormatAction block log stats

Done

3. set it to non block at the first time, warning message displays

> rm appfw profile appfw_test

Done

> add appfw profile appfw_test -rfcprofile APPFW_RFC_BYPASS -type XML HTML -XMLFormatAction log

Warning: XML Security checks can not be performed, once an XML message is found not wellformed.

Done

> rm appfw profile appfw_test

Done


> add appfw profile appfw_test -rfcprofile APPFW_RFC_BYPASS -type XML HTML -XMLFormatAction stats

Warning: XML Security checks can not be performed, once an XML message is found not wellformed.

Done

4. set to log(non block) at the first time, the warning message display, but no warning at the later setting

> rm appfw profile appfw_test

Done

> add appfw profile appfw_test -rfcprofile APPFW_RFC_BYPASS -type XML HTML -XMLFormatAction log

Warning: XML Security checks can not be performed, once an XML message is found not wellformed.

Done


> set appfw profile appfw_test -XMLFormatAction stats

Done

Related:

  • No Related Posts

REST Generator / POST / JSON

I need a solution

Hello,

I would like to implement REST Generator to get data from an API.

I can pass parameters and get back result using the following curl command:

curl -v -X POST -H “Content-type: application/json” http://localhost:8000/ooo/api/classify -d “{“titre”: “Archivage”,”description”: “Outlook automatique”,”threshold”: 30}” | python -mjson.tool >> e:res.json

the result looks like :

{
    “truth”: null,
    “prediction”: “GU”,
    “probabilities”: {
        “AII”: 0.00799457696619133,
        “GU”: 0.36796383352090517,
        “INFRA”: 0.5963371734794378,
        “LMGD”: 0.027704416033465646
    },
    “explanation”: {
        “AII”: {
            “OUTLOOK”: -0.034025968778128746,
            “archivage”: -0.002706898667617468,
            “automatique”: -0.0026384096159645385
        },
        “GU”: {
            “OUTLOOK”: 0.17066857693271947,
            “archivage”: -0.06510736363015095,
            “automatique”: -0.04186709189244653
        },
        “INFRA”: {
            “archivage”: 0.12077812865593507,
            “automatique”: 0.04575866004668925,
            “OUTLOOK”: -0.00016864773167959125
        },
        “LMGD”: {
            “OUTLOOK”: -0.13647396042291574,
            “archivage”: -0.052963866358169714,
            “automatique”: -0.0012531585382800027
        }
    }
}

How would this translate in Rest Generator. In particular, how could I pass the json string as parameter ?

Thanks in advance for help,

O.

0

Related: