I have a main form with a header that loads different partial pages based on the action the main form receives. When both the main form and the sub forms are loaded independently they work fine. However, when the header loads a sub form I am getting an Invalid HTML Response error (These sub-forms are in separate Webmaker projects). When the error occurs half of the sub form is loaded and the rest is missing with the message below:
An HTML response was expected from the platform but this was not received. This is probably due to the transform not being applied in the Page Painter to render the next screen. As a first step, please ensure that the 'Page' control field has an appropriate value.
The XML response received from the platform is given below.
If you would like to accept non XML responses, please update the XGate configuration file and set the 'ensure_html_response' field to 'false'.
Any idea how I can get pass this issue?
An HTML response was expected from the platform but this was not received. This is probably due to the transform not being applied in the Page Painter to render the next screen. As a first step, please ensure that the 'Page' control field has an appropriate value.
The XML response received from the platform is given below.
If you would like to accept non XML responses, please update the XGate configuration file and set the 'ensure_html_response' field to 'false'.
Any idea how I can get pass this issue?
RE: Invalid HTML Response
By default, when you create a new WebMaker project it is configured to check each returned page to make sure it is a complete HTML page (eg starts with an html tag etc). If not, then the error message you have seen is shown to alert you that something has likely gone wrong somewhere.
If you make use of partial pages however then you will often be returning content that is not a complete HTML page and so this +?+?++ensure HTML response+?+?+? checking process should automatically get turned off.
Unfortunately, when using multiple project scenarios (especially with projects created with BizFlow WebMaker 5) it is possible for this to not happen and so the runtime application ends up checking for complete HTML pages when it shouldn+?+?+?t, leading to problems like you are seeing.
The easiest way to resolve this is to just edit the configuration file for you project to explicitly turn this setting off.
To do this, open your main project in the studio, and then select one of the +?+?++Include local file+?+?-?; links on the left hand side of the Application Map tab.
In the popup window, select the +?+?++doc+?+?+? directory, and then click the edit button for the xgate.xml file.
In this file, just change the value of the <ensure_html_response> element from +?+?++true+?+?+? to +?+?++false+?+?+? and then save the changes.
If you now Run Test again, you should find that this problem no longer occurs.
I hope this helps.
Regards,
Gerard
RE: Invalid HTML Response