From the course: Java EE 7: Web Services

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implement SOAP clients in Java

Implement SOAP clients in Java - Java EE Tutorial

From the course: Java EE 7: Web Services

Start my 1-month free trial

Implement SOAP clients in Java

- [Instructor] Now, we are ready to create a client that accesses the application service web service. The application client class is a standalone application client that accesses the getAll method of application service. At this point in the learning, the getAll method simply returns the hard coded string Hello World. We'll change that a bit later. Without using any special tools, you can create a Java web service client to test this service. Another option to create a web service client would be to use the wsimport tool. The wsimport tool is bundled with the JDK and parses the published WSDL file and generates the necessary stub client files that can be used to access the application service web service. The wsimport tool can be executed from the command line using this command. Let's review the code for the client that will test our web service. I've opened the project in IntelliJ, and I've navigated to the ApplicationClient.java file. So let's look at this. On line 12 we are…

Contents