William Farrugia wrote:and the response is a secure form (with text fields for the credit card, cvv etc) that I should be able to place in an iFrame.
Sounds fine. Are you displaying the form in the iframe ok? If the response is a full HTML page
you should have no problems. Just make sure that the request is issued from the iframe as that its the target of the response (as Paul posted).
When I output the response body as a String (from the PostMethod) I get the form properly but it doesn't submit cause the action is set to a web service that obviously doesn't exist on my server.
So when they return the form to you, the form action is not set correctly to point to a URL on their site? Are you sure that you are using their service properly?
Should I maybe use the regular HTML form instead and just generate the XML from a JSP?
You should never do anything in a JSP. JSPs are for view generation, not processing.