Consuming WSDL in Clojure

I need to use the WSDL web service, and the Java client side code that I have seen so far looks bloated and complicated. I was wondering if a cleaner solution could exist in Clojure so that I could implement this part in Clojure and provide a simpler API for Java code.

+6
source share
1 answer
cd your_project_dir/src wsimport -p some.import.ns http://.../service?wsdl 

He would ./some.import.ns/*.class . That way you can just use them in your clojure project

 (ns your.ns ... (:import [some.import.ns some_WS_Service ...])) (let [port (-> (some_WS_Service.) .getSome_WS_ServicePort] (... (.someMethod port) ...)) 
+9
source

All Articles