Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SOAP calls in Clojure application

286 views

Published on

Perform SOAP actions in a Clojure application without any additional framework. Using a core Java language APIs.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

SOAP calls in Clojure application

  1. 1. Dealing SOAP in Clojure Prasanna Nagarajan ThoughtWorks GmbH @pvenk https://prasans.info
  2. 2. Brief introduction to SOAP Why is it hard in Clojure? What are the options? “Show and tell” of the process. Agenda
  3. 3. Source: https://stackoverflow.com/a/44713574/419448
  4. 4. SOAP is a decorated HTTP POST
  5. 5. Why is it hard in Clojure? clj-soap : https://github.com/seancorfield/clj-soap
  6. 6. Popular Options in Java ● Spring WS ● JAX-WS (Bundled with Java) ● Axis (Apache) SAAJ SOAP with Attachment API for Java
  7. 7. Prerequisite Generate Java objects from WSDL (Pre requisite) wsimport <wsdl file name> Or xjc -wsdl <wsdl file name>
  8. 8. Build Post Parse
  9. 9. ● Construct the Java Object ● Build SOAP Message with Headers, Body ● Convert SOAP Message to String Build Post Parse
  10. 10. ● String to SOAP Message ● Extract SOAP response body Build Post Parse
  11. 11. Thank you !! @pvenk https://prasans.info

×