Generate Java code from SOAP .wsdls using the JDK's wsimport task
Generate Java code from SOAP .wsdls using the JDK's wsimport task
(compose-options-array wsdl-file wsimport-opts)Create an array of options to pass in to WsImport#doMain out of a map of settings (usually gathered from the project settings)
Create an array of options to pass in to WsImport#doMain out of a map of settings (usually gathered from the project settings)
(import-wsdls wsdl-list wsdl-options)Call WsImport#doMain from Sun's JDK using an array of WSDL's to import and a set of user and default-specified options
Call WsImport#doMain from Sun's JDK using an array of WSDL's to import and a set of user and default-specified options
(wsimport project)Generate Java code from SOAP .wsdls using the JDK's wsimport task
To use this task, you need to add two pieces to your 'project.clj' file:
:wsimport {:wsdl-list [ "put.wsdl" "your.wsdl"
"files.wsdl" "here.wsdl" ]]}
;; can also use URIs like "http://somewhere.com/remote-wsdl.wsdl"
;; add java paths to compile in your project, too
:java-source-paths ["target/generated/java"]
There are alot of other options that are provided by the 'wsimport' task to get you through if you find your wsdls require extra options (such as Amazon's need for '-extension' in some wsdls). They are:
:wsimport { :wsdl-list [ "Sample.wsdl" "ec2.wsdl" … ]
:compile-java-sources true ;; default is false
:java-output-directory "target/generated/java" ;; default
:keep-java-sources true ;; default
:java-package-name "com.corporate.prefix.package"
:quiet-output true ;; don't show Sun's 'wsimport' output
:jaxb-binding-files [ "binding1" "binding2" ]
:extra-options ["-extension" "-catalog" ] ;; catch-all for
;; any cmd-line opts
;; missed
}
The catch-all for options is the ':extra-options' vector, which will let you
pass in any options that the standard wsimport task takes, passing those
along.
For more information on this plugin see the homepage:
Generate Java code from SOAP .wsdls using the JDK's wsimport task
To use this task, you need to add two pieces to your 'project.clj' file:
:wsimport {:wsdl-list [ "put.wsdl" "your.wsdl"
"files.wsdl" "here.wsdl" ]]}
;; can also use URIs like "http://somewhere.com/remote-wsdl.wsdl"
;; add java paths to compile in your project, too
:java-source-paths ["target/generated/java"]
There are alot of other options that are provided by the 'wsimport' task to get
you through if you find your wsdls require extra options (such as Amazon's
need for '-extension' in some wsdls). They are:
:wsimport { :wsdl-list [ "Sample.wsdl" "ec2.wsdl" … ]
:compile-java-sources true ;; default is false
:java-output-directory "target/generated/java" ;; default
:keep-java-sources true ;; default
:java-package-name "com.corporate.prefix.package"
:quiet-output true ;; don't show Sun's 'wsimport' output
:jaxb-binding-files [ "binding1" "binding2" ]
:extra-options ["-extension" "-catalog" ] ;; catch-all for
;; any cmd-line opts
;; missed
}
The catch-all for options is the ':extra-options' vector, which will let you
pass in any options that the standard `wsimport` task takes, passing those
along.
For more information on this plugin see the homepage:
https://github.com/klauern/lein-wsimportcljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |