Skip to content

rmuslimov/clj-soap-srv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-soap-srv

Here is short example of implementation SOAP server on clojure on top of JAX-WS.2.0.

Installation

  • Install Java

  • Install Leiningen https://leiningen.org/

  • Clone repo

  • Copy paste WSDL files to ./resources/wsdl

  • Generate java classes by calling:

      $ make wsimport
    

Playing with it

To run REPL just call:

$ lein repl

Then enter in repl next commands:

$ (ns dev)
$ (reload-system!)

We just started endpoint implementing our service, after any change we've made in code - system can be restarted and reload application's code. To check that all system working properly:

To see how changing code works, go to clj-soap-srv/api.clj and slightly change get-hotel-name function. Then return back to terminal #1, and call:

$ (reload-system!)

Calling $ make ping after that should return new response.

I want just run it

Here is easiest way to run app with leiningen:

$ lein run

Then from new terminal window call:

$ make ping

You should see response from soap server. You can also check generated wsdl, xsd file at:

About

Example of implementing soap server on clojure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published