I raised this issue a week or so ago, then got distracted by other work. Returning to the thread, I re-read
the documentation on the URL generator, and have interleaved my comments and questions in your
previous note.
Bill,
I think your approach below is fairly sound. My wish would have been to leverage the URL generator, because if you except the posting part, of course, the result of a GET or a POST could be handled exactly the same way.
Question
--------- just to confirm I understand, I assume you are suggesting I use URL generator as the basis for
anything I develop to interact with a gateway ?
The URL generator is able to:
o retrieve and parse XML o retrieve and parse HTML to XML o retrieve plain text (not documented) o retrieve binaries
It does not:
1. Provide information about returned headers and the like 2. Support POST
For 1 above, it could be simply a configuration of the URL generator that, instead of returning simply the XML document on the output, would encapsulate it into something like your http-response element. I say something like it, bcause we can access not only the "http:" protocol, but "file:", etc.
Right now in the URL generator we make a distinction between the "oxf:" protocol and all the other ones.
Question --------- What do you mean by 'distinct' in the case of oxf:?
If we would like to use something like the Apache commons-httpclient, we could easily plug this in as well.
Question
--------- Who are 'we' ? Are you offering to make changes to the URL generator ? Hope, hope.
For my current requirement, the show stopper with the URL generator as documented, is that you can't specify a document to be posted to the URL during the request part of the transaction. One solution would be to allow an optional
-Erik
<input name="post" ref="payment-req.xml"/>
element within the URL generator.
Bill.
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
