Hi Vyasavardhan,
That error message is indicative of not being able to get the schema. Are there any related log messages in the DataPower logs to indicate why the xsd can't be found? In v10 the actual xsd is stored in the yaml base-64 encoded which is different from v5 that generated a xsd from the yaml definition for every request. There was a defect in the v10 UI (not sure when that was fixed) that would generate the base-64 encoded property with the wrong encoding, utf-8LE as I recall, and at runtime the decode would fail as it was expecting utf-8. I'm not sure if that is what you're experiencing without seeing the yaml. What v10 version are you using? You may take the base-64 property value for your definition and run it through an online decoder to see if that is what the issue is. If so you should be able to decode it with utf-8LE and then re-encode with utf-8 and replace the property value in your yaml.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------
Original Message:
Sent: Fri December 23, 2022 12:24 AM
From: Vyasavardhan Ramagiri
Subject: Issue with Validating the XML payload using XSD in APIC v10
Hi Everyone,
I am facing some issues in validating xml request in APIC v10 For your information a word document is attached here. I've wrote an XSD for my xml request and it is working fine in DataPower and V5.
Fine!!
And I am validating JSON request also and its YAML is working fine and is attached below. Please check both and let me know where I am going wrong and guide me succeeding this.
But i need to validate XML in my V10 Environment and it is throwing the following errors:
In one case it is throwing:
<?xml version="1.0" encoding="UTF-8"?> <errorResponse> <httpCode>500</httpCode> <httpMessage>Internal Server Error</httpMessage> <moreInformation>Validate: Failed to execute the schema</moreInformation> </errorResponse>
In another case it is throwing:
<?xml version="1.0" encoding="UTF-8"?> <errorResponse> <httpCode>500</httpCode> <httpMessage>Internal Server Error</httpMessage> <moreInformation>Validate: schema property is empty</moreInformation> </errorResponse>
Note: Please go through the document attached below.
*** And one more thing is we unable to add the revocation url for Oauth and So that token is not generating And Throwing 404 No Resource Match For Request URI.
Thanks in Advance!!
------------------------------
Vyasavardhan Ramagiri
------------------------------