• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to deploy J2SE client

 
Paul Celona
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just finished the Jax-ws tutorial for NB 5.5 and developed a java SE client that talked to my web service. everything is good and runs fine. What do I have to do for running the client on a different workstation?
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the first thing would be to have J2SE runtime installed on the client machine.

Then, look in the project for any generated jar file, or class files for the client. We would also need any of the dependent jar files that are used by the sample client.

Then, to run outside of the netbeans project, you will need a batch file, (or type it out) that sets the CLASSPATH to include all jar files (and classes) that the client would need to run with.

Then specify the URI to the server,
though instead of the localhost URI,
http://localhost:8084/JAX-WS20Project/hello

it will be the address for where the server is running.

If this is hard coded into the java code, it would need to be changed to be your server's name and recompiled before it is copied over to the seperate client machine..

Also, make sure that the client machine has network access to the port on the server machine, a good way to verify this is to use a web browser on the client machine and navigation to the service url, and postpend ?wsdl. you should see the methods that are available in this web service.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!