Join Patrick Royal for an in-depth discussion in this video Testing a web service without a client, part of Java EE: Web Services (2014).
…There are several different levels of testing that can be done on a RESTful web…service and you'll likely use each of them in turn as you develop your product.…The first and most basic method is to test the Java code itself.…This is probably the simplest way to test since…it doesn't require servers or complicated message handling at all.…In this video, we will create a simple error checking class…for the function that we worked on in the previous video,…and then run it to ensure that the basic code for the function is correct.…If you didn't watch the previous video, you can get the…code form there by looking in the exercise files for this video.…
Let's start by creating a new class within the package.…We'll call it RestTest. This will…be a Runnable Java class, so the first thing we need is a main method.…The format for the main method is public static…void main. And then an array of strings called args.…This is just the standard format for a main method that will allow Eclipse…to understand what it is and run it.…
Author
Released
2/28/2014- What are Java EE web services?
- Creating a simple service
- Building, packaging, and deploying your service
- Understanding the basic syntax
- Working with WSDL (Web Service Definition Language)
- Exploring SOAP (Simple Object Access Protocol)
- Exploring the syntax and design of REST (Representation State Transfer)
- Programming a web service in Java EE
- Debugging and optimizing your code
Skill Level Intermediate
Duration
Views
Related Courses
-
Advanced Java Programming
with David Gassner3h 33m Advanced -
Java: Database Integration with JDBC
with David Gassner2h 51m Intermediate
-
Introduction
-
Welcome55s
-
What you need to get started1m 42s
-
-
1. About Web Services
-
What are web services?4m 11s
-
Working with XML files4m 57s
-
-
2. Web Services Description Language (WSDL)
-
What is WSDL?3m 19s
-
Exploring WSDL5m 5s
-
Implementing a web service4m 49s
-
-
3. Simple Object Access Protocol (SOAP)
-
4. Representational State Transfer (REST)
-
What is REST?3m 36s
-
-
5. Programming a Web Service in Java EE
-
6. Improving Your Java EE Code
-
Debugging your web services4m 34s
-
Optimizing your code3m 59s
-
-
7. Extensions
-
Bus-enabled web services2m 49s
-
Conclusion
-
Where to go from here1m 27s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Testing a web service without a client