Patch #1413
closedhttp-post extension
0%
Description
SourceForge user: gschadow
Hi again, and finally:
here is my last extension that I post for your
consideration. I found this extremely useful as a means
to make distributed transforms. This extension
implements HTTP POST interactions that you can use to
call on web-services during a transform.
Example:
<post:message url="http://babelfish.com/tanslate">
<from language="$sourceLang"/>
<to language="$targetLang"/>
<text>XINS stands for "XWSF is not SOAP!"</text>
</post:message>
and if sourceLang is English and targetLang is German
the output would have:
XINS steht fuer "XWSF ist keine
SEIFE!"
this is a mock example, but the demo that's part of the
attachment actually does this with the real bablefish
service and using the ever unnecessary SOAP (excuse
my soapbox :-).
This extension works best with the previous exception
handling extension, because as you can imagine,
exceptions do happen in remote operations.
If you want to adopt this code I'd be more than happy
to donate it. It's incredibly useful, really.
regards,
-Gunther
Files
Updated by Michael Kay over 7 years ago
- File http-post.zip http-post.zip added
The attachment turned out to be useless but I have recovered the original 2004 posting from SourceForge and have attached it
Updated by Michael Kay over 7 years ago
- Status changed from New to Closed
Overtaken by events. We now have the third-party implementation of the EXPath HTTP extension, and the Saxon-JS variant of it adapted to use maps/arrays rather than XML to define the HTTP headers.
Please register to edit this issue