clj-soap is SOAP server and client using Apache Axis2.
This version is updated after Tetsuya Takatsuru's and Sean Corfield versions to use Clojure 1.9.0.
You can call remote SOAP method as following:
(require '[clj-soap.core :as soap])
(let [client (soap/client-fn "http://... (URL for WSDL)")]
(client :someMethod param1 param2 ...))
To make SOAP service:
(require '[clj-soap.core :as soap])
;; Defining service class
(soap/defservice my.some.SoapClass
(someMethod ^String [^Integer x ^String s]
(str "x is " x "\ts is " s)))
;; Start SOAP Service
(serve "my.some.SoapClass")
defservice
needs to be AOT-compiled.
For example, lein compile
before running server.
SOAP services need typehints.
String
for arguments and void
for return value,
if you don't specify typehints.
Copyright (C) 2011 Tetsuya Takatsuru
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close