Skip to content

Instantly share code, notes, and snippets.

@rnewman
Created April 27, 2010 18:45
Show Gist options
  • Save rnewman/381129 to your computer and use it in GitHub Desktop.
Save rnewman/381129 to your computer and use it in GitHub Desktop.
(ns com.example.service
(:refer-clojure)
(:import javax.jws.WebMethod
javax.jws.WebParam
javax.jws.WebService))
(definterface FooBarInterface
(#^String frobbleBaz [#^String name
#^String address
#^String email]))
(deftype #^{WebService {}}
FooBarService []
FooBarInterface
(#^{:tag String
WebMethod {:operationName "frobbleBaz"}}
frobbleBaz [this
#^{WebParam {:name "customerName"} :tag String} name
#^{WebParam {:name "address"} :tag String} address
#^{WebParam {:name "email"} :tag String} email]
"foo"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment