Comment on Tutorial - Java WebService - Create your first web service in Java By Emiley J

Comment Added by : Carlos Kassab

Comment Added at : 2015-02-20 17:18:06

Comment on Tutorial : Java WebService - Create your first web service in Java By Emiley J
This is just the web service, if you want to consume it, you need to create a program to consume it


Do not close the publisher and go to folder javasamples/one

run the next command:

wsimport -s .

It will create a structure of java files and will compile them.

Create file javasamples/one/

Copy this content inside file :

public class TimeClient {

* @author Carlos Kassab
public static void main(String[] args) {

TimeServerImplService timeServerService = new TimeServerImplService();
TimeServer timeServer = timeServerService.getTimeServerImplPort();

From the command window, go to folder javasamples/one
Compile program javac

Run program: java
You should see something like this: Fri Feb 20 11:10:57 CST 2015

View Tutorial

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hagti hain.. the complete program has been copy pa
View Tutorial          By: Macho Man at 2012-06-21 07:58:03

2. i want to learn j2me basic to ....
View Tutorial          By: gopiraj at 2012-12-21 11:52:01

3. thanks for he info, was looking everywhere for som
View Tutorial          By: John at 2011-05-16 11:28:54

4. what is the output
View Tutorial          By: Raja at 2012-12-28 11:47:48

5. How could i read a file from my ftp server . sugge
View Tutorial          By: Dinshaw at 2015-02-06 07:22:03

6. Hi Daniel,

Please suggest me, inste

View Tutorial          By: Pradeep at 2013-12-05 07:35:32

7. where is mysdfile.txt file created. where can i fi
View Tutorial          By: Venkatesh at 2014-11-12 10:53:52

8. Great Article...thanks :)
View Tutorial          By: Paras Chawla at 2012-10-28 04:35:57

9. int m,m2,n,n2;
for( m=0 , m2=0 ; m<

View Tutorial          By: muhammad abdullah at 2012-10-11 05:27:02

10. This is a good tutorial. Now how can I send SMS mu
View Tutorial          By: Alkesh at 2013-05-11 14:51:53