Roger Booth wrote:
> I'm surprised that you suggest a "URL Generator" for this, I would > have thought a "URL Serializer" would be more appropriate - as this > operation comes at the end of a pipeline, where one wants to > "serialize" the XML to somewhere else.
You are right of course in that you could implement a processor that does a POST in the form of a processor without an output.
But it also makes sense to leverage the URL generator.
Reason #1: it already does all the work of communicating through HTTP: you would just have to add the handling of the POST when using an HTTP scheme.
Reason #2: the HTTP POST method, like the HTTP get method, also returns an HTTP response with a message body. So doing a POST does not strictly consist of just sending data, but also of receiving data back. Typically, if you are trying to implement an XML-over-HTTP service, you would get a status document back.
So in most cases, even if you do a POST, the URL generator will return a document. In that sense it still deserves that name of "generator", but it can be considered a stretch. Maybe it could be just renamed the "URL processor", or "URL client", or whatnot.
> It does seem though that the "URL Serializer" is not that well > documented, so perhaps it isn't widely used for this purpose ?
Not sure how we should take it ;-) There is a whole documentation page dedicated to the URL generator.
http://www.orbeon.com/ois/doc/processors-generators-url
There is also an example showing how to retrive the CNN headlines:
http://www.orbeon.com/ois/goto-example/url
One that shows how to create RSS feeds:
http://www.orbeon.com/ois/goto-example/rss
And one that shows how to access Google's HTML pages to build a naive spellchecker:
http://www.orbeon.com/ois/goto-example/spellchecker
Of course it doesn't document the POST functionality, because it is non-existent at this point.
-Erik
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
