Created
June 2, 2021 20:22
-
-
Save rotaliator/52d763e0eaab5e9f6d567fbe1d07dd5e to your computer and use it in GitHub Desktop.
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
(ns soap-service.core | |
(:import (javax.jws WebMethod WebService WebParam) | |
(javax.xml.ws Endpoint))) | |
(definterface ITestService | |
(^int add [^int a ^int b])) | |
(deftype ^{WebService {:targetNamespace "http://service.test.com"}} TestService [] | |
ITestService | |
(^int ^{WebMethod []} add [_ | |
^int #^{WebParam {:name "a"}} a | |
^int #^{WebParam {:name "b"}} b] | |
(+ a b))) | |
(defn endpoint [] | |
(Endpoint/publish "http://localhost:3001/testService" (TestService.))) | |
(comment | |
(def service (endpoint)) | |
(.stop service) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment