Difference between revisions of "Java client - OpenKM 5.1"
From OpenKM Documentation
Line 4: | Line 4: | ||
$ wsimport -d client -s client http://localhost:8080/OpenKM/OKMAuth?wsdl | $ wsimport -d client -s client http://localhost:8080/OpenKM/OKMAuth?wsdl | ||
+ | |||
+ | You can use the following script to generate a complete OpenKM webservices client library: | ||
+ | |||
+ | <source lang="bash"> | ||
+ | #/bin/bash | ||
+ | |||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMAuth?wsdl | ||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMDocument?wsdl | ||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMFolder?wsdl | ||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMSearch?wsdl | ||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMNotification?wsdl | ||
+ | wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMRepository?wsdl | ||
+ | |||
+ | jar cvf okm-ws-client-2.1.jar com | ||
+ | |||
+ | rm -rf com | ||
+ | </source> | ||
[[Category: Webservices Guide]] | [[Category: Webservices Guide]] | ||
[[Category:OKM Network]] | [[Category:OKM Network]] |
Revision as of 16:04, 10 March 2010
First, we need to generate the client stuff using this command. Keep on mind that you need JDK 1.6 to run it:
$ wsimport -d client -s client http://localhost:8080/OpenKM/OKMAuth?wsdl
You can use the following script to generate a complete OpenKM webservices client library:
#/bin/bash
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMAuth?wsdl
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMDocument?wsdl
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMFolder?wsdl
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMSearch?wsdl
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMNotification?wsdl
wsimport -p com.openkm.ws.client http://localhost:8080/OpenKM/OKMRepository?wsdl
jar cvf okm-ws-client-2.1.jar com
rm -rf com