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 - Java EE Tutorial
From the course: Java EE 7: Web Services
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Understand SOAP services1m 29s
-
(Locked)
Create a JAX-WS endpoint4m 55s
-
(Locked)
Implement SOAP clients in Java4m 8s
-
(Locked)
Retrieve data via an endpoint3m 25s
-
(Locked)
Create data via an endpoint2m 24s
-
(Locked)
Update data via an endpoint2m 6s
-
(Locked)
Delete data via an endpoint2m
-
(Locked)
Map to entities with JAXB3m 50s
-
(Locked)
-
-
-