I have some Rebol 2 code calling a SOAP web service using the shell interface function CALL:
soap-request: rejoin [{<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header />
<SOAP-ENV:Body>}
soap-body ;-- Payload string of the request
{</SOAP-ENV:Body>
</SOAP-ENV:Envelope>}
]
soap-response: copy {}
call/wait/input/output rejoin [
curl-directory {\curl -H }
{"SOAPAction: " -X POST -H "Content-type: text/xml" -d @- <URL web service>}
] soap-request soap-response
It doesn't seem the CALL function in Rebol 3 Alpha is able to do this yet.
But is it possible to achieve equivalent behavior with Esper Consultancy's Rebol 3 cURL binding? What would that code look like?