Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 http-post extension

open
nobody
None
5
2012-10-08
2004-11-11
Gunther Schadow
No

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">
<translate>
<from language="$sourceLang"/>
<to language="$targetLang"/>
XINS stands for "XWSF is not SOAP!"
</translate>
</post:message>

and if sourceLang is English and targetLang is German
the output would have:

<translation>
<result>XINS steht fuer "XWSF ist keine
SEIFE!"</result>
</translation>

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

Discussion


Anonymous


Cancel   Add attachments