I used RESTlet to create a RESTlet server for one project but another project uses SOAP. I don't know SOAP at all. Can my REST methods see the SOAP messages? If so, I was thinking of maybe writing a translator so that it can call one of my REST methods (i.e. GET). Is there any tutorials on it around the web? I have been searching all day long. I must be using the wrong keywords.
A REST style client can certainly see a SOAP response message as an XML document.
The real problem is that a REST client will need trickery to generate a SOAP request to the SOAP server.
Generating a SOAP message from scratch will require a SOAP toolkit, however, if you can find the complete text of a valid SOAP request to this server, you can substitute your own variable values and POST the resulting (hopefully still valid) XML SOAP request to the server and read the SOAP response.
I have actually done this and it is sooooooo much simpler than creating a SOAP client with typical toolkits.
Joined: Dec 08, 2012
I agree that this is a good and pragmatic way to do SOAP calls.
In Restlet Framework you could use the FreeMarker or Velocity template representations to dynamically insert the variables, like to produce HTML content.
Joined: Aug 15, 2010
Wow thank you Jerome and William for your quick and intellectual responses. Very helpful tips. I will come back tell you guys how it turned out. I just have to learn SOAP now. :-s