Source

clj-soap /

Filename Size Date modified Message
src/clj_soap
test/clj_soap/test
39 B
47 B
911 B
614 B
# clj-soap

clj-soap is SOAP server and client using Apache Axis2.

## Usage

### Client

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 ...))

### Server

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.

#### Type Hint

SOAP services need typehints.
`String` for arguments nad `void` for return value,
if you don't specify typehints.

## License

Copyright (C) 2011 Tetsuya Takatsuru

Distributed under the Eclipse Public License, the same as Clojure.