Created
May 23, 2017 20:49
-
-
Save jprudent/2c9ae079c61fc4b80ab604482a51ae40 to your computer and use it in GitHub Desktop.
Boot SOAP binary client generator from WSDL in 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set-env! :dependencies '[[me.raynes/conch "0.8.0"] | |
[onetom/boot-lein-generate "0.1.3" :scope "test"]] | |
:source-paths #{"src"}) | |
(require 'boot.lein) | |
(boot.lein/generate) | |
(task-options! | |
pom {:project 'ws-client | |
:version "0.1.0"}) | |
(require '[me.raynes.conch :as sh]) | |
(defn call-wsimport [output-path wsdl-url] | |
(sh/with-programs [wsimport] | |
(wsimport "-d" output-path | |
"-p" "com.yakalele.ws" | |
"-keep" | |
wsdl-url))) | |
(deftask gen-ws-client | |
"blabla" | |
[] | |
(let [output-path (tmp-dir!)] | |
(with-pre-wrap fileset | |
(empty-dir! output-path) | |
(call-wsimport (.getAbsolutePath output-path) | |
"https://www.moneta.ru/services.wsdl") | |
(commit! (add-resource fileset output-path))))) | |
#_(set-env! :resource-paths #{"generated-client"}) | |
(deftask my-jar | |
"my jar" | |
[] | |
(comp (gen-ws-client) | |
(pom) | |
(jar) | |
(target))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment