JAX-WS SOAP handler testing

In this article, we will test the output of the SOAP handlers developed in SOAP handler Service side and SOAP handler Client side articles.

We have to run the web service client for both valid and invalid MAC addresses

Case 1:

Valid MAC address is passed in the client SOAP handler
Make sure Client side SOAP handler is passing the valid MAC address

Valid MAC address will be any one among the below list
“E0-DB-55-A4-10-Z4″,”E0-DB-55-A4-10-Z5″,”E0-DB-55-A4-10-Z6″,”E0-DB-55-A4-10-Z7”

Run the HelloWorldClient.java developed in Step 7 of SOAP handler Client side project and check the output

Output



Case 2:

Invalid MAC address is passed in the client SOAP handler
Make sure Client side SOAP handler is passing the invalid MAC address

It should be anything except one in the below list
“E0-DB-55-A4-10-Z4″,”E0-DB-55-A4-10-Z5″,”E0-DB-55-A4-10-Z6″,”E0-DB-55-A4-10-Z7”

Run the HelloWorldClient.java developed in Step 7 of SOAP handler Client side project and check the output

Output

We have received SOAP fault exception at client side for invalid MAC address.

About the Author

Karibasappa G C (KB)
Founder of javainsimpleway.com
I love Java and open source technologies and very much passionate about software development.
I like to share my knowledge with others especially on technology 🙂
I have given all the examples as simple as possible to understand for the beginners.
All the code posted on my blog is developed,compiled and tested in my development environment.
If you find any mistakes or bugs, Please drop an email to kb.knowledge.sharing@gmail.com

Connect with me on Facebook for more updates

Share this article on