java - Public web service with jar file -
my 2 class files:
publish.java
class publish() { public static void main(string[] args) { // ............ endpoint endpoint = endpoint.publish("url", new classa()) //....... } }
classa.java
@webservice class classa() { @webmethod public getdetails() { //............ //sql connections //....... } }
in classa
, have sql connection i've added jar file. compiled with:
javac -cp .:sqljdbc4-2.0.jar classa.java
now published it, when invoke service method, saying sql dependacy classes not found. how can publish class file jar files. i've done in cmd prompt.
Comments
Post a Comment