• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RESTlet and SOAP

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,

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.

Thanks in advance.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gallen,

A Restlet server can technically receive a SOAP message as the request entity of POST methods in your server resources.

Regarding the exposition of a more automated bridge, that could be technically possible but you are talking about two different paradigms here (REST vs RPC) so it should be done very carefully.

Best regards
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Bill
 
Jerome Louvel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gallen Thomas
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic