I have a xfa pdf form and when i click on the submit button, i want to send two parameters with some id's and i have a java servlet waiting for the request that goes to a database and fetches some xml dataset content based on the received id's. After this, i want to be able to capture the http submit response from the java servlet to the xfa form to be able to reload the pdf dataset and automatically fill the fields with the http submit returned xml.
Is this possible? My main problem is that I am not being able to find out a way of capturing a http submit response on the XFA scripting side.
You cannot do it via an HTTP submit...but you can do it via a Web Service call. Note that if you decide to go down that path and you are using Reader you will need to Reader Extend the form using LiveCycle Reader Extensions Server to allow that functionality.